QwGeant4
MD3_DD_study.in
Go to the documentation of this file.
1 #=======================================
2 # Macro file when runing in batch mode
3 # (no graphical output)
4 #
5 # usage:
6 #
7 #=======================================
8 
9 # This shows the processes for all particles
10 #/process/list
11 # AddDiscreteProcess to OpticalPhoton
12 # Transportation, msc, hIoni, eIoni
13 # eBrem, annihil, phot, compt
14 # conv, muIoni, muBrems, muPairProd
15 # Decay, Cerenkov, OpAbsorption, OpBoundary
16 
17 # This turns off processes for all particles
18 #/process/inactivate msc
19 #/process/inactivate eBrem
20 #/process/inactivate compt
21 #/process/inactivate eIoni
22 #/process/inactivate phot
23 #/process/inactivate Cerenkov
24 
25 # or you can turn it off only for electrons
26 # process labelled "1" in e- process list is MultipleScattering, see QweakSimPhysicsList.cc, line 180
27 #/particle/select e-
28 #/particle/process/dump
29 #/particle/process/inactivate 3
30 
31 
32 #=================================================
33 # Macro file myQweakConfiguration.mac
34 # Base configuration of the Qweak Apparatus
35 # Defaults to production LH2 simulation
36 #=================================================
37 
38 #==========================
39 # Store Tracks
40 #==========================
41 /tracking/storeTrajectory 1
42 
43 #==========================
44 # Octant Selection
45 #==========================
46 # Valid values range from 0 to 12
47 # default 0: events thrown in all octants
48 # 1-8: events thrown in corresponding octant
49 # 9-12: events thrown in two octants (9 for 1+5, 12 for 4+8)
50 
51 /EventGen/SelectOctant 3
52 
53 #==========================
54 # Primary generator
55 #==========================
56 # If below set points are not given, the beam starts
57 # at (0,0,0) (inside QTOR)
58 #
59 # place beam befor pre-radiator of MD3
60 /PrimaryEvent/SetBeamPositionX 0.0 cm
61 /PrimaryEvent/SetBeamPositionY 335.0 cm
62 /PrimaryEvent/SetBeamPositionZ 560.0 cm
63 /PrimaryEvent/SetPolarization L
64 #/PrimaryEvent/SetFixedPosMom true
65 
66 /EventGen/SetBeamEnergy 1160 MeV
67 
68 #==========================
69 # Set beam rastering region
70 #==========================
71 /PrimaryEvent/SetRasterXmin 0.0 mm
72 /PrimaryEvent/SetRasterXmax 0.0 mm
73 /PrimaryEvent/SetRasterYmin 0.0 mm
74 /PrimaryEvent/SetRasterYmax 0.0 mm
75 
76 
77 #==========================
78 # Cerenkov Detector related
79 #==========================
80 # Air :without Cerenkov light production
81 # Quartz :with Cerenkov light production
82 #
83 # Angle is definedagaing vertical (y) axis
84 # - a tilt angle of 0.0*deg means vertical
85 # - negative angle will tilt detector towards target
86 
87 /Cerenkov/SetCerenkovMaterial Quartz
88 
89 /Cerenkov/SetTiltingAngle 0.0 degree
90 
91 /Cerenkov/SetPreradiatorMaterial PBA
92 
93 # Define the number of Cereknov Bars
94 /Cerenkov/SetNumberOfDetectors 8
95 
96 # Move Cerenkov Detectors to actual position
97 /Cerenkov/Cerenkov1/SetCenterPositionInY 334.724 cm
98 /Cerenkov/Cerenkov1/SetCenterPositionInZ 576.665 cm
99 
100 /Cerenkov/Cerenkov2/SetCenterPositionInY 334.742 cm
101 /Cerenkov/Cerenkov2/SetCenterPositionInZ 576.705 cm
102 
103 /Cerenkov/Cerenkov3/SetCenterPositionInY 334.738 cm
104 /Cerenkov/Cerenkov3/SetCenterPositionInZ 577.020 cm
105 
106 /Cerenkov/Cerenkov4/SetCenterPositionInY 335.036 cm
107 /Cerenkov/Cerenkov4/SetCenterPositionInZ 577.425 cm
108 
109 /Cerenkov/Cerenkov5/SetCenterPositionInY 335.074 cm
110 /Cerenkov/Cerenkov5/SetCenterPositionInZ 577.515 cm
111 
112 /Cerenkov/Cerenkov6/SetCenterPositionInY 335.252 cm
113 /Cerenkov/Cerenkov6/SetCenterPositionInZ 577.955 cm
114 
115 /Cerenkov/Cerenkov7/SetCenterPositionInY 335.224 cm
116 /Cerenkov/Cerenkov7/SetCenterPositionInZ 577.885 cm
117 
118 /Cerenkov/Cerenkov8/SetCenterPositionInY 334.888 cm
119 /Cerenkov/Cerenkov8/SetCenterPositionInZ 577.060 cm
120 
121 
122 /random/setSavingFlag 0
123 /random/setDirectoryName random/%name%_%jobid%
124 /random/setSeeds %seedA% %seedB%
125 
126 
127 # Select the tracking flag
128 # 0: Allow primaries only (default)
129 # 1: Allow primaries and optical photons only
130 # 2: track all primaries and their secondaries except optical photons
131 # 3: track all primaries and their secondaries
132 #
133 #/TrackingAction/TrackingFlag 0
134 #/TrackingAction/TrackingFlag 1
135 /TrackingAction/TrackingFlag 2
136 #/TrackingAction/TrackingFlag 3
137 
138 
139 /EventGen/SelectOctant 3
140 
141 #set the rootfile name
142 /Analysis/RootFileName rootfiles/%name%_%jobid%_workdir/%name%_%jobid%.root
143 
144 #number of events
145 /run/beamOn %nevents%