Rev | Line | |
---|
[807] | 1 | # ---------------------------------------------- |
---|
| 2 | # Example macro file for the GammaRayTel |
---|
| 3 | # Visualization with VRML |
---|
| 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 2 |
---|
| 13 | /control/saveHistory |
---|
| 14 | /run/verbose 2 |
---|
| 15 | /gun/sourceGen true |
---|
| 16 | /run/initialize |
---|
| 17 | |
---|
| 18 | /control/execute emlowe.mac |
---|
| 19 | |
---|
| 20 | /gun/particle mu- |
---|
| 21 | /gun/energy 100 MeV |
---|
| 22 | /gun/vertexRadius 30. cm |
---|
| 23 | /gun/sourceType 2 |
---|
| 24 | /gun/direction 0 0 -1 |
---|
| 25 | |
---|
| 26 | # You can modify the geometry of the telescope via a messenger |
---|
| 27 | |
---|
| 28 | /control/execute emstd.mac |
---|
| 29 | /payload/setNbOfTKRLayers 10 |
---|
| 30 | /payload/update |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | # |
---|
| 34 | # Create a scene handler for a specific graphics system |
---|
| 35 | /vis/open VRML2FILE |
---|
| 36 | #/vis/open OGLIX |
---|
| 37 | |
---|
| 38 | /vis/viewer/reset |
---|
| 39 | /vis/viewer/set/viewpointThetaPhi 90 0 |
---|
| 40 | |
---|
| 41 | # Visualize of the whole detector geometry |
---|
| 42 | /vis/drawVolume |
---|
| 43 | |
---|
| 44 | # for drawing the tracks |
---|
| 45 | # if too many tracks cause core dump => storeTrajectory 0 |
---|
| 46 | /tracking/storeTrajectory 1 |
---|
| 47 | |
---|
| 48 | # |
---|
| 49 | # Flush visualization |
---|
| 50 | /vis/viewer/update |
---|
| 51 | |
---|
| 52 | /run/beamOn 10 |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | |
---|
Note: See
TracBrowser
for help on using the repository browser.