1mm scintillating fibre tracker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
6.8 KiB

3 years ago
  1. # Macro file for the visualization setting in the initialization phase
  2. # of the B1 example when running in interactive mode
  3. #
  4. # Use these open statements to open selected visualization
  5. #
  6. # Use this open statement to create an OpenGL view:
  7. /vis/open OGL 600x600-0+0
  8. #
  9. # Use this open statement to create an OpenInventor view:
  10. #/vis/open OI
  11. #
  12. # Use this open statement to create a .prim file suitable for
  13. # viewing in DAWN:
  14. #/vis/open DAWNFILE
  15. #
  16. # Use this open statement to create a .heprep file suitable for
  17. # viewing in HepRApp:
  18. #/vis/open HepRepFile
  19. #
  20. # Use this open statement to create a .wrl file suitable for
  21. # viewing in a VRML viewer:
  22. #/vis/open VRML2FILE
  23. #
  24. # Disable auto refresh and quieten vis messages whilst scene and
  25. # trajectories are established:
  26. /vis/viewer/set/autoRefresh false
  27. /vis/verbose errors
  28. #
  29. # Draw geometry:
  30. /vis/drawVolume
  31. #
  32. # Specify view angle:
  33. /vis/viewer/set/viewpointVector -1 0 0
  34. /vis/viewer/set/lightsVector -1 0 0
  35. #
  36. # Specify style (surface, wireframe, auxiliary edges,...)
  37. #/vis/viewer/set/style wireframe
  38. #/vis/viewer/set/auxiliaryEdge true
  39. /vis/viewer/set/lineSegmentsPerCircle 100
  40. #
  41. # Draw smooth trajectories at end of event, showing trajectory points
  42. # as markers 2 pixels wide:
  43. #/vis/scene/add/trajectories smooth
  44. /vis/scene/add/trajectories rich
  45. #/vis/modeling/trajectories/create/drawByCharge
  46. #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts false
  47. #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
  48. # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
  49. # Create another drawByCharge model with an explicit name of testChargeModel
  50. # Configure drawByCharge-0 model
  51. #/vis/modeling/trajectories/drawByCharge-0/set 1 red
  52. #/vis/modeling/trajectories/drawByCharge-0/set -1 red
  53. #/vis/modeling/trajectories/drawByCharge-0/set 0 white
  54. # List available models
  55. #/vis/modeling/trajectories/list
  56. # select drawByCharge-0 to be current
  57. #/vis/modeling/trajectories/select drawByCharge-0
  58. #
  59. # Draw hits at end of event:
  60. /vis/scene/add/hits
  61. #
  62. # To draw only gammas:
  63. #/vis/filtering/trajectories/create/particleFilter
  64. #/vis/filtering/trajectories/particleFilter-0/add gamma
  65. #
  66. # To invert the above, drawing all particles except gammas,
  67. # keep the above two lines but also add:
  68. #/vis/filtering/trajectories/particleFilter-0/invert true
  69. #
  70. # Many other options are available with /vis/modeling and /vis/filtering.
  71. # For example, to select colour by particle ID:
  72. /vis/modeling/trajectories/create/drawByParticleID
  73. #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
  74. # To select or override default colours (note: e+ is blue by default):
  75. #/vis/modeling/trajectories/drawByParticleID-0/set e+ blue
  76. /vis/filtering/trajectories/create/attributeFilter
  77. /vis/filtering/trajectories/attributeFilter-0/setAttribute ID
  78. /vis/filtering/trajectories/attributeFilter-0/addValue 1
  79. /vis/filtering/trajectories/attributeFilter-0/invert true
  80. /vis/modeling/trajectories/create/drawByAttribute
  81. /vis/modeling/trajectories/drawByAttribute-0/verbose false
  82. /vis/modeling/trajectories/drawByAttribute-0/setAttribute CPN
  83. #/vis/modeling/trajectories/drawByAttribute-0/addValue brem_key eBrem
  84. #/vis/modeling/trajectories/drawByAttribute-0/addValue annihil_key annihil
  85. #/vis/modeling/trajectories/drawByAttribute-0/addValue decay_key Decay
  86. #/vis/modeling/trajectories/drawByAttribute-0/addValue muIon_key muIoni
  87. #/vis/modeling/trajectories/drawByAttribute-0/addValue eIon_key eIoni
  88. #/vis/modeling/trajectories/drawByAttribute-0/addValue Rayl_key Rayl
  89. #/vis/modeling/trajectories/drawByAttribute-0/addValue compt_key compt
  90. #/vis/modeling/trajectories/drawByAttribute-0/addValue conv_key conv
  91. #/vis/modeling/trajectories/drawByAttribute-0/addValue phot_key phot
  92. /vis/modeling/trajectories/drawByAttribute-0/addValue Scint_key Scintillation
  93. /vis/modeling/trajectories/drawByAttribute-0/addValue Ceren_key Cerenkov
  94. /vis/modeling/trajectories/drawByAttribute-0/addValue OpWLS_key OpWLS
  95. /vis/modeling/trajectories/drawByAttribute-0/Scint_key/setLineColour green
  96. /vis/modeling/trajectories/drawByAttribute-0/Ceren_key/setLineColour magenta
  97. /vis/modeling/trajectories/drawByAttribute-0/OpWLS_key/setLineColour red
  98. /vis/modeling/trajectories/list
  99. /vis/modeling/trajectories/select drawByAttribute-0
  100. #
  101. # To superimpose all of the events from a given run:
  102. /vis/scene/endOfEventAction accumulate
  103. #
  104. # Decorations
  105. # Name
  106. #/vis/set/textColour green
  107. #/vis/set/textLayout right
  108. #/vis/scene/add/text2D 0.9 -.9 24 ! ! exampleB1
  109. # or, if your system does not support right-adjustment
  110. #/vis/scene/add/text2D 0 -.9 24 ! ! exampleB1
  111. /vis/set/textLayout # Revert to normal (left adjusted) layout
  112. /vis/set/textColour # Revert to default text colour (blue)
  113. #
  114. # Axes, scale, etc.
  115. #/vis/scene/add/scale # Simple scale line
  116. #/vis/scene/add/axes # Simple axes: x=red, y=green, z=blue.
  117. #
  118. # To get nice view
  119. # Make the "World" box invisible
  120. /vis/geometry/set/visibility World 0 false
  121. /vis/geometry/set/visibility Detector 0 false
  122. /vis/geometry/set/visibility EpoxyBox 0 false
  123. /vis/geometry/set/visibility AbsBox 0 false
  124. /vis/geometry/set/visibility EpoxyStrip 0 false
  125. /vis/geometry/set/visibility Pixel 0 false
  126. /vis/geometry/set/visibility Trigger 0 false
  127. /vis/geometry/set/colour all 0 0 0 0
  128. /vis/geometry/set/colour Cladding2Section 1 0. 0.5 0.5
  129. /vis/geometry/set/colour Cladding1Section 0 0.5 0.5 0.5
  130. /vis/geometry/set/colour CoreSection 0 0.5 0.0 0.5
  131. /vis/geometry/set/colour Pixel 0 0.0 0.5 0.0 1.0
  132. /vis/geometry/set/colour EpoxyStrip 0 1.0 1.0 1.0 1.0
  133. /vis/geometry/set/colour EpoxyBox 0 0.9 0.9 0.9 1.
  134. #/vis/geometry/set/colour EpoxyBoxsub 0 0.25 0.25 0.25 0.25
  135. /vis/geometry/set/colour Detector 0 0.0 0.7 0.2 .5
  136. # "Envelope" is transparent blue to represent water
  137. #/vis/geometry/set/colour Envelope 0 0 0 1 .3
  138. /vis/viewer/set/style surface
  139. #edge is slow
  140. #/vis/viewer/set/edge false
  141. #/vis/viewer/set/hiddenMarker true
  142. /vis/viewer/set/targetPoint 0.0 0.0 .0 m
  143. /vis/viewer/set/viewpointThetaPhi 120 150
  144. /vis/viewer/zoomTo 10
  145. #
  146. /vis/scene/add/hits
  147. /tracking/storeTrajectory 1
  148. # Re-establish auto refreshing and verbosity:
  149. /vis/viewer/set/autoRefresh true
  150. /vis/verbose warnings
  151. #
  152. # For file-based drivers, use this to create an empty detector view:
  153. #/vis/viewer/flush
  154. #/vis/ogl/set/printSize 1200 600
  155. #/vis/ogl/set/printFilename barrel
  156. #/vis/ogl/set/printMode pixmap
  157. #/vis/ogl/printEPS
  158. /control/verbose 0
  159. /tracking/verbose 0
  160. /event/verbose 0
  161. /gps/verbose 0
  162. /gps/particle mu-
  163. /gps/ene/mono 4 GeV
  164. # source positioning
  165. /gps/pos/type Plane
  166. #/gps/pos/shape Circle
  167. #/gps/pos/radius 2.5 mm
  168. /gps/pos/shape Square
  169. /gps/pos/halfx 5 mm
  170. /gps/pos/halfy 5 mm
  171. /gps/pos/halfz 5 mm
  172. /gps/pos/rot2 0 0 1 # sets the x-y plane of source in the global x-z plane.
  173. /gps/pos/centre 0. 50.0 50. mm
  174. # angular distribution
  175. /gps/ang/type iso
  176. /gps/ang/mintheta 0.0 deg
  177. /gps/ang/maxtheta 1.0 deg
  178. /gps/ang/minphi 0.0 deg
  179. /gps/ang/maxphi 0.1 deg
  180. # For file-based drivers, use this to create an empty detector view:
  181. #/vis/viewer/flush
  182. #/run/beamOn 10