forked from ActarSimGroup/Actarsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvis_maiko.mac
305 lines (297 loc) · 11.8 KB
/
vis_maiko.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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
################################################################
#*-- AUTHOR : Hector Alvarez-Pol
#*-- Date: 05/2005
#*-- Last Update: 15/05/08
#*-- Copyright: GENP (Univ. Santiago de Compostela)
# --------------------------------------------------------------
# Comments:
# - Updated macro with the available options for ActarSim control.
# Available from the "G4file" menu in an ActarSim interactive
# (only for Qt) session. Please, modify values, comment and
# uncomment commands but do not modify the order or remove comments.
# ACTARTPCDEMO case: The ACTAR-TPC Demonstrator detector.
#
# - 05/12/15 Add ACTARTPCDEMO Flag
# - 15/05/08 Multidetector geometry
# - 05/05/06 Updating to new ActarSim (geant4.8) code
# - 22/11/05 Updated including CINE options
# - 31/05/05 Macro for ACTAR simulation
#
################################################################
# Macro file for testing online jobs
################################################################
################################################################
#
# VERBOSITY AND HISTORY CONTROL
# verbosity levels and saveHistory (commands that do not belong to ACTARSIM)
/control/verbose 1
/control/saveHistory
/run/verbose 0
/event/verbose 0
/tracking/verbose 0
#
# MODULAR PHYSICS CONTROL
# Setting the Physics modules; valid values are here listed:
# em: standard, lowenergy, penelope, (choose one from this three)
# common: decay,
# hadronic: elastic, binary, binary_ion, gamma_nuc,
# ion low-energy: ion-LowE, ion-LowE-ziegler1977, ion-LowE-ziegler1985,
# ion-LowE-ziegler2000, ion-standard
#
#/ActarSim/phys/RemovePhysics #Remove all modula physics list
#/ActarSim/phys/addPhysics standard #Add modula physics list
#/ActarSim/phys/addPhysics decay
#/ActarSim/phys/addPhysics elastic
#/ActarSim/phys/addPhysics binary
#/ActarSim/phys/addPhysics binary_ion
#/ActarSim/phys/addPhysics gamma_nuc
#/ActarSim/phys/addPhysics lowenergy
#/ActarSim/phys/addPhysics ion-LowE
#/ActarSim/phys/addPhysics ion-LowE-ziegler1977
#/ActarSim/phys/addPhysics ion-LowE-ziegler1985
#/ActarSim/phys/addPhysics ion-LowE-ziegler2000
#/ActarSim/phys/addPhysics ion-standard
#/ActarSim/phys/addPhysics penelope
#/ActarSim/phys/addPhysics emstandard_opt0
/ActarSim/phys/addPhysics emstandard_opt3
#/ActarSim/phys/addPhysics emstandard_opt4
#/ActarSim/phys/addPhysics ionGasModels
#
#
# Cuts for the particles (incomplete list, see README)
#
# /ActarSim/phys/setGCut 0.1
# /ActarSim/phys/setECut 0.1
# /ActarSim/phys/setPCut 0.1
# /ActarSim/phys/setCuts 1 mm
/ActarSim/phys/verbose 0
#
# Initialization is moved here from the main allowing PhysicsList
#
/run/initialize
#
# DETECTOR CHARACTERIZATION
##
# PRE-DEFINED DETECTORS (if any of this predefined detectors is on, most detector commands are not used)
/ActarSim/det/MaikoGeoIncludedFlag on #Includes the Maiko geometry in the simulation
/ActarSim/det/ACTARTPCDEMOGeoIncludedFlag off #Includes the ACTARTPC Demonstrator geometry in the simulation
/ActarSim/det/ACTARTPCGeoIncludedFlag off #Includes the ACTARTPC geometry in the simulation
# Control of the materials (options: Galactic, Water, ...)
/ActarSim/det/setMediumMat Air #Selects Material outside the Chamber.
#/ActarSim/det/setChamberMat Galactic #Selects Material in the Chamber (but not in the gas!)
# Electric and Magnetic fields
#/ActarSim/det/setEleField 0 5e-3 0 #Defines electric field
#/ActarSim/det/setMagField 0 0 0 T #Defines magnetic field
#
#
# GAS CHARACTERISTICS (options are H2, D2, He, Ar, CF4, CH4, iC4H10, set both in GasBox and GasChamber)
#
/ActarSim/det/gas/setGasPressure 1.01325 #Select the Gas Pressure for the Gas box
/ActarSim/det/gas/setGasTemperature 293.15 #Select the Gas Temperature for the Gas box
#
/ActarSim/det/gas/setGasMat D2 #Select Material of the Gas for the Gas box
#
# GAS MIXTURE: first select number of elements (up to 10) and then set all gases with their ratio
#/ActarSim/det/gas/mixture/GasMixture 2 #Set a Gas Mixture with N number of elements (default 0)
#/ActarSim/det/gas/mixture/setGasMix 1 He 0.90 #Set a Gas Mixture for the Gas box
#/ActarSim/det/gas/mixture/setGasMix 2 iC4H10 0.10 #Set a Gas Mixture for the Gas box
#/ActarSim/det/gas/setGasMat GasMix #Set a Gas Mixture for the Gas box
#
#
# GAS CHAMBER
#
/ActarSim/det/setXLengthGasChamber 200. mm
/ActarSim/det/setYLengthGasChamber 150. mm
/ActarSim/det/setZLengthGasChamber 250. mm
#
# GAS DETECTOR
#
/ActarSim/det/gasGeoIncludedFlag on
# if box
/ActarSim/det/gas/setDetectorGeometry box
#
/ActarSim/det/gas/setXLengthGasBox 50. mm
/ActarSim/det/gas/setYLengthGasBox 70. mm
/ActarSim/det/gas/setZLengthGasBox 50. mm
#
#
# SILICON DETECTOR
#
/ActarSim/det/silGeoIncludedFlag off
#Options for Silicon and scintillator coverage:
# 6 bits to indicate which sci wall is present (1) or absent (0)
# order is:
# bit1 (lsb) beam output wall 1
# bit2 lower (gravity based) wall 2
# bit3 upper (gravity based) wall 4
# bit4 left (from beam point of view) wall 8
# bit5 right (from beam point of view) wall 16
# bit6 (msb) beam entrance wall 32
# examples: 63 full coverage; 3 only output and bottom walls ...
/ActarSim/det/sil/sideCoverage 25
#
/ActarSim/det/sil/xBoxHalfLength 77. mm
/ActarSim/det/sil/yBoxHalfLength 105. mm
/ActarSim/det/sil/zBoxHalfLength 115. mm
#
/ActarSim/det/sil/print
#
# SCINTILLATOR DETECTOR
#
/ActarSim/det/sciGeoIncludedFlag off
# see above explanation in the equivalent command for the Silicons
/ActarSim/det/sci/sideCoverage 25
#
/ActarSim/det/sci/xBoxHalfLength 77. mm
/ActarSim/det/sci/yBoxHalfLength 105. mm
/ActarSim/det/sci/zBoxHalfLength 115. mm
#
/ActarSim/det/sci/print
#
#
#Control of the output on the ROOT file
#all the tracks are stored (note: huge space comsumption)
#Note: it should come before the update!!!
/ActarSim/analControl/storeTracks off #Stores the tracks in the output Tree
/ActarSim/analControl/storeTrackHistos off #Stores the tracks in Histograms
/ActarSim/analControl/storeEvents on #Stores the events in the output Tree
/ActarSim/analControl/storeHistograms off #Stores histograms in the output Tree
/ActarSim/analControl/storeSimpleTracks off #Stores the simple tracks in the output Tree
#/ActarSim/analControl/setMinStrideLength 0.1 #Specifies the minimum length of the strides in the simpleTracks
#/ActarSim/phys/stepMax 1000000. #Set max allowed step length for the default region
#
# Update is mandatory after any material,field or detector change
#
/ActarSim/det/update
#/ActarSim/det/print
#
# CONTROL OF THE PRIMARY EVENTS
#For all cases the possibility to have realistic beam distribution
/ActarSim/gun/beamInteraction off #Simulates the beam energy loss in gas
/ActarSim/gun/realisticBeam off #Simulates beam emittance according to emittance parameters
#/ActarSim/gun/emittance 200.0 #Selects the value of the emittance [in mm mrad]
#/ActarSim/gun/beamRadiusAtEntrance 18. mm #Selects the beam radius at entrance of ACTAR. Used with the emittance to calculate the position and angle distributions of the beam when a realisticBeam option is set
#/ActarSim/gun/beamDirection 0 0 1 #Set beam momentum direction
#/ActarSim/gun/beamPosition 0 0 -69 mm #Set beam starting position
#/ActarSim/gun/beamPosition 0 0 -54 mm
#/ActarSim/gun/randomTheta off #Select a random Theta angle for the scattered particle
#/ActarSim/gun/randomThetaVal 0 180 #Sets the limits in the Theta angle for the scattered particle. The value is randomly chosen between the limits
#/ActarSim/gun/randomPhi off #Select a random Phi angle for the scattered particle
#/ActarSim/gun/randomPhiVal 0 360 #Sets the limits in the Phi angle for the scattered particle. The value is randomly chosen between the limits
#
# A) Track a particle or set of particles defined from the Particles list
#
#/ActarSim/gun/List
#/ActarSim/gun/particle proton
#if you want to use an ion, write "ion" in the previous command
#and set the Z, A and charge state in the next...
#/ActarSim/gun/ion 1 1 1 0.0 1.00782503207
#/ActarSim/gun/ion 2 4 2 0.0 4.00260325415
#/ActarSim/gun/ion 6 12 6 0.0 12.
/ActarSim/gun/ion 6 13 6 0.0 13.00335483778
#/ActarSim/gun/ion 12 24 12 0.0 23.985041699
#/ActarSim/gun/ion 26 56 26 0.0 55.934937475
#/ActarSim/gun/Kine/labEnergy 4 MeV
#/ActarSim/gun/Kine/labEnergy 80 MeV
/ActarSim/gun/Kine/labEnergy 650 MeV
#/ActarSim/gun/energy 11. MeV
#/ActarSim/gun/position 0 0 0
/ActarSim/gun/beamPosition 0 0 -69 mm
#/ActarSim/gun/direction 0 0 1
#/ActarSim/gun/time 0
#/ActarSim/gun/polarization 0
#/ActarSim/gun/number 1
#/ActarSim/gun/randomVertexZPosition off
#/ActarSim/gun/randomVertexZRange 50 200 mm
#/ActarSim/gun/vertexZPosition 150 mm
#
# B) Track a predefined reaction from a file:
#
/ActarSim/gun/reactionFromFile off
#if you select a reaction, you should say the file in the command below
#possibilities are (up to now): He8onp_100MeV_Elastic.dat,
#He8onp_100MeV_tritium.dat, He8onC12_100MeV_Elastic.dat,
#He8onp_50MeV_Elastic.dat, He8onC12_50MeV_Elastic.dat, He8onp_50MeV_tritium.dat
#
#/ActarSim/gun/reactionFile /data/He8onp_50MeV_Elastic.dat
#/ActarSim/gun/randomReaction off STILL NOT DONE -- ALWAYS RANDOM
#/ActarSim/gun/rowInFileReaction 4 STILL NOT DONE -- ALWAYS RANDOM
#
#
#C) Track a reacion calculated from CINE (program from W. Mittig)
#
/ActarSim/gun/reactionFromCine off
#/ActarSim/gun/Cine/incidentIon 28 78 28 0.0
#/ActarSim/gun/Cine/targetIon 1 2 1 0.0
#/ActarSim/gun/Cine/scatteredIon 28 79 28 0.
#/ActarSim/gun/Cine/recoilIon 1 1 1 0.0
#/ActarSim/gun/Cine/reactionQ -1.5 MeV
#/ActarSim/gun/Cine/labEnergy 624 MeV
#/ActarSim/gun/Cine/randomTheta off
#/ActarSim/gun/Cine/thetaLabAngle 0.5
#D) Track a reacion calculated from KINE
#
/ActarSim/gun/reactionFromKine off
#/ActarSim/gun/Kine/incidentIon 1 2 1 0.0 2.0141
#/ActarSim/gun/Kine/incidentIon 2 4 2 0.0 4.001506179125
#/ActarSim/gun/Kine/incidentIon 2 4 2 0.0 4.00260325
#/ActarSim/gun/Kine/incidentIon 6 13 6 0.0 13.00335483778
#/ActarSim/gun/Kine/incidentIon 50 132 50 0.0 131.9178
#/ActarSim/gun/Kine/targetIon 1 1 1 0.0 1.00782503207
#/ActarSim/gun/Kine/targetIon 1 2 1 0.0 2.0141
#/ActarSim/gun/Kine/scatteredIon 1 2 1 0.0 2.0141
#/ActarSim/gun/Kine/scatteredIon 2 4 2 0.0 4.001506179125
#/ActarSim/gun/Kine/scatteredIon 2 4 2 0.0 4.00260325
#/ActarSim/gun/Kine/scatteredIon 6 13 6 0.0 13.00335483778
#/ActarSim/gun/Kine/scatteredIon 50 133 50 0.854 132.9238
#/ActarSim/gun/Kine/recoilIon 1 1 1 0.0 1.00782503207
#/ActarSim/gun/Kine/labEnergy 650 MeV
#/ActarSim/gun/Kine/randomThetaCM on
#/ActarSim/gun/Kine/randomThetaRange 0.0 50.0
#/ActarSim/gun/Kine/randomPhiAngle on
#/ActarSim/gun/Kine/userThetaCM 100.0 deg
#/ActarSim/gun/Kine/userPhiAngle 0. deg
#/ActarSim/gun/Kine/vertexPosition 0. 0. 15 cm
#
# VISUALIZATION
#
# Draw the whole geometry tree with details as function of verbosity
#/vis/ASCIITree/verbose 10
#/vis/drawTree
# visualization
/vis/scene/create
/vis/open OGLSQt
/vis/viewer/set/autoRefresh 0
/vis/viewer/flush
# set camera
/vis/viewer/reset
/vis/viewer/set/hiddenEdge 0
#/vis/viewer/set/lightsThetaPhi 120 40
/vis/viewer/set/viewpointThetaPhi 115. 145.
#/vis/viewer/set/viewpointThetaPhi 90. 90.
/vis/viewer/zoom 1.0
#/vis/viewer/set/background 1 1 1 1
/vis/viewer/flush
#
# drawing style
#/vis/viewer/set/style surface
/vis/viewer/set/style wireframe
/vis/viewer/flush
#
# drawing the tracks
#/tracking/storeTrajectory 10
/vis/scene/endOfEventAction accumulate
#/vis/scene/endOfEventAction refresh
#/vis/viewer/set/autoRefresh 1
#
# create an empty scene and add the detector geometry to it
#/vis/drawVolume
#/vis/scene/add/axes 0 0 0 0.1 m
/vis/scene/add/trajectories
/vis/scene/add/hits
#/ActarSim/event/drawTracks all
/ActarSim/event/printModulo 10
#
# RUN: number of events
#
#/run/beamOn 100