-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_vis.mac
92 lines (66 loc) · 2.26 KB
/
init_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
/control/verbose 2
/control/saveHistory
/run/verbose 2
/run/initialize
/vis/open OGL 600x600-0+0
/vis/ogl/set/displayListLimit 1000000
/vis/drawVolume
#################################################
#################VIEWER SETTINGS###############
#################################################
# Fancy viewer
/vis/viewer/set/viewpointVector -1 0 0
/vis/viewer/set/lightsVector -1 0 0
/vis/viewer/set/style wireframe
/vis/viewer/set/auxiliaryEdge true
/vis/viewer/set/lineSegmentsPerCircle 100
/vis/viewer/set/style surface
/vis/viewer/set/hiddenMarker true
/vis/viewer/set/viewpointThetaPhi 120 150
/vis/viewer/set/targetPoint 0 -25.4 6724. mm
#/vis/viewer/set/targetPoint 0 0 0 mm
#################################################
#################DRAW TRAJECTORIES###############
#################################################
# Draw trajectories
/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 1
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
# Draw hits at end of event:
#/vis/scene/add/hits
#################################################
#################PARTICLE SOURCE#################
#################################################
/vis/scene/add/gps
# Angular isotropic distribution
/gps/ang/type iso
# Rotate it to shoot particles in the detector.
# And make it diamond as in the test beam 2016
/gps/pos/rot1 1 1 0
/gps/pos/rot2 0 -1 0
# Set theta smeating range.
/gps/ang/mintheta 0. rad
/gps/ang/maxtheta 0.752 mrad
# Particle type
/gps/particle e-
# Energy distribution is a Gauss with mean of 5 GeV
# and sigma 100 Mev
/gps/ene/type Gauss
/gps/ene/mono 5. GeV
/gps/ene/sigma 0.105 GeV
# Particle Sourse is plane square
/gps/pos/type Plane
/gps/pos/shape Square
# Center of a square. Shifted a little bit to match data
/gps/pos/centre -0.6 0. 0. mm
# Half sizes of the beam
/gps/pos/halfx 2.5 mm
/gps/pos/halfy 2.5 mm
#################################################
#################################################
#################################################
# Re-establish auto refreshing and verbosity:
/vis/viewer/set/autoRefresh true
/vis/verbose warnings