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