1 #=======================================
2 # Macro file when runing in batch mode
3 # (no graphical output)
7 #=======================================
9 # This shows the processes for all particles
11 # AddDiscreteProcess to OpticalPhoton
12 # Transportation, msc, hIoni, eIoni
13 # eBrem, annihil, phot, compt
14 # conv, muIoni, muBrems, muPairProd
15 # Decay, Cerenkov, OpAbsorption, OpBoundary
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
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
28 #/particle/process/dump
29 #/particle/process/inactivate 3
32 #=================================================
33 # Macro file myQweakConfiguration.mac
34 # Base configuration of the Qweak Apparatus
35 # Defaults to production LH2 simulation
36 #=================================================
38 #==========================
40 #==========================
41 /tracking/storeTrajectory 1
43 #==========================
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)
51 /EventGen/SelectOctant 3
53 #==========================
55 #==========================
56 # If below set points are not given, the beam starts
57 # at (0,0,0) (inside QTOR)
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
66 /EventGen/SetBeamEnergy 1160 MeV
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
77 #==========================
78 # Cerenkov Detector related
79 #==========================
80 # Air :without Cerenkov light production
81 # Quartz :with Cerenkov light production
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
87 /Cerenkov/SetCerenkovMaterial Quartz
89 /Cerenkov/SetTiltingAngle 0.0 degree
91 /Cerenkov/SetPreradiatorMaterial PBA
93 # Define the number of Cereknov Bars
94 /Cerenkov/SetNumberOfDetectors 8
96 # Move Cerenkov Detectors to actual position
97 /Cerenkov/Cerenkov1/SetCenterPositionInY 334.724 cm
98 /Cerenkov/Cerenkov1/SetCenterPositionInZ 576.665 cm
100 /Cerenkov/Cerenkov2/SetCenterPositionInY 334.742 cm
101 /Cerenkov/Cerenkov2/SetCenterPositionInZ 576.705 cm
103 /Cerenkov/Cerenkov3/SetCenterPositionInY 334.738 cm
104 /Cerenkov/Cerenkov3/SetCenterPositionInZ 577.020 cm
106 /Cerenkov/Cerenkov4/SetCenterPositionInY 335.036 cm
107 /Cerenkov/Cerenkov4/SetCenterPositionInZ 577.425 cm
109 /Cerenkov/Cerenkov5/SetCenterPositionInY 335.074 cm
110 /Cerenkov/Cerenkov5/SetCenterPositionInZ 577.515 cm
112 /Cerenkov/Cerenkov6/SetCenterPositionInY 335.252 cm
113 /Cerenkov/Cerenkov6/SetCenterPositionInZ 577.955 cm
115 /Cerenkov/Cerenkov7/SetCenterPositionInY 335.224 cm
116 /Cerenkov/Cerenkov7/SetCenterPositionInZ 577.885 cm
118 /Cerenkov/Cerenkov8/SetCenterPositionInY 334.888 cm
119 /Cerenkov/Cerenkov8/SetCenterPositionInZ 577.060 cm
122 /random/setSavingFlag 0
123 /random/setDirectoryName random/%name%_%jobid%
124 /random/setSeeds %seedA% %seedB%
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
133 #/TrackingAction/TrackingFlag 0
134 #/TrackingAction/TrackingFlag 1
135 /TrackingAction/TrackingFlag 2
136 #/TrackingAction/TrackingFlag 3
139 /EventGen/SelectOctant 3
141 #set the rootfile name
142 /Analysis/RootFileName rootfiles/%name%_%jobid%_workdir/%name%_%jobid%.root
145 /run/beamOn %nevents%