-
Notifications
You must be signed in to change notification settings - Fork 8
/
vis.mac
109 lines (94 loc) · 3.17 KB
/
vis.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Use this open statement to create an OpenGL view:
/vis/open OGL 2400x600-0+0
#/vis/open Xm
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
#/vis/verbose errors
# Draw geometry:
/vis/drawVolume
# Specify view angle:
# from above
#/vis/viewer/set/upVector 0 0 1
#/vis/viewer/set/viewpointThetaPhi 90 90 deg
#from the front
#/vis/viewer/set/upVector 0 1 0
#/vis/viewer/set/viewpointThetaPhi 180 0 deg
# from the back
#/vis/viewer/set/upVector 0 1 0
#/vis/viewer/set/viewpointThetaPhi 0 0 deg
# from the side
/vis/viewer/set/upVector 0 1 0
/vis/viewer/set/viewpointThetaPhi 270 0 deg
# Specify zoom value:
/vis/viewer/zoomTo 80
# Specify style (surface or wireframe):
#/vis/viewer/set/style wireframe
/vis/viewer/set/style surface
/vis/viewer/set/background white
# Draw coordinate axes:
#/vis/scene/add/axes 0 0 0 10 cm
#/vis/scene/add/axes 0 0 0
# Draw smooth trajectories at end of event, showing trajectory points
# as markers 2 pixels wide:
/vis/scene/add/trajectories smooth
#/vis/modeling/trajectories/create/drawByCharge
#/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
#/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
#
# Draw hits at end of event:
/vis/scene/add/hits
#
# To draw only gammas:
/vis/filtering/trajectories/create/particleFilter
#/vis/filtering/trajectories/particleFilter-0/add geantino
/vis/filtering/trajectories/particleFilter-0/add pi-
#/vis/filtering/trajectories/particleFilter-0/add e-
#/vis/filtering/trajectories/particleFilter-0/add e+
/vis/filtering/trajectories/particleFilter-0/add mu-
#/vis/filtering/trajectories/particleFilter-0/add gamma
/vis/filtering/trajectories/particleFilter-0/add opticalphoton
#
# To invert the above, drawing all particles except gammas,
# keep the above two lines but also add:
#/vis/filtering/trajectories/particleFilter-0/invert true
#
# Many other options are available with /vis/modeling and /vis/filtering.
# For example, to select colour by particle ID:
/vis/modeling/trajectories/create/drawByParticleID
/vis/modeling/trajectories/drawByParticleID-0/set geantino red
/vis/modeling/trajectories/drawByParticleID-0/set e- red
/vis/modeling/trajectories/drawByParticleID-0/set pi- brown
/vis/modeling/trajectories/drawByParticleID-0/set mu- red
/vis/modeling/trajectories/drawByParticleID-0/set gamma yellow
/vis/modeling/trajectories/drawByParticleID-0/set opticalphoton cyan
#
# To superimpose all of the events from a given run:
/vis/scene/endOfEventAction accumulate 1
#
# Re-establish auto refreshing and verbosity:
/vis/viewer/set/autoRefresh true
#/vis/verbose warnings
#
# For file-based drivers, use this to create an empty detector view:
#/vis/viewer/flush
/units/list
/gps/energy 120 GeV
/gps/particle pi-
/gps/pos/type Plane
/gps/pos/shape Square
/gps/pos/centre 0 0 -10 mm
/gps/direction 0 0 1
#/gps/pos/halfx 3 mm
#/gps/pos/halfy 15 mm
#/gps/ang/type beam2d
#/gps/direction 0 0 1
#/gps/ang/sigma_x 2 deg
#/gps/ang/sigma_y 2 deg
#/gps/ang/type
#/gps/pos/centre 0 0 -5 mm
#/gps/ang/rot1 0. 0. 0.
#/gps/ang/rot2 0. 0. 1.
#/tracking/verbose 1
#/run/beamOn 1