|Message: TestEm5 for Proton-neutron Reaction||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I am a student and very new to Geant4. I have been asked to simulate protons hitting an iron absorber and neutrons are expected to be generated via the Fe(p,n)Co reaction. The base code used is "TestEm5" under "electromagnetic" extended examples. The main things I modified are:
1. PhysicsList.cc to include all the hadronic processes, such as that of PhysicsList.cc in "hadronic" extended examples.
2. RunAction.cc to include a check and count for neutron particles.
3. Created a .mac file to control the absorber parameters as well as gun particle and energy.
However, in the output:
" ======================== run summary ======================
The run was 10000 proton of 250 MeV through 4 m of Iron (density: 7.87 g/cm3 )
Total energy deposit in absorber per event = 249.6 MeV +- 9.381 keV
-----> Mean dE/dx = 0.6241 MeV/cm (0.0793 MeV*cm2/g)
From formulas : restricted dEdx = 21.76 MeV/cm (2.765 MeV*cm2/g) full dEdx = 21.76 MeV/cm (2.766 MeV*cm2/g)
Leakage : primary = 0 eV +- 0 eV secondaries = 731 eV +- 93.51 eV Energy balance : edep + eleak = 249.6 MeV
Total track length (charged) in absorber per event = 3.554 cm +- 3.683 um Total track length (neutral) in absorber per event = 4.885 um +- 2.539 um
Number of steps (charged) in absorber per event = 16.25 +- 0.0006069 Number of steps (neutral) in absorber per event = 0.0034 +- 0.0006069
Number of secondaries per event : Gammas = 0.0506; electrons = 203.5; positrons = 0; neutrons = 0
Number of events with the primary particle transmitted = 0 % Number of events with at least 1 particle transmitted (same charge as primary) = 0 %
Number of events with the primary particle reflected = 0 % Number of events with at least 1 particle reflected (same charge as primary) = 0 % "
Turned out that I did not manage to obtain any neutron particles. I suspect that I did not include an important process. But then again, I practically copied the whole PhysicsList.cc file from the "hadronic" folder.
Your help would be greatly appreciated. I thank you in advance.
Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/04/29/13.21-18290-PhysicsList.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/04/29/13.21-13884-RunAction.cc
|Inline Depth:||Outline Depth:||Add message:|