@@ -100,22 +100,35 @@ def photo_nuclear( detector, generator ) :
100100 sim .setDetector ( detector , True )
101101
102102 # Set run parameters
103- sim .description = "ECal photo-nuclear, xsec bias 450"
103+ if generator .energy == 8.0 :
104+ xsec_bias = 550.
105+ xsec_bias_threshold = 5000.
106+ tagger_threshold = 7600.
107+ recoil_max_p = 3000.
108+ brem_min_e = 5000.
109+ else :
110+ xsec_bias = 450.
111+ xsec_bias_threshold = 2500.
112+ tagger_threshold = 3800.
113+ recoil_max_p = 1500.
114+ brem_min_e = 2500.
115+
116+ sim .description = "ECal photo-nuclear, xsec bias " + str (xsec_bias ) + " xsec threshold " + str (xsec_bias_threshold ) + " GeV"
104117 sim .beamSpotSmear = [20. , 80. , 0. ]
105118
106119 sim .generators .append (generator )
107120
108121 # Enable and configure the biasing
109- sim .biasing_operators = [ bias_operators .PhotoNuclear ('target' ,450. , 2500. ,only_children_of_primary = True ) ]
122+ sim .biasing_operators = [ bias_operators .PhotoNuclear ('target' ,xsec_bias , xsec_bias_threshold ,only_children_of_primary = True ) ]
110123
111124 # the following filters are in a library that needs to be included
112125 includeBiasing .library ()
113126
114127 # Configure the sequence in which user actions should be called.
115128 sim .actions .extend ([
116- filters .TaggerVetoFilter (),
129+ filters .TaggerVetoFilter (thresh = tagger_threshold ),
117130 # Only consider events where a hard brem occurs
118- filters .TargetBremFilter (),
131+ filters .TargetBremFilter (recoil_max_p = recoil_max_p , brem_min_e = brem_min_e ),
119132 filters .TargetPNFilter (),
120133 # Tag all photo-nuclear tracks to persist them to the event.
121134 util .TrackProcessFilter .photo_nuclear ()
0 commit comments