Files
geant4/examples/extended/analysis/A01/heprep.mac
T
2016-06-08 16:57:27 +02:00

48 lines
846 B
Plaintext

#
# Macro file for A01app
#
# For initialization of graphics.
#
# Create empty scene ("world" is default)
#
/vis/scene/create
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepFile
/vis/viewer/set/culling global false
/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
#
/vis/scene/add/volume
#
# Add trajectories to scene
#
/vis/scene/add/trajectories
#
# Add hits to scene
#
/vis/scene/add/hits
#
# Do runs
/tracking/storeTrajectory 1
# Run 10 events and store event displays
/run/beamOn 10 eventAction.mac
#
/mydet/armAngle 60. deg
/mydet/fieldValue 2. tesla
/run/beamOn 10
#
/mydet/armAngle 30. deg
/mydet/momentum 2. GeV
/mydet/sigmaMomentum 0.
/mydet/sigmaAngle 0.
/run/beamOn 10
#
/mydet/sigmaAngle 2. deg
/run/beamOn 10
/vis/viewer/flush
#