Rev | Line | |
---|
[807] | 1 | # ---------------------------------------------- |
---|
| 2 | # Example macro file for the GammaRayTel |
---|
| 3 | # Visualization with OpenGL |
---|
| 4 | # ---------------------------------------------- |
---|
| 5 | # Authors: R.Giannitrapani, F.Longo and G.Santin |
---|
| 6 | # ---------------------------------------------- |
---|
| 7 | |
---|
| 8 | # |
---|
| 9 | # Sets some default verbose |
---|
| 10 | # and initializes the graphic. |
---|
| 11 | # |
---|
| 12 | /control/verbose 1 |
---|
| 13 | /control/saveHistory |
---|
| 14 | /run/verbose 1 |
---|
| 15 | /gun/sourceGen true |
---|
| 16 | /run/initialize |
---|
| 17 | |
---|
| 18 | /control/execute emstd.mac |
---|
| 19 | |
---|
| 20 | /gun/particle gamma |
---|
| 21 | /gun/energy 1 GeV |
---|
| 22 | /gun/vertexRadius 25. cm |
---|
| 23 | /gun/sourceType 2 |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | # You can modify the geometry of the telescope via a messenger |
---|
| 27 | #/payload/setNbOfTKRLayers 15 |
---|
| 28 | #/payload/update |
---|
| 29 | |
---|
| 30 | # |
---|
| 31 | # Create a scene handler for a specific graphics system |
---|
| 32 | /vis/open DAWN |
---|
| 33 | #/vis/open HepRepFile |
---|
| 34 | |
---|
| 35 | /vis/viewer/reset |
---|
| 36 | /vis/viewer/set/viewpointThetaPhi 90 0 |
---|
| 37 | |
---|
| 38 | # Visualize of the whole detector geometry |
---|
| 39 | /vis/drawVolume |
---|
| 40 | |
---|
| 41 | # for drawing the tracks |
---|
| 42 | # if too many tracks cause core dump => storeTrajectory 0 |
---|
| 43 | /tracking/storeTrajectory 1 |
---|
| 44 | |
---|
| 45 | # |
---|
| 46 | # Flush visualization |
---|
| 47 | /vis/viewer/update |
---|
| 48 | |
---|
| 49 | # run 10 events |
---|
| 50 | /run/beamOn 10 |
---|
| 51 | |
---|
| 52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.