# ---------------------------------------------- # 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 OGLSX #/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