Files
geant4/examples/advanced/gammaray_telescope/macro3.mac
T
2016-06-09 14:44:26 +02:00

53 lines
1.0 KiB
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 1
/control/saveHistory
/run/verbose 1
/gun/sourceGen true
/run/initialize
/control/execute emstd.mac
/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 DAWN
#/vis/open HepRepFile
/vis/viewer/reset
/vis/viewer/set/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