Files
geant4/examples/advanced/gammaray_telescope/macro1.mac
T
2016-06-08 16:57:27 +02:00

47 lines
958 B
Plaintext

# ----------------------------------------------
# Example macro file for the GammaRayTel
# Visualization with OpenGL
# ----------------------------------------------
# Authors: R.Giannitrapani, F.Longo and G.Santin
# ----------------------------------------------
#
# Sets some default verbose
# and initializes the graphic.
#
/control/verbose 2
/control/saveHistory
/run/verbose 2
/gun/particle gamma
/gun/energy 1 GeV
/gun/vertexRadius 25. cm
/gun/sourceType 2
# You can modify the geometry of the telescope via a messenger
#/payload/setNbOfTKRLayers 15
#/payload/update
#
# Create a scene handler for a specific graphics system
/vis/open OGLSX
/vis/viewer/reset
/vis/viewer/viewpointThetaPhi 90 0
# Visualize of the whole detector geometry
/vis/drawVolume
# for drawing the tracks
# if too many tracks cause core dump => storeTrajectory 0
/tracking/storeTrajectory 1
#
# Flush visualization
/vis/viewer/update
# run 10 events
/run/beamOn 10