forked from EMMA-Collaboration/G4EMMA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvisdebug.mac
More file actions
executable file
·167 lines (135 loc) · 5.92 KB
/
Copy pathvisdebug.mac
File metadata and controls
executable file
·167 lines (135 loc) · 5.92 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#
# Macro file for debugging BuildGeometry
#
# Set verbosity
#/control/verbose 2
########################################################################################
# Print out physical, logical volumes and solid name and type
#/vis/ASCIITree/verbose 2
#/vis/drawTree
########################################################################################
# See functions within to check for overlaps
#/geometry/test/
########################################################################################
# Use this open statement to create an OpenGL view:
/vis/open OGL 800x400-0+0
# Draw world volume
#/vis/drawVolume
# To draw individual parts only (must add physical not logical volumes)
/vis/drawVolume Pipe10WallPhysical
/vis/scene/add/volume ED2Physical
/vis/scene/add/volume ED2Wall1Physical
/vis/scene/add/volume ED2Wall2Physical
# Sets visibility of logical volume(s) (must manipulate logical not physical volumes)
#/vis/geometry/set/visibility Q4Logical 0 0
#/vis/geometry/set/visibility Pipe13Logical 0 0
#/vis/geometry/set/visibility Pipe13WallLogical 0 0
# Wait for all draw commands to finish before drawing to avoid excess redrawing
/vis/viewer/set/autoRefresh false
########################################################################################
# viewing all of EMMA
/vis/viewer/zoomTo 4
/vis/viewer/set/viewpointThetaPhi 90 89
#/vis/viewer/set/viewpointThetaPhi 0 0
/vis/viewer/panTo -2 0.5 m
#/vis/viewer/pan -3.0 0.5 m
# Turn on/off hidden line removal
/vis/viewer/set/hiddenEdge 1
# Specify style (surface or wireframe):
/vis/viewer/set/style surface
#/vis/viewer/set/style wireframe
# Edges become visible/invisible in surface mode.
/vis/viewer/set/edge 1
# Set direction from target to lights.
#/vis/viewer/set/lightsThetaPhi 70 80 deg
# Set number of sides per circle for polygon/polyhedron drawing.
#/vis/viewer/set/lineSegmentsPerCircle 180
# Draw coordinate axes:
/vis/scene/add/axes 1.0 0 1.0 0.5 m
#/vis/scene/add/axes -0.7 0 2 0.3 m
#/vis/scene/add/axes -0.7 0 3.5 0.3 m
########################################################################################
# Moves top-level drawn volumes by this factor from this centre.
#/vis/viewer/set/explodeFactor 1.5 50 0 0 cm
#/vis/viewer/zoomTo 0.6
# reset
#/vis/viewer/set/explodeFactor 1 0 0 0 cm
########################################################################################
# Sets colour of logical volume(s).
#/vis/geometry/set/colour targetLogical 0 red
#/vis/geometry/set/colour coverLogical 0 red
/vis/geometry/set/colour ED1Wall1Logical 0 yellow
/vis/geometry/set/colour ED1Wall2Logical 0 yellow
/vis/geometry/set/colour ED1Wall3Logical 0 blue
/vis/geometry/set/colour ED1Wall4Logical 0 blue
/vis/geometry/set/colour Q2Logical 0 magenta
/vis/geometry/set/colour Q1Logical 0 yellow
/vis/geometry/set/colour Pipe7WallLogical 0 yellow
/vis/geometry/set/colour Pipe8WallLogical 0 yellow
/vis/geometry/set/colour Pipe8Logical 0 blue
/vis/geometry/set/colour MDWall1Logical 0 yellow
/vis/geometry/set/colour MDWall2Logical 0 yellow
/vis/geometry/set/colour MDWall3Logical 0 blue
/vis/geometry/set/colour MDWall4Logical 0 blue
/vis/geometry/set/colour MDLogical 0 yellow
/vis/geometry/set/colour detectorBoxLogical 1 red
# same as
#/vis/geometry/set/colour detectorLogical 0 red
/vis/geometry/set/colour ED2Wall1Logical 0 yellow
/vis/geometry/set/colour ED2Wall2Logical 0 yellow
/vis/geometry/set/colour ED2Wall3Logical 0 blue
/vis/geometry/set/colour ED2Wall4Logical 0 blue
/vis/geometry/set/colour ED2Logical 0 green
/vis/geometry/set/colour Q3Logical 0 magenta
/vis/geometry/set/colour Q4Logical 0 green
/vis/geometry/set/colour ED1SlitLogical 0 red
/vis/geometry/set/colour hSlits1Logical 0 red
/vis/geometry/set/colour MDSlit1Logical 0 red
/vis/geometry/set/colour MDSlit2Logical 0 red
/vis/geometry/set/colour hSlits2Logical 0 red
/vis/geometry/set/colour ED2SlitLogical 0 red
/vis/geometry/set/colour rSlits3Logical 0 red
/vis/geometry/set/colour lSlits4Logical 0 red
/vis/geometry/set/colour Q3apt1WallLogical 0 yellow
/vis/geometry/set/colour Q3apt2WallLogical 0 yellow
/vis/geometry/set/colour Pipe12WallLogical 0 yellow
/vis/geometry/set/colour Pipe13Logical 0 blue
/vis/geometry/set/colour Pipe14Logical 0 magenta
#/vis/geometry/set/colour degrader1Logical 0 magenta
#/vis/geometry/set/colour degrader2Logical 0 blue
# Forces auxiliary (soft) edges of logical volume(s) to be visible, regardless of the view parameters.
#/vis/geometry/set/forceAuxEdgeVisible coverYLogical 0 0
########################################################################################
# Wait for all draw commands to finish before drawing to avoid excess redrawing
/vis/viewer/set/autoRefresh true
#/vis/viewer/flush
#/vis/viewer/refresh
########################################################################################
# viewing cross section of front end of EMMA:
#/vis/viewer/addCutawayPlane -1 10 10 cm 1 0 0
#/vis/viewer/set/viewpointThetaPhi 130 170
#/vis/viewer/panTo 250 30 cm
#/vis/viewer/zoomTo 10
# Remove plane cuts
#/vis/viewer/clearCutawayPlanes
# viewing cross section of back end of EMMA:
#/vis/viewer/addCutawayPlane -1 10 10 cm 1 0 0
#/vis/viewer/set/viewpointThetaPhi 130 170
#/vis/viewer/panTo -300 -30 cm
#/vis/viewer/zoomTo 10
# viewing cross section of middle of EMMA:
#/vis/viewer/addCutawayPlane 500 0 500 cm 0 -1 0
#/vis/viewer/set/viewpointThetaPhi 90 89
#/vis/viewer/panTo 20 40 cm
#/vis/viewer/zoomTo 4.5
########################################################################################
# Change color of background and volumes
/vis/viewer/set/background white
/vis/viewer/set/defaultColour grey
# To print
/vis/ogl/set/printMode vectored
/vis/ogl/set/printSize 1000 500
#/vis/ogl/set/printFilename drawings/frontVolumes
#/vis/ogl/printEPS
#/vis/viewer/set/background black
#/vis/viewer/set/defaultColour white