[807] | 1 | # |
---|
| 2 | # Macro file for the initialization phase of "persEx02.cc" |
---|
| 3 | # when runing in interactive mode |
---|
| 4 | # |
---|
| 5 | # Sets some default verbose |
---|
| 6 | # |
---|
| 7 | /control/verbose 2 |
---|
| 8 | /run/verbose 2 |
---|
| 9 | /tracking/verbose 2 |
---|
| 10 | # |
---|
[1337] | 11 | # Use this open statement to create an OpenGL view: |
---|
| 12 | /vis/open OGL 600x600-0+0 |
---|
[807] | 13 | # |
---|
[1337] | 14 | # Use this open statement to create a .prim file suitable for |
---|
| 15 | # viewing in DAWN: |
---|
| 16 | #/vis/open DAWNFILE |
---|
[807] | 17 | # |
---|
[1337] | 18 | # Use this open statement to create a .heprep file suitable for |
---|
| 19 | # viewing in HepRApp: |
---|
| 20 | #/vis/open HepRepFile |
---|
[807] | 21 | # |
---|
[1337] | 22 | # Use this open statement to create a .wrl file suitable for |
---|
| 23 | # viewing in a VRML viewer: |
---|
| 24 | #/vis/open VRML2FILE |
---|
[807] | 25 | # |
---|
[1337] | 26 | # Disable auto refresh and quieten vis messages whilst scene and |
---|
| 27 | # trajectories are established: |
---|
| 28 | /vis/viewer/set/autoRefresh false |
---|
| 29 | /vis/verbose errors |
---|
[807] | 30 | # |
---|
[1337] | 31 | # Draw geometry: |
---|
| 32 | /vis/drawVolume |
---|
[807] | 33 | # |
---|
[1337] | 34 | # Specify view angle: |
---|
| 35 | /vis/viewer/set/viewpointThetaPhi 60. 60. |
---|
| 36 | # |
---|
| 37 | # Specify zoom value: |
---|
[807] | 38 | /vis/viewer/zoom 1.4 |
---|
| 39 | # |
---|
[1337] | 40 | # Specify style (surface or wireframe): |
---|
| 41 | #/vis/viewer/set/style wireframe |
---|
| 42 | # |
---|
| 43 | # Draw coordinate axes: |
---|
| 44 | #/vis/scene/add/axes 0 0 0 1 m |
---|
| 45 | # |
---|
| 46 | # Draw smooth trajectories at end of event, showing trajectory points |
---|
| 47 | # as markers 2 pixels wide: |
---|
| 48 | /vis/scene/add/trajectories smooth |
---|
| 49 | /vis/modeling/trajectories/create/drawByCharge |
---|
| 50 | /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true |
---|
| 51 | /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 |
---|
| 52 | # (if too many tracks cause core dump => /tracking/storeTrajectory 0) |
---|
| 53 | # |
---|
| 54 | # Draw hits at end of event: |
---|
| 55 | #/vis/scene/add/hits |
---|
| 56 | # |
---|
| 57 | # To draw only gammas: |
---|
| 58 | #/vis/filtering/trajectories/create/particleFilter |
---|
| 59 | #/vis/filtering/trajectories/particleFilter-0/add gamma |
---|
| 60 | # |
---|
| 61 | # To invert the above, drawing all particles except gammas, |
---|
| 62 | # keep the above two lines but also add: |
---|
| 63 | #/vis/filtering/trajectories/particleFilter-0/invert true |
---|
| 64 | # |
---|
| 65 | # Many other options are available with /vis/modeling and /vis/filtering. |
---|
| 66 | # For example, to select colour by particle ID: |
---|
| 67 | #/vis/modeling/trajectories/create/drawByParticleID |
---|
| 68 | #/vis/modeling/trajectories/drawByParticleID-0/set e- blue |
---|
| 69 | # |
---|
| 70 | # To superimpose all of the events from a given run: |
---|
[807] | 71 | /vis/scene/endOfEventAction accumulate |
---|
| 72 | # |
---|
[1337] | 73 | # Re-establish auto refreshing and verbosity: |
---|
| 74 | /vis/viewer/set/autoRefresh true |
---|
| 75 | /vis/verbose warnings |
---|
| 76 | # |
---|
| 77 | # For file-based drivers, use this to create an empty detector view: |
---|
| 78 | #/vis/viewer/flush |
---|
| 79 | # |
---|
[807] | 80 | /run/beamOn 1 |
---|