Rev | Line | |
---|
[1199] | 1 | # |
---|
| 2 | # Macro file for the initialization phase of "exampleN03.cc" |
---|
| 3 | # |
---|
| 4 | # Sets some default verbose |
---|
| 5 | # and initializes the graphic. |
---|
| 6 | # |
---|
| 7 | /control/verbose 2 |
---|
| 8 | /run/verbose 2 |
---|
| 9 | /step/setMaxStep 2 mm |
---|
| 10 | # |
---|
| 11 | # Create empty scene ("world" is default) |
---|
| 12 | # |
---|
| 13 | /vis/scene/create |
---|
| 14 | # |
---|
| 15 | # Create a scene handler for a specific graphics system |
---|
| 16 | # Edit the next line(s) to choose another graphic system |
---|
| 17 | # |
---|
| 18 | #/vis/open DAWNFILE |
---|
| 19 | # |
---|
| 20 | /vis/open OGLIX |
---|
| 21 | # |
---|
| 22 | # Draw scene |
---|
| 23 | # |
---|
| 24 | /vis/viewer/set/viewpointThetaPhi 90 0 |
---|
| 25 | /vis/camera/zoom 1.4 |
---|
| 26 | /vis/drawVolume |
---|
| 27 | # |
---|
| 28 | # for drawing the tracks |
---|
| 29 | # if too many tracks cause core dump => storeTrajectory 0 |
---|
| 30 | # |
---|
| 31 | /gun/particle e- |
---|
| 32 | /gun/energy 10000.0 MeV |
---|
| 33 | # |
---|
| 34 | /tracking/storeTrajectory 1 |
---|
| 35 | /event/drawTracks all |
---|
Note: See
TracBrowser
for help on using the repository browser.