G4ParticleGun
.
run.mac
and add runs with following primaries: proton, positron, pion-, muon+
Run the macro from your interactive session (Qt).theta in [0,2*deg], phi [0.,360*deg]
. See example basic/B3 README page and its B3::PrimaryGenerator classActivate interactively storing of the random generator status, run simulation with a retrieved status and check results:
/random/setSavingFlag true
/gun/particle proton
/run/beamOn 3
currentRun.rndm
in Run0.rndm
(by hand) and save a scene with 3 events.run.mac
.Run0.rndm
file:
/random/resetEngineFrom Run0.rndm
Visualization:
vis.mac
with these commands