Loading...
Searching...
No Matches
vis.mac
Go to the documentation of this file.
1#
2# Macro file for the initialization phase of "wls"
3# Sets some default verbose
4# and initializes the graphic.
5#
6/control/verbose 2
7/run/verbose 2
8
9/WLS/setPhotonDetGeometry Circle
10/WLS/setNumOfLayers 2
11/WLS/setSurfaceRoughness 0.999
12/WLS/setXYRatio 0.8
13/WLS/setWLSLength 1. m
14/WLS/setWLSRadius 0.5 mm
15/WLS/setClad1Radius 0.3 mm
16/WLS/setClad2Radius 0.1 mm
17#
18/WLS/setPhotonDetHalfLength 0.6 mm
19/WLS/setGap 0.15 mm
20/WLS/setAlignment 0.1 deg
21/WLS/setMirror true
22
23/WLS/setBarLength 1.1 m
24/WLS/setBarBase 9.5 mm
25/WLS/setHoleRadius 0.9 mm
26/WLS/setCoatingThickness 0.3 mm
27/WLS/setCoatingRadius 1.775 mm
28
29
30/run/initialize
31#
32# Open a viewer
33/vis/open
34# This opens the default viewer - see examples/basic/B1/vis.mac for a
35# more comprehensive overview of options. Also the documentation.
36#
37# Disable auto refresh and quieten vis messages whilst scene and
38# trajectories are established:
39/vis/viewer/set/autoRefresh false
40/vis/verbose errors
41#
42# Draw geometry:
43/vis/drawVolume
44#
45# Specify view angle:
46#/vis/viewer/set/viewpointThetaPhi 90. 0.
47#
48# Specify zoom value:
49/vis/viewer/zoom 20
50#
51# Specify style (surface or wireframe):
52/vis/viewer/set/style surface
53#
54# Draw coordinate axes:
55#/vis/scene/add/axes 0 0 0 1 m
56#
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)
64#
65# Draw hits at end of event:
66#/vis/scene/add/hits
67#
68# To draw only gammas:
69#/vis/filtering/trajectories/create/particleFilter
70#/vis/filtering/trajectories/particleFilter-0/add gamma
71#
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
75#
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
80#
81# To superimpose all of the events from a given run:
82/vis/scene/endOfEventAction accumulate
83#
84# Re-establish auto refreshing and verbosity:
85/vis/viewer/set/autoRefresh true
86/vis/verbose warnings
87#
88# For file-based drivers, use this to create an empty detector view:
89#/vis/viewer/flush
90
91/gps/particle e-
92
93/gps/energy 10 MeV
94
95/gps/pos/type Plane
96/gps/pos/shape Circle
97/gps/pos/radius 0.5 mm
98
99/gps/pos/centre 0.0 0.0 0.0 cm
100/gps/pos/rot1 0 1 0
101/gps/pos/rot2 0 0 1
102
103/gps/ang/type iso
104/gps/ang/mintheta 0.0 deg
105/gps/ang/maxtheta 90.0 deg

Applications | User Support | Publications | Collaboration