Changeset 1337 for trunk/examples/extended/radioactivedecay/exrdm/macros
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/radioactivedecay/exrdm/macros/vrml.mac
r807 r1337 4 4 /run/setCutForRegion Target 10 cm 5 5 /run/setCutForRegion Detector 50 cm 6 7 # vis 6 # 7 # Use this open statement to create an OpenGL view: 8 #/vis/open OGL 600x600-0+0 9 # 10 # Use this open statement to create a .prim file suitable for 11 # viewing in DAWN: 12 #/vis/open DAWNFILE 13 # 14 # Use this open statement to create a .heprep file suitable for 15 # viewing in HepRApp: 16 #/vis/open HepRepFile 17 # 18 # Use this open statement to create a .wrl file suitable for 19 # viewing in a VRML viewer: 8 20 /vis/open VRML2FILE 9 /vis/scene/create 10 /vis/viewer/reset 21 # 22 # Disable auto refresh and quieten vis messages whilst scene and 23 # trajectories are established: 24 /vis/viewer/set/autoRefresh false 25 /vis/verbose errors 26 # 27 # Draw geometry: 28 /vis/drawVolume 29 # 30 # Specify view angle: 31 /vis/viewer/set/viewpointThetaPhi 90. 180. 32 # 33 # Specify zoom value: 11 34 /vis/viewer/zoom 20. 12 /vis/viewer/set/viewpointThetaPhi 90. 180. 35 # 36 # Specify style (surface or wireframe): 13 37 /vis/viewer/set/style wireframe 14 /vis/drawVolume15 /vis/scene/endOfEventAction accumulate16 /tracking/storeTrajectory 117 38 # 18 39 # Draw coordinate axes: 40 #/vis/scene/add/axes 0 0 0 1 m 41 # 42 # Draw smooth trajectories at end of event, showing trajectory points 43 # as markers 2 pixels wide: 44 /vis/scene/add/trajectories smooth 45 /vis/modeling/trajectories/create/drawByCharge 46 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 47 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 48 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 49 # 50 # Draw hits at end of event: 51 #/vis/scene/add/hits 52 # 53 # To draw only gammas: 54 #/vis/filtering/trajectories/create/particleFilter 55 #/vis/filtering/trajectories/particleFilter-0/add gamma 56 # 57 # To invert the above, drawing all particles except gammas, 58 # keep the above two lines but also add: 59 #/vis/filtering/trajectories/particleFilter-0/invert true 60 # 61 # Many other options are available with /vis/modeling and /vis/filtering. 62 # For example, to select colour by particle ID: 63 #/vis/modeling/trajectories/create/drawByParticleID 64 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 65 # 66 # To superimpose all of the events from a given run: 67 /vis/scene/endOfEventAction accumulate 68 # 69 # Re-establish auto refreshing and verbosity: 70 /vis/viewer/set/autoRefresh true 71 /vis/verbose warnings 72 # 73 # For file-based drivers, use this to create an empty detector view: 74 #/vis/viewer/flush 75 # 19 76 /gps/particle proton 20 77 /tracking/verbose 1
Note: See TracChangeset
for help on using the changeset viewer.