#############################################################################*# # Initialisation macro for interactive mode # ############################################################################### # /control/verbose 1 #/control/saveHistory # # Create empty scene /vis/scene/create # # Create a scene handler for a specific graphics system # (Edit the next line(s) to choose another graphic system) # # Use this open statement to get an .eps and .prim files # suitable for viewing in DAWN. ###/vis/open DAWNFILE # # Use this open statement instead for OpenGL in immediate mode. #/vis/open OGLIQt 450x420 # # Use this open statement instead to get a HepRep version 1 file # suitable for viewing in WIRED. #/vis/open HepRepFile # # Use this open statement instead to get a HepRep version 2 file # suitable for viewing in WIRED. #/vis/open HepRepXML # # Output an empty detector #/gun/energy 10 GeV /vis/viewer/flush # # Draw trajectories at end of event, showing trajectory points as # markers of size 2 pixels /vis/scene/add/trajectories smooth /vis/modeling/trajectories/create/drawByCharge /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) # # To draw gammas only #/vis/filtering/trajectories/create/particleFilter #/vis/filtering/trajectories/particleFilter-0/add gamma # # To draw charged particles only #/vis/filtering/trajectories/particleFilter-0/invert true # # Many other options available with /vis/modeling and /vis/filtering. # For example, select colour by particle ID #/vis/modeling/trajectories/create/drawByParticleID #/vis/modeling/trajectories/drawByParticleID-0/set e- red # /vis/scene/endOfEventAction accumulate # # At end of each run, an automatic flush causes graphical output. #/run/beamOn 1 # When you exit Geant4, you will find a file called scene-0.heprep.zip. # Unzipping this will give you three separate HepRep files suitable for # viewing in WIRED. # The first file will contain just detector geometry. # The second file will contain the detector plus one event. # The third file will contain the detector plus ten events. # $Id: vis.mac,v 1.7 2009/11/15 14:48:40 maire Exp $ # # Macro file for the initialization phase of "exampleN03.cc" # when running in interactive mode # # Sets some default verbose # /control/verbose 2 /control/saveHistory /run/verbose 2 # # create empty scene # #/vis/scene/create # # Create a scene handler for a specific graphics system # (Edit the next line(s) to choose another graphic system) # # Use this open statement to get an .eps and .prim files # suitable for viewing in DAWN. ###/vis/open DAWNFILE # # Use this open statement instead for OpenGL in immediate mode. #/vis/open OGLIQt 450x420 # # Use this open statement instead to get a HepRep version 1 file # suitable for viewing in WIRED. #/vis/open HepRepFile # # Use this open statement instead to get a HepRep version 2 file # suitable for viewing in WIRED. #/vis/open HepRepXML # # Output an empty detector #/gun/energy 10 GeV /vis/viewer/flush # # Draw trajectories at end of event, showing trajectory points as # markers of size 2 pixels /vis/scene/add/trajectories smooth /vis/modeling/trajectories/create/drawByCharge /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) # # To draw gammas only #/vis/filtering/trajectories/create/particleFilter #/vis/filtering/trajectories/particleFilter-0/add gamma # # To draw charged particles only #/vis/filtering/trajectories/particleFilter-0/invert true # # Many other options available with /vis/modeling and /vis/filtering. # For example, select colour by particle ID #/vis/modeling/trajectories/create/drawByParticleID #/vis/modeling/trajectories/drawByParticleID-0/set e- red # /vis/scene/endOfEventAction accumulate # # At end of each run, an automatic flush causes graphical output. #/run/beamOn 1 # When you exit Geant4, you will find a file called scene-0.heprep.zip. # Unzipping this will give you three separate HepRep files suitable for # viewing in WIRED. # The first file will contain just detector geometry. # The second file will contain the detector plus one event. # The third file will contain the detector plus ten events. # $Id: vis.mac,v 1.7 2009/11/15 14:48:40 maire Exp $ # # Macro file for the initialization phase of "exampleN03.cc" # when running in interactive mode # # Sets some default verbose # /control/verbose 2 /control/saveHistory /run/verbose 2 # # create empty scene # #/vis/scene/create # # Create a scene handler for a specific graphics system # (Edit the next line(s) to choose another graphic system) # # Use this open statement to get an .eps and .prim files # suitable for viewing in DAWN. ###/vis/open DAWNFILE # # Use this open statement instead for OpenGL in immediate mode. #/vis/open OGLIQt 450x420 # # Use this open statement instead to get a HepRep version 1 file # suitable for viewing in WIRED. #/vis/open HepRepFile # # Use this open statement instead to get a HepRep version 2 file # suitable for viewing in WIRED. #/vis/open HepRepXML # # Output an empty detector #/gun/energy 10 GeV /vis/viewer/flush # # Draw trajectories at end of event, showing trajectory points as # markers of size 2 pixels /vis/scene/add/trajectories smooth /vis/modeling/trajectories/create/drawByCharge /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) # # To draw gammas only #/vis/filtering/trajectories/create/particleFilter #/vis/filtering/trajectories/particleFilter-0/add gamma # # To draw charged particles only #/vis/filtering/trajectories/particleFilter-0/invert true # # Many other options available with /vis/modeling and /vis/filtering. # For example, select colour by particle ID #/vis/modeling/trajectories/create/drawByParticleID #/vis/modeling/trajectories/drawByParticleID-0/set e- red # /vis/scene/endOfEventAction accumulate # # At end of each run, an automatic flush causes graphical output. #/run/beamOn 1 # When you exit Geant4, you will find a file called scene-0.heprep.zip. # Unzipping this will give you three separate HepRep files suitable for # viewing in WIRED. # The first file will contain just detector geometry. # The second file will contain the detector plus one event. # The third file will contain the detector plus ten events. ################################################################# # Shoots 1 GeV protons randomly from generator surface ################################################################# # /vis/enable /tracking/storeTrajectory 1 /control/verbose 1 /run/verbose 1 /event/verbose 0 # /control/suppressAbortion 1 # # Random seeds #/run/autoSeed 1 /random/resetEngineFrom seeds.rndm # # particle surveys #/surveys/surveyParticles 1 #/surveys/surveyPrimaries 1 #/surveys/surveyTestMasses 1 # /gps/particle proton /gps/energy 1 GeV # # Isotropic distribution /gps/pos/type Surface /gps/pos/shape Sphere /gps/pos/radius 1499. mm /gps/pos/centre 0. 0. 0. mm /gps/ang/type cos # /run/beamOn 10