2# Macro file for the initialization phase of "wls"
3# Sets some default verbose
4# and initializes the graphic.
9/WLS/setPhotonDetGeometry Circle
11/WLS/setSurfaceRoughness 0.999
14/WLS/setWLSRadius 0.5 mm
15/WLS/setClad1Radius 0.3 mm
16/WLS/setClad2Radius 0.1 mm
18/WLS/setPhotonDetHalfLength 0.6 mm
20/WLS/setAlignment 0.1 deg
23/WLS/setBarLength 1.1 m
25/WLS/setHoleRadius 0.9 mm
26/WLS/setCoatingThickness 0.3 mm
27/WLS/setCoatingRadius 1.775 mm
34# This opens the default viewer - see examples/basic/B1/vis.mac for a
35# more comprehensive overview of options. Also the documentation.
37# Disable auto refresh and quieten vis messages whilst scene and
38# trajectories are established:
39/vis/viewer/set/autoRefresh false
46#/vis/viewer/set/viewpointThetaPhi 90. 0.
51# Specify style (surface or wireframe):
52/vis/viewer/set/style surface
54# Draw coordinate axes:
55#/vis/scene/add/axes 0 0 0 1 m
57# Draw smooth trajectories at end of event, showing trajectory points
58# as markers 2 pixels wide:
59/vis/scene/add/trajectories smooth
60/vis/modeling/trajectories/create/drawByCharge
61/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
62/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1
63# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
65# Draw hits at end of event:
69#/vis/filtering/trajectories/create/particleFilter
70#/vis/filtering/trajectories/particleFilter-0/add gamma
72# To invert the above, drawing all particles except gammas,
73# keep the above two lines but also add:
74#/vis/filtering/trajectories/particleFilter-0/invert true
76# Many other options are available with /vis/modeling and /vis/filtering.
77# For example, to select colour by particle ID:
78#/vis/modeling/trajectories/create/drawByParticleID
79#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
81# To superimpose all of the events from a given run:
82/vis/scene/endOfEventAction accumulate
84# Re-establish auto refreshing and verbosity:
85/vis/viewer/set/autoRefresh true
88# For file-based drivers, use this to create an empty detector view:
99/gps/pos/centre 0.0 0.0 0.0 cm
104/gps/ang/mintheta 0.0 deg
105/gps/ang/maxtheta 90.0 deg