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] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

  1 # Macro file for the visualization setting in the initialization phase
  2 # of the B1 example when running in interactive mode
  3 #
  4 
  5 # Open a viewer
  6 /vis/open
  7 # This opens the default viewer - see examples/basic/B1/vis.mac for a
  8 # more comprehensive overview of options. Also the documentation.
  9 #
 10 ## To create an OpenGL viewer:
 11 ##/vis/open OGL 800x600-0+0 #600x600-0+0
 12 ## This is enough for a 2.5 keV electron
 13 #/vis/ogl/flushAt NthPrimitive 1000000
 14 #
 15 # Disable auto refresh and quieten vis messages whilst scene and
 16 # trajectories are established:
 17 /vis/viewer/set/autoRefresh false
 18 /vis/verbose errors
 19 #
 20 # Draw geometry:
 21 /vis/drawVolume
 22 #
 23 # Specify view angle:
 24 /vis/viewer/set/viewpointVector -1 0 0
 25 /vis/viewer/set/lightsVector -1 5 -30
 26 /vis/viewer/zoomTo 1.7
 27 #
 28 # Specify style (surface, wireframe, auxiliary edges,...)
 29 /vis/viewer/set/style wireframe
 30 /vis/viewer/set/auxiliaryEdge true
 31 /vis/viewer/set/lineSegmentsPerCircle 100
 32 #
 33 # Draw smooth trajectories at end of event, showing trajectory points
 34 # as markers 2 pixels wide:
 35 /vis/scene/add/trajectories rich #smooth
 36 #/vis/modeling/trajectories/create/drawByCharge
 37 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
 38 #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
 39 #/vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 1 s
 40 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
 41 
 42 /vis/modeling/trajectories/create/drawByParticleID
 43 
 44 /vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts false
 45 /vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 1
 46 
 47 /vis/modeling/trajectories/drawByParticleID-0/set e- red
 48 /vis/modeling/trajectories/drawByParticleID-0/set proton green
 49 /vis/modeling/trajectories/drawByParticleID-0/set alpha green 
 50 /vis/modeling/trajectories/drawByParticleID-0/set H green
 51 
 52 /vis/modeling/trajectories/drawByParticleID-0/set OH magenta
 53 /vis/modeling/trajectories/drawByParticleID-0/set H3O yellow
 54 /vis/modeling/trajectories/drawByParticleID-0/set e_aq blue
 55 /vis/modeling/trajectories/drawByParticleID-0/set H2O2 green
 56 /vis/modeling/trajectories/drawByParticleID-0/set H white
 57 /vis/modeling/trajectories/drawByParticleID-0/set H_2 white
 58 
 59 /vis/modeling/trajectories/drawByParticleID-0/default/setTimeSliceInterval 0.1 ns
 60 
 61 #/vis/modeling/trajectories/select drawByCharge-0
 62 
 63 # Use to draw just selected types of radicals
 64 #/vis/filtering/trajectories/create/particleFilter
 65 #/vis/filtering/trajectories/particleFilter-0/add e-
 66 #/vis/filtering/trajectories/particleFilter-0/add e_aq
 67 
 68 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
 69 #
 70 # Draw hits at end of event:
 71 #/vis/scene/add/hits
 72 #
 73 # To draw only gammas:
 74 #/vis/filtering/trajectories/create/particleFilter
 75 #/vis/filtering/trajectories/particleFilter-0/add gamma
 76 #
 77 # To invert the above, drawing all particles except gammas,
 78 # keep the above two lines but also add:
 79 #/vis/filtering/trajectories/particleFilter-0/invert true
 80 #
 81 # Many other options are available with /vis/modeling and /vis/filtering.
 82 # For example, to select colour by particle ID:
 83 #/vis/modeling/trajectories/create/drawByParticleID
 84 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
 85 # To select or override default colours (note: e+ is blue by default):
 86 #/vis/modeling/trajectories/list
 87 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
 88 #
 89 # To superimpose all of the events from a given run:
 90 /vis/scene/endOfEventAction accumulate
 91 #
 92 # Decorations
 93 # Name
 94 /vis/set/textColour green
 95 /vis/set/textLayout right
 96 # or, if your system does not support right-adjustment
 97 #/vis/scene/add/text2D 0.9 -0.9 12 ! ! chem3
 98 /vis/set/textLayout    # Revert to normal (left adjusted) layout
 99 /vis/set/textColour    # Revert to default text colour (blue)
100 #
101 # Axes, scale, etc.
102 #/vis/scene/add/scale   # Simple scale line
103 #/vis/scene/add/eventID # Drawn at end of event
104 #/vis/scene/add/date    # Date stamp
105 #/vis/scene/add/logo2D  # Simple logo
106 #/vis/scene/add/logo    # 3D logo
107 #/vis/scene/add/axes -1 -1 -1 1 micrometer
108 #/vis/scene/add/axes 0 0 0 1 nm   # Simple axes: x=red, y=green, z=blue. # MODIF ------------------------
109 #
110 # Frame
111 #/vis/set/colour red
112 #/vis/set/lineWidth 2
113 #/vis/scene/add/frame   # Simple frame arond the view
114 /vis/set/colour        # Revert to default colour (white)
115 /vis/set/lineWidth     # Revert to default line width (1.)
116 #
117 # Attach text to one edge of Shape1, with a small, fixed offset
118 #/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1
119 # Attach text to one corner of Shape2, with a small, fixed offset
120 #/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2
121 #
122 # To get nice view
123 #/vis/geometry/set/visibility World 0 true #changement
124 #/vis/geometry/set/visibility Envelope 0 false #changement
125 #/vis/viewer/set/style wireframe #surface
126 #/vis/viewer/set/hiddenMarker true
127 #/vis/viewer/set/viewpointThetaPhi 95 170
128 /vis/viewer/set/viewpointThetaPhi -70 0
129 
130 /tracking/storeTrajectory 3
131 
132 #
133 # Re-establish auto refreshing and verbosity:
134 /vis/viewer/set/autoRefresh true
135 /vis/verbose warnings
136 #
137 # For file-based drivers, use this to create an empty detector view:
138 #/vis/viewer/flush
139 
140 /vis/set/textLayout centre
141 /vis/scene/add/scale
142 /vis/viewer/set/targetPoint 20 10 0 nm
143 /vis/viewer/set/background white
144