Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!
“Hello fellow Geant4 users, I have a question for the community: I plan to use Geant4 to simulate neutron detection where neutrons interact with matter, produce electrons through reactions, and these electrons are then collected by electrodes to generate measurable currents. As a beginner, could anyone advise if Geant4 provides relevant ready-to-use examples for such simulations?”
Geant4 is primarily designed to simulate energy deposition in materials as particles pass through them, using Monte Carlo-based particle transport. To get started and learn more about the toolkit, I recommend checking out the Beginner course [1] and the Advanced course [2], the video recordings are linked in the corresponding timetables.
Other tools such as Garfield++ are better suited to simulate the electron amplification in the gas.
Thank you very much for your response. I will proceed with the self-study as you suggested, and I hope we can have prompt discussions if any questions arise. Thank you!
Hi, I want to set up a Sensitive Detector in Geant4 to retrieve the time information of particles reaching the collector. How should I configure this? Thank you.
once you have learned how to use a Sensitive Detector following Alvaro’s excellent suggestions you can see that your Hit can store any arbitrary information you like including Globaltime and/or Locatime of the particles.
well, the times are stores as G4double with rather high precision (many digits in for the default seconds). You can do any numeric manipulation/truncation to get them to the unit and precision of your choosing. There is no specific Geant4 way of doing this. Don’t over think it
Thank you for your reply. I spent two weeks quickly getting up to speed with Geant4 and then simulated the example I uploaded earlier. Now, the results from my simulation don’t quite match the expected outcome, as shown in the two figures below. My initial analysis suggests this might be because the decay process is not being accounted for. However, the physics list I added is identical to the one in the example I provided. I’m a bit confused. Do you have any suggestions or insights?
Those specific details of (n,gamma) reactions are probably best described using the newly developed NUDeX dataset and corresponding physicslist. Please have a look at it here:
I had a quick look for an example using it and couldn’t find it. Maybe there is a README file in the dataset that may point you in the right direction?
hello, While reviewing the Geant4 run log, I noticed that kinetic energy is not conserved before and after this hadElastic reaction. Surprisingly, the neutron’s energy actually increases. Could you explain why this happens?
Are you using ParticleHP in your physics list? Did you set a finite temperature for your target volume? If so, you’re seeing one effect of “Doppler smearing” – ParticleHP can take into account the thermal speed of the target atoms, so the nucleus can transfer kinetic energy to the projectile.