Hi everyone, I should simulate a 45GeV positron beam hitting a fixed (Carbon or beryllium) target having a fixed size (2cm or 6 cm) and I want to produce 22GeV electron/positron and muons couples. I was looking the B1 example, I opened the B1.in file
# Macro file for example B1 test
/run/initialize # gamma 6 MeV /gun/particle gamma /gun/energy 6 MeV # /run/printProgress 100 /run/beamOn 1000 # # proton 210 MeV /gun/particle proton /gun/energy 210 MeV # /run/beamOn 1000
and I modified it as following
# Macro file for example B1 test /run/initialize # positron 22 GeV /gun/particle positron /gun/energy 22 GeV # /run/printProgress 100 /run/beamOn 1000 # # electron 0 GeV /gun/particle electron /gun/energy 0 GeV # /run/beamOn 1000
- in this way I don’t have the target but free 0 GeV electrons
- I don’t think that i really changed the B1 example particles.
What should I do to modify the example for my goal?
Moreover how can I write the Geant4 results in a Root file?