forked from ActarSimGroup/Actarsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvis_kine.mac
276 lines (270 loc) · 9.85 KB
/
vis_kine.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
################################################################
#*-- AUTHOR : Hector Alvarez-Pol
#*-- Date: 05/2005
#*-- Last Update: 15/05/08
#*-- Copyright: GENP (Univ. Santiago de Compostela)
# --------------------------------------------------------------
# Comments:
# - 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 levels and saveHistory
/control/verbose 1
/control/saveHistory
/run/verbose 1
/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
# standards: emstandard_opt0, emstandard_opt3, emstandard_opt4,
# others: ionGasModels
#
#/ActarSim/phys/addPhysics standard
#/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 off #Includes the Maiko geometry in the simulation
/ActarSim/det/ACTARTPCDEMOGeoIncludedFlag on #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/setGasPressure 0.1
/ActarSim/det/gas/setGasTemperature 293.15 #Select the Gas Temperature for the Gas box
#
#/ActarSim/det/gas/setGasMat iC4H10 #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
#
#
# SILICON DETECTOR
#
/ActarSim/det/silGeoIncludedFlag on
#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 coveragey; 3 only output and bottom walls ...
/ActarSim/det/sil/sideCoverage 25
#
#/ActarSim/det/sil/xBoxHalfLength 95. mm
#/ActarSim/det/sil/yBoxHalfLength 105. mm
#/ActarSim/det/sil/zBoxHalfLength 120. mm
#
/ActarSim/det/sil/xBoxHalfLength 53.8 mm
/ActarSim/det/sil/yBoxHalfLength 0. mm
/ActarSim/det/sil/zBoxHalfLength 46.8 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 150. mm
#/ActarSim/det/sci/yBoxHalfLength 150. mm
#/ActarSim/det/sci/zBoxHalfLength 150. 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
/ActarSim/analControl/storeTrackHistos off
/ActarSim/analControl/storeEvents off
/ActarSim/analControl/storeHistograms off
/ActarSim/analControl/storeSimpleTracks on
#/ActarSim/analControl/setMinStrideLength 0.1
#/ActarSim/phys/stepMax 1000000.
#
# 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 on #Simulates the beam energy loss in gas
/ActarSim/gun/realisticBeam on #Simulates beam emittance according to emittance parameters
#
#/ActarSim/gun/energy 11. MeV
#/gun/position 0 0 -69 mm
/ActarSim/gun/beamPosition 0 0 -69 mm
/ActarSim/gun/beamDirection 0 0 1
#
#/ActarSim/gun/emittance 200.0 #Selects the value of the emittance [in mm mrad]
/ActarSim/gun/beamRadiusAtEntrance 1. 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
#
# Realistic Event-Generator on
/ActarSim/gun/reactionFromEvGen off
#
# Reaction from Event-Generator
/ActarSim/gun/reactionFromCrossSection off
#
# A) Track a particle or set of particles defined from the Particles list
#
# 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 on
#
#/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 12 6 0.0 12.
#/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 12 6 0.0 12.
#/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/recoilIon 1 2 1 0.0 2.0141
#/ActarSim/gun/time 0
#/ActarSim/gun/polarization 0
#/ActarSim/gun/number 1
/ActarSim/gun/randomVertexZPosition on
#/ActarSim/gun/randomVertexZRange 10 128 mm
/ActarSim/gun/randomVertexZRange -64 64 mm
#/ActarSim/gun/vertexZPosition 0 mm
#/ActarSim/gun/energy 80 MeV
/ActarSim/gun/Kine/labEnergy 80 MeV
/ActarSim/gun/Kine/randomThetaCM on
/ActarSim/gun/Kine/randomThetaRange 0.0 180.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