@@ -57,9 +57,11 @@ def electro_nuclear( detector, generator ) :
5757 includeBiasing .library ()
5858
5959 # Configure the sequence in which user actions should be called.
60+ recoil_thresh = 0.625 * generator .energy * 1000.
61+ tagger_threshold = 0.95 * generator .energy * 1000.
6062 sim .actions .extend ([
61- filters .TaggerVetoFilter (),
62- filters .TargetENFilter (2500. ),
63+ filters .TaggerVetoFilter (thresh = tagger_threshold ),
64+ filters .TargetENFilter (recoil_thresh ),
6365 util .TrackProcessFilter .electro_nuclear ()
6466 ])
6567
@@ -100,18 +102,15 @@ def photo_nuclear( detector, generator ) :
100102 sim .setDetector ( detector , True )
101103
102104 # Set run parameters
105+ xsec_bias_threshold = 0.625 * generator .energy * 1000.
106+ tagger_threshold = 0.95 * generator .energy * 1000.
107+ recoil_max_p = 0.375 * generator .energy * 1000.
108+ brem_min_e = 0.625 * generator .energy * 1000.
103109 if generator .energy == 8.0 :
104110 xsec_bias = 550.
105- xsec_bias_threshold = 5000.
106- tagger_threshold = 7600.
107- recoil_max_p = 3000.
108- brem_min_e = 5000.
111+
109112 else :
110113 xsec_bias = 450.
111- xsec_bias_threshold = 2500.
112- tagger_threshold = 3800.
113- recoil_max_p = 1500.
114- brem_min_e = 2500.
115114
116115 sim .description = "ECal photo-nuclear, xsec bias " + str (xsec_bias ) + " xsec threshold " + str (xsec_bias_threshold ) + " GeV"
117116 sim .beamSpotSmear = [20. , 80. , 0. ]
@@ -139,9 +138,9 @@ def photo_nuclear( detector, generator ) :
139138def gamma_mumu ( detector , generator ) :
140139 """Example configuration for biasing gamma to mu+ mu- conversions in the target.
141140
142- In this particular example, 4 GeV electrons are fired upstream of the
141+ In this particular example, 8 GeV electrons are fired upstream of the
143142 tagger tracker. The TargetBremFilter filters out all events that don't
144- produced a brem in the target with an energy greater than 2. 5 GeV.
143+ produced a brem in the target with an energy greater than 5 GeV.
145144
146145 Parameters
147146 ----------
@@ -171,6 +170,15 @@ def gamma_mumu( detector, generator ) :
171170 sim .description = "gamma -> mu+ mu-, xsec bias 10e9"
172171 sim .beamSpotSmear = [20. , 80. , 0. ]
173172
173+ tagger_threshold = 0.95 * generator .energy * 1000.
174+ recoil_max_p = 0.375 * generator .energy * 1000.
175+ brem_min_e = 0.625 * generator .energy * 1000.
176+ if generator .energy == 8.0 :
177+ xsec_bias = 550.
178+
179+ else :
180+ xsec_bias = 450.
181+
174182 sim .generators .append (generator )
175183
176184 # Enable and configure the biasing
@@ -182,8 +190,8 @@ def gamma_mumu( detector, generator ) :
182190 # Configure the sequence in which user actions should be called.
183191 sim .actions .extend ([
184192 # Only consider events where a hard brem occurs
185- filters .TaggerVetoFilter (),
186- filters .TargetBremFilter (),
193+ filters .TaggerVetoFilter (thresh = tagger_threshold ),
194+ filters .TargetBremFilter (recoil_max_p = recoil_max_p , brem_min_e = brem_min_e ),
187195 filters .TargetGammaMuMuFilter (),
188196 util .TrackProcessFilter .gamma_mumu ()
189197 ])
@@ -193,7 +201,7 @@ def gamma_mumu( detector, generator ) :
193201def dark_brem ( ap_mass , lhe , detector ) :
194202 """Example configuration for producing dark brem interactions in the target.
195203
196- This configures the sim to fire a 4 GeV electron upstream of the
204+ This configures the sim to fire a 8 GeV electron upstream of the
197205 tagger tracker. The dark-photon production cross-section is biased up in
198206 the target. Only events that result in a dark-photon being produced in the
199207 target are kept.
@@ -246,9 +254,9 @@ def dark_brem( ap_mass , lhe, detector) :
246254 ]
247255
248256 sim .actions .extend ([
249- #make sure electron reaches target with 3.5GeV
257+ #make sure electron reaches target with 7 GeV
250258 filters .TaggerVetoFilter (7000. ),
251- #make sure dark brem occurs in the target where A' has at least 2GeV
259+ #make sure dark brem occurs in the target where A' has at least 4GeV
252260 filters .TargetDarkBremFilter (4000. ),
253261 #keep all prodcuts of dark brem(A' and recoil electron)
254262 util .TrackProcessFilter .dark_brem ()
0 commit comments