ATLAS Offline Software
TrigEGammaPIDdefs.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
4  ElectronIDLoose = 0
5  ElectronIDLoose0 = 1
6  ElectronIDLoose1 = 2
7  ElectronIDLoose2 = 3
8  ElectronIDMedium = 4
9  ElectronIDMedium1 = 5
10  ElectronIDMedium2 = 6
11  ElectronIDMedium3 = 7
12  ElectronIDMedium_TRT = 8
13  ElectronIDTight = 9
14  ElectronIDTightEF = 10
15  ElectronIDTightEF_TRT = 11
16  ElectronIDTightEF_NoEoP_WithTightDeltaEta = 12
17  ElectronIDTight1 = 13
18  ElectronIDTight2 = 14
19  ElectronIDHltTighter = 15
20  PhotonIDLoose = 16
21  PhotonIDLooseEF = 17
22  PhotonIDMediumEF = 18
23  PhotonIDTight = 19
24  PhotonIDLooseEFTauMass = 20
25  ElectronIDLooseHLT = 21
26  ElectronIDMediumHLT = 22
27  ElectronIDTightHLT = 23
28 
30  """ @brief cluster eta range """
31  ClusterEtaRange_Electron = 0
32 
33  """ @brief matching to photon (not necessarily conversion--the name is historical) """
34  ConversionMatch_Electron = 1
35 
36  """ @brief cluster leakage into the hadronic calorimeter """
37  ClusterHadronicLeakage_Electron = 2
38  """ @brief energy in 2nd sampling (e.g E277>0) """
39  ClusterMiddleEnergy_Electron = 3
40  """ @brief energy ratio in 2nd sampling (e.g E237/E277) """
41  ClusterMiddleEratio37_Electron = 4
42  """ @brief energy ratio in 2nd sampling (e.g E233/E237) """
43  ClusterMiddleEratio33_Electron = 5
44  """ @brief width in the second sampling (e.g Weta2) """
45  ClusterMiddleWidth_Electron = 6
46  """ @brief energy fraction in the third layer """
47  ClusterBackEnergyFraction_Electron = 7
48  """ @brief fraction of energy found in 1st sampling (NB: not used in fact for electrons)"""
49  ClusterStripsEratio_Electron = 8
50  """ @brief energy of 2nd maximum in 1st sampling ~e2tsts1/(1000+const_lumi*et) """
51  ClusterStripsDeltaEmax2_Electron = 9
52  """ @brief difference between 2nd maximum and 1st minimum in strips (e2tsts1-emins1) """
53  ClusterStripsDeltaE_Electron = 10
54  """ @brief shower width in 1st sampling """
55  ClusterStripsWtot_Electron = 11
56  """ @brief shower shape in shower core 1st sampling """
57  ClusterStripsFracm_Electron = 12
58  """ @brief shower width weighted by distance from the maximum one """
59  ClusterStripsWeta1c_Electron = 13
60 
61  """ @brief difference between max and 2nd max in strips """
62  ClusterStripsDEmaxs1_Electron = 15
63  """ @brief B layer hit """
64  TrackBlayer_Electron = 16
65  """ @brief number of Pixel hits """
66  TrackPixel_Electron = 17
67  """ @brief number of Pixel and SCT hits """
68  TrackSi_Electron = 18
69  """ @brief distance of closet approach """
70  TrackA0_Electron = 19
71  """ @brief eta difference between cluster and extrapolated track in the 1st sampling """
72  TrackMatchEta_Electron = 20
73  """ @brief phi difference between cluster and extrapolated track in the 2nd sampling """
74  TrackMatchPhi_Electron = 21
75  """ @brief energy-momentum match """
76  TrackMatchEoverP_Electron = 22
77  """ @brief Cut on the TRT eProbabilityHT_Electron """
78  TrackTRTeProbabilityHT_Electron = 23
79  """ @brief number of TRT hits """
80  TrackTRThits_Electron = 24
81  """ @brief ratio of high to all TRT hits for isolated electrons """
82  TrackTRTratio_Electron = 25
83  """ @brief ratio of high to all TRT hits for non-isolated electrons """
84  TrackTRTratio90_Electron = 26
85 
86  """ @brief distance of closet approach for tight selection """
87  TrackA0Tight_Electron = 27
88  """ @brief eta difference between cluster and extrapolated track in the 1st sampling for tight selection """
89  TrackMatchEtaTight_Electron = 28
90 
91  """ @brief isolation """
92  Isolation_Electron = 29
93  """ @brief calorimetric isolation """
94  ClusterIsolation_Electron = 30
95  """ @brief tracker isolation """
96  TrackIsolation_Electron = 31
97 
98 
99 #
100 # cut definition for electrons
101 #
103  """ @brief cuts of hadronic leakage"""
104  HADLEAKETA_ELECTRON = \
105  0x1 << BitDefElectron.ClusterEtaRange_Electron | \
106  0x1 << BitDefElectron.ClusterHadronicLeakage_Electron
107  """ @brief old cuts in strips (without ClusterStripsDEmaxs1)"""
108  CALOSTRIPSOLD_ELECTRON = \
109  0x1 << BitDefElectron.ClusterStripsEratio_Electron | \
110  0x1 << BitDefElectron.ClusterStripsDeltaEmax2_Electron | \
111  0x1 << BitDefElectron.ClusterStripsDeltaE_Electron | \
112  0x1 << BitDefElectron.ClusterStripsWtot_Electron | \
113  0x1 << BitDefElectron.ClusterStripsFracm_Electron | \
114  0x1 << BitDefElectron.ClusterStripsWeta1c_Electron
115  """ @brief cuts in strips (with ClusterStripsDEmaxs1)"""
116  CALOSTRIPS_ELECTRON = \
117  0x1 << BitDefElectron.ClusterStripsEratio_Electron | \
118  0x1 << BitDefElectron.ClusterStripsDeltaEmax2_Electron | \
119  0x1 << BitDefElectron.ClusterStripsDeltaE_Electron | \
120  0x1 << BitDefElectron.ClusterStripsWtot_Electron | \
121  0x1 << BitDefElectron.ClusterStripsFracm_Electron | \
122  0x1 << BitDefElectron.ClusterStripsWeta1c_Electron | \
123  0x1 << BitDefElectron.ClusterStripsDEmaxs1_Electron
124  """ @brief cuts in strips for loose electrons sampling"""
125  CALOSTRIPS_LOOSE_ELECTRON = \
126  0x1 << BitDefElectron.ClusterStripsWtot_Electron | \
127  0x1 << BitDefElectron.ClusterStripsDEmaxs1_Electron
128 
129  """ @brief cuts in middle sampling"""
130  CALOMIDDLE_ELECTRON = \
131  0x1 << BitDefElectron.ClusterMiddleEnergy_Electron | \
132  0x1 << BitDefElectron.ClusterMiddleEratio37_Electron | \
133  0x1 << BitDefElectron.ClusterMiddleWidth_Electron
134  """ @brief calorimeter isolation"""
135  CALORIMETRICISOLATION_ELECTRON = \
136  0x1 << BitDefElectron.ClusterIsolation_Electron
137 
138  """ @brief "old" all cuts in calorimeter (except isolation) without ClusterStripsDEmaxs1 """
139  CALONOISOOLD_ELECTRON = HADLEAKETA_ELECTRON | CALOSTRIPSOLD_ELECTRON | CALOMIDDLE_ELECTRON
140  """ @brief "old" all cuts in calorimeter (including isolation) without ClusterStripsDEmaxs1 """
141  CALOOLD_ELECTRON = CALONOISOOLD_ELECTRON | CALORIMETRICISOLATION_ELECTRON
142  """ @brief all cuts in calorimeter (except isolation)"""
143  CALO_ELECTRON = HADLEAKETA_ELECTRON | CALOSTRIPS_ELECTRON | CALOMIDDLE_ELECTRON
144 
145  """ @brief Track quality cuts except b-layer for electrons"""
146  TRACKINGNOBLAYER_ELECTRON = \
147  0x1 << BitDefElectron.TrackPixel_Electron | \
148  0x1 << BitDefElectron.TrackSi_Electron | \
149  0x1 << BitDefElectron.TrackA0_Electron
150  """ @brief Track quality cuts except b-layer and A0 for electrons"""
151  TRACKINGLOOSE_ELECTRON = \
152  0x1 << BitDefElectron.TrackPixel_Electron | \
153  0x1 << BitDefElectron.TrackSi_Electron
154  """ @brief Track quality cuts for electrons"""
155  TRACKING_ELECTRON = \
156  TRACKINGNOBLAYER_ELECTRON | \
157  0x1 << BitDefElectron.TrackBlayer_Electron
158  """ @brief Track cluster matching in eta for electrons"""
159  TRACKMATCHDETA_ELECTRON = \
160  0x1 << BitDefElectron.TrackMatchEta_Electron
161  """ @brief Track cluster matching in eta, phi for electrons"""
162  TRACKMATCHNOEOVERP_ELECTRON = \
163  0x1 << BitDefElectron.TrackMatchEta_Electron | \
164  0x1 << BitDefElectron.TrackMatchPhi_Electron
165  """ @brief Track cluster matching in eta, phi, E/p for electrons"""
166  TRACKMATCH_ELECTRON = \
167  0x1 << BitDefElectron.TrackMatchEta_Electron | \
168  0x1 << BitDefElectron.TrackMatchPhi_Electron | \
169  0x1 << BitDefElectron.TrackMatchEoverP_Electron
170  """ @brief Tight Track cluster matching """
171  TRACKMATCHTIGHT_ELECTRON = \
172  0x1 << BitDefElectron.TrackMatchEtaTight_Electron | \
173  0x1 << BitDefElectron.TrackA0Tight_Electron
174  """ @brief Tight conversion matching """
175  CONVMATCH_ELECTRON = \
176  0x1 << BitDefElectron.ConversionMatch_Electron
177 
178  """ @brief TRT hits and TR ratio for electrons"""
179  TRT_ELECTRON = \
180  0x1 << BitDefElectron.TrackTRThits_Electron | \
181  0x1 << BitDefElectron.TrackTRTratio_Electron | \
182  0x1 << BitDefElectron.TrackTRTeProbabilityHT_Electron
183  """ @brief TRT hits and TR ratio (@90% eff) for electrons"""
184  TRT90_ELECTRON = \
185  0x1 << BitDefElectron.TrackTRThits_Electron | \
186  0x1 << BitDefElectron.TrackTRTratio90_Electron
187 
188  """ @brief isolation by tracker """
189  TRACKINGISOLATION_ELECTRON = \
190  0x1 << BitDefElectron.TrackIsolation_Electron
191  """ @brief isolation for electrons is combination of calo and tracker """
192  ISOLATION_ELECTRON = \
193  0x1 << BitDefElectron.Isolation_Electron
194  """ @brief isolation for electrons is combination of calo and tracker """
195  CALOTRACKISOLATION_ELECTRON = \
196  CALORIMETRICISOLATION_ELECTRON | TRACKINGISOLATION_ELECTRON
197 
198  """ @brief all cuts except TRT for electrons"""
199  ALLNOTRT_ELECTRON = \
200  TRACKING_ELECTRON | TRACKMATCH_ELECTRON | CALO_ELECTRON
201  """ @brief all cuts except TRT for electrons(old way)"""
202  ALLNOTRTOLD_ELECTRON = \
203  TRACKING_ELECTRON | TRACKMATCH_ELECTRON | CALOOLD_ELECTRON
204  """ @brief all cuts for electrons"""
205  ALL_ELECTRON = \
206  ALLNOTRT_ELECTRON | TRT_ELECTRON
207  """ @brief all cuts fo electrons (old way)"""
208  ALLOLD_ELECTRON = \
209  ALLNOTRTOLD_ELECTRON | TRT_ELECTRON
210 
211 
213  """ @brief Tight Track cluster matching redefined for EF """
214  TRACKMATCHTIGHT_ELECTRON_EF = 0x1 << BitDefElectron.TrackA0Tight_Electron
215  """ @brief Track-cluster matching with tight deta for electrons"""
216  TRACKMATCHDETATIGHT_ELECTRON = 0x1 << BitDefElectron.TrackMatchEtaTight_Electron
217  """ @brief Track-cluster matching in eta, E/p for electrons redefined for EF"""
218  TRACKMATCH_ELECTRON_EF = 0x1 << BitDefElectron.TrackMatchEta_Electron | \
219  0x1 << BitDefElectron.TrackMatchEoverP_Electron
220  """ @brief Track-cluster matching in eta for electrons redefined for EF"""
221  TRACKMATCH_ELECTRON_NoEoP_EF = 0x1 << BitDefElectron.TrackMatchEta_Electron
222  """ @brief Track quality cuts except b-layer and A0 for electrons"""
223  TRACKINGNOBLAYERNOA0_ELECTRON = \
224  0x1 << BitDefElectron.TrackPixel_Electron | \
225  0x1 << BitDefElectron.TrackSi_Electron
226 
228 
229 
231  ElectronLoose1 = CutDefElectron.CALOMIDDLE_ELECTRON | \
232  CutDefElectron.HADLEAKETA_ELECTRON | \
233  CutDefElectron.CALOSTRIPS_LOOSE_ELECTRON | \
234  CutDefElectron.TRACKINGLOOSE_ELECTRON | \
235  CutDefElectron.TRACKMATCHDETA_ELECTRON
236  #AT: 7Sept2011, remove TRT Hits from medium1, following offline medium++ prescription
237  ElectronMedium1 = CutDefElectron.CALO_ELECTRON | CutDefElectron.TRACKING_ELECTRON | \
238  CutDefElectron.TRACKMATCHDETA_ELECTRON | \
239  0x1 << BitDefElectron.TrackTRTratio_Electron | \
240  0x1 << BitDefElectron.TrackTRTeProbabilityHT_Electron | \
241  0x1 << BitDefElectron.ClusterBackEnergyFraction_Electron
242  """ @brief Tight Electron1 definition for e15_tight in EF """
243  ElectronTight1 = CutDefElectron.CALO_ELECTRON | CutDefElectron.TRACKING_ELECTRON | \
244  CutDefElectron.TRACKMATCHDETA_ELECTRON | CutDefElectron.TRACKMATCH_ELECTRON_EF | \
245  CutDefElectron.TRACKMATCHTIGHT_ELECTRON | CutDefElectron.TRT_ELECTRON
246 
247 
249  """ @brief Loose1 with RPhi Electron """
250  ElectronLooseHLT = CutDefElectron.CALOMIDDLE_ELECTRON | \
251  CutDefElectron.HADLEAKETA_ELECTRON | \
252  CutDefElectron.CALOSTRIPS_LOOSE_ELECTRON | \
253  CutDefElectron.TRACKINGLOOSE_ELECTRON | \
254  CutDefElectron.TRACKMATCHDETA_ELECTRON
255  """ @brief Medium1 with Rphi Electron definition for trigger """
256  #AT: 7Sept2011, remove TRT Hits from medium1, following offline medium++ prescription
257  ElectronMediumHLT = CutDefElectron.CALO_ELECTRON | CutDefElectron.TRACKING_ELECTRON | \
258  CutDefElectron.TRACKMATCHDETA_ELECTRON | \
259  CutDefElectron.TRACKMATCHDETATIGHT_ELECTRON | \
260  0x1 << BitDefElectron.TrackTRTratio_Electron | \
261  0x1 << BitDefElectron.TrackTRTeProbabilityHT_Electron | \
262  0x1 << BitDefElectron.ClusterBackEnergyFraction_Electron | \
263  0x1 << BitDefElectron.ClusterMiddleEratio33_Electron
264 
265  """ @brief Tight with Rphi&f3 Electron1 definition """
266  ElectronTightHLT = CutDefElectron.CALO_ELECTRON | CutDefElectron.TRACKING_ELECTRON | \
267  CutDefElectron.TRACKMATCHDETA_ELECTRON | \
268  CutDefElectron.TRACKMATCHTIGHT_ELECTRON | \
269  CutDefElectron.TRT_ELECTRON | \
270  0x1 << BitDefElectron.ClusterBackEnergyFraction_Electron | \
271  0x1 << BitDefElectron.ClusterMiddleEratio33_Electron
272 
273  Electron_trk = CutDefElectron.TRACKINGLOOSE_ELECTRON
274 
275 
276 r""" \enum Bitdefinitons for the egamma class for photon identification
277  see egammaParameters for info on the variable definitions """
279  """ @brief cluster eta range """
280  ClusterEtaRange_Photon = 0
281  """ @brief cluster eta range """
282  ClusterEtaRange_PhotonLoose = 1
283 
284  # selection for Loose photons
285  """ @brief cluster leakage into the hadronic calorimeter """
286  ClusterHadronicLeakage_PhotonLoose = 2
287  """ @brief energy in 2nd sampling (e277) """
288  ClusterMiddleEnergy_PhotonLoose = 3
289  """ @brief energy ratio in 2nd sampling """
290  ClusterMiddleEratio37_PhotonLoose = 4
291  """ @brief energy ratio in 2nd sampling """
292  ClusterMiddleEratio33_PhotonLoose = 5
293  """ @brief width in the second sampling """
294  ClusterMiddleWidth_PhotonLoose = 6
295 
296  """ @brief energy fraction in the third layer """
297  ClusterBackEnergyFraction_Photon = 7
298 
299  # selection for tight photons
300  """ @brief cluster leakage into the hadronic calorimeter """
301  ClusterHadronicLeakage_Photon = 10
302  """ @brief energy in 2nd sampling (e277) """
303  ClusterMiddleEnergy_Photon = 11
304  """ @brief energy ratio in 2nd sampling """
305  ClusterMiddleEratio37_Photon = 12
306  """ @brief energy ratio in 2nd sampling for photons """
307  ClusterMiddleEratio33_Photon = 13
308  """ @brief width in the second sampling """
309  ClusterMiddleWidth_Photon = 14
310 
311  """ @brief fraction of energy found in 1st sampling """
312  ClusterStripsEratio_Photon = 15
313  """ @brief energy of 2nd maximum in 1st sampling ~e2tsts1/(1000+const_lumi*et) """
314  ClusterStripsDeltaEmax2_Photon = 16
315  """ @brief difference between 2nd maximum and 1st minimum in strips (e2tsts1-emins1) """
316  ClusterStripsDeltaE_Photon = 17
317  """ @brief shower width in 1st sampling """
318  ClusterStripsWtot_Photon = 18
319  """ @brief shower shape in shower core 1st sampling """
320  ClusterStripsFracm_Photon = 19
321  """ @brief shower width weighted by distance from the maximum one """
322  ClusterStripsWeta1c_Photon = 20
323  """ @brief difference between max and 2nd max in strips """
324  ClusterStripsDEmaxs1_Photon = 21
325 
326  """ @brief energy-momentum match for photon selection"""
327  TrackMatchEoverP_Photon = 22
328 
329  """ @brief ambiguity resolution for photon (vs electron) """
330  AmbiguityResolution_Photon = 23
331 
332  """ @brief isolation """
333  Isolation_Photon = 29
334  """ @brief calorimetric isolation for photon selection """
335  ClusterIsolation_Photon = 30
336  """ @brief tracker isolation for photon selection """
337  TrackIsolation_Photon = 31
338 
339 
340 
341 #
342 # Photon cut definitions
343 #
345  """ @brief cuts of hadronic leakage (for Loose selection)"""
346  HADLEAKETA_PHOTONLOOSE = \
347  0x1 << BitDefPhoton.ClusterEtaRange_PhotonLoose | \
348  0x1 << BitDefPhoton.ClusterHadronicLeakage_PhotonLoose
349  """ @brief cuts of hadronic leakage"""
350  HADLEAKETA_PHOTON = \
351  0x1 << BitDefPhoton.ClusterEtaRange_Photon | \
352  0x1 << BitDefPhoton.ClusterHadronicLeakage_Photon
353  """ @brief cuts in middle sampling (for Loose selection)"""
354  CALOMIDDLE_PHOTONLOOSE= \
355  0x1 << BitDefPhoton.ClusterMiddleEnergy_PhotonLoose | \
356  0x1 << BitDefPhoton.ClusterMiddleEratio37_PhotonLoose | \
357  0x1 << BitDefPhoton.ClusterMiddleEratio33_PhotonLoose | \
358  0x1 << BitDefPhoton.ClusterMiddleWidth_PhotonLoose
359  """ @brief cuts in middle sampling"""
360  CALOMIDDLE_PHOTON = \
361  0x1 << BitDefPhoton.ClusterMiddleEnergy_Photon | \
362  0x1 << BitDefPhoton.ClusterMiddleEratio37_Photon | \
363  0x1 << BitDefPhoton.ClusterMiddleEratio33_Photon | \
364  0x1 << BitDefPhoton.ClusterMiddleWidth_Photon
365  """ @brief old cuts in strips (without ClusterStripsDEmaxs1)"""
366  CALOSTRIPSOLD_PHOTON = \
367  0x1 << BitDefPhoton.ClusterStripsEratio_Photon | \
368  0x1 << BitDefPhoton.ClusterStripsDeltaEmax2_Photon | \
369  0x1 << BitDefPhoton.ClusterStripsDeltaE_Photon | \
370  0x1 << BitDefPhoton.ClusterStripsWtot_Photon | \
371  0x1 << BitDefPhoton.ClusterStripsFracm_Photon | \
372  0x1 << BitDefPhoton.ClusterStripsWeta1c_Photon
373  """ @brief cuts in strips (with ClusterStripsDEmaxs1)"""
374  CALOSTRIPS_PHOTON = \
375  0x1 << BitDefPhoton.ClusterStripsEratio_Photon | \
376  0x1 << BitDefPhoton.ClusterStripsDeltaEmax2_Photon | \
377  0x1 << BitDefPhoton.ClusterStripsDeltaE_Photon | \
378  0x1 << BitDefPhoton.ClusterStripsWtot_Photon | \
379  0x1 << BitDefPhoton.ClusterStripsFracm_Photon | \
380  0x1 << BitDefPhoton.ClusterStripsWeta1c_Photon | \
381  0x1 << BitDefPhoton.ClusterStripsDEmaxs1_Photon
382 
383  """ @brief cuts in strips (with ClusterStripsDEmaxs1)"""
384  CALOSTRIPS_PHOTONTIGHT = \
385  0x1 << BitDefPhoton.ClusterStripsEratio_Photon | \
386  0x1 << BitDefPhoton.ClusterStripsDeltaEmax2_Photon | \
387  0x1 << BitDefPhoton.ClusterStripsDeltaE_Photon | \
388  0x1 << BitDefPhoton.ClusterStripsWtot_Photon | \
389  0x1 << BitDefPhoton.ClusterStripsFracm_Photon | \
390  0x1 << BitDefPhoton.ClusterStripsWeta1c_Photon | \
391  0x1 << BitDefPhoton.ClusterStripsDEmaxs1_Photon
392 
393  """ @brief cuts in strips (with ClusterStripsDEmaxs1)"""
394  CALOSTRIPS_PHOTONMEDIUM = \
395  0x1 << BitDefPhoton.ClusterStripsDEmaxs1_Photon
396 
397  """ @brief calorimeter isolation"""
398  CALORIMETRICISOLATION_PHOTON = 0x1 << BitDefPhoton.ClusterIsolation_Photon
399  """ @brief "old" all cuts in calorimeter (except isolation) without ClusterStripsDEmaxs1 """
400  CALONOISOOLD_PHOTON = HADLEAKETA_PHOTON | CALOSTRIPSOLD_PHOTON | CALOMIDDLE_PHOTON
401  """ @brief all cuts in calorimeter (except isolation)"""
402  CALO_PHOTON = HADLEAKETA_PHOTON | CALOSTRIPS_PHOTON | CALOMIDDLE_PHOTON
403 
404  """ @brief isolation by tracker """
405  TRACKINGISOLATION_PHOTON = 0x1 << BitDefPhoton.TrackIsolation_Photon
406  """ @brief isolation for photons is combination of calo and tracker """
407  ISOLATION_PHOTON = 0x1 << BitDefPhoton.Isolation_Photon
408  """ @brief isolation for photons is combination of calo and tracker """
409  CALOTRACKISOLATION_PHOTON = CALORIMETRICISOLATION_PHOTON | TRACKINGISOLATION_PHOTON
410 
411  """ @brief Track cluster matching E/p for photons"""
412  TRACKMATCH_PHOTON = 0x1 << BitDefPhoton.TrackMatchEoverP_Photon
413 
414  """ @brief Ambigiuty resolve for photons """
415  AMBIGUITYRESOLVE_PHOTON = 0x1 << BitDefPhoton.AmbiguityResolution_Photon
416 
417 
419  """ @brief cuts of hadronic leakage (for Loose selection)"""
420  HADLEAKETA_PHOTON_EF = \
421  0x1 << BitDefPhoton.ClusterEtaRange_Photon | \
422  0x1 << BitDefPhoton.ClusterHadronicLeakage_PhotonLoose
423 
424  """ @brief cuts of Eratio (for Medium selection)"""
425  CALO_PHOTON_REAT_WETA2_ERATIO = \
426  0x1 << BitDefPhoton.ClusterEtaRange_Photon | \
427  0x1 << BitDefPhoton.ClusterMiddleEnergy_PhotonLoose | \
428  0x1 << BitDefPhoton.ClusterMiddleEratio37_PhotonLoose | \
429  0x1 << BitDefPhoton.ClusterMiddleWidth_PhotonLoose | \
430  0x1 << BitDefPhoton.ClusterStripsEratio_Photon
431 
432 
433 # Photon Selection Definitions
434 #
436  """ @brief Loose photon selection with Ambiguity resolver"""
437  PhotonLooseAR = CutDefPhoton.CALOMIDDLE_PHOTONLOOSE | CutDefPhoton.HADLEAKETA_PHOTONLOOSE | \
438  CutDefPhoton.AMBIGUITYRESOLVE_PHOTON
439  """ @brief Tight photon selection with Ambiguity resolver"""
440  PhotonTightAR = CutDefPhoton.CALO_PHOTON | CutDefPhoton.TRACKMATCH_PHOTON | \
441  CutDefPhoton.AMBIGUITYRESOLVE_PHOTON
442  """ @brief Tight photon selection with isolation and Ambiguity resolver"""
443  PhotonTightARIso = PhotonTightAR | CutDefPhoton.ISOLATION_PHOTON
444  """ @brief Loose photon selection """
445  PhotonLoose = CutDefPhoton.CALOMIDDLE_PHOTON | CutDefPhoton.HADLEAKETA_PHOTON
446  """ @brief Medium photon selection """
447  PhotonMedium = CutDefPhoton.HADLEAKETA_PHOTON | CutDefPhoton.CALOMIDDLE_PHOTON | CutDefPhoton.CALOSTRIPS_PHOTONMEDIUM
448  """ @brief Tight photon selection """
449  PhotonTight = CutDefPhoton.HADLEAKETA_PHOTON | CutDefPhoton.CALOMIDDLE_PHOTON | CutDefPhoton.CALOSTRIPS_PHOTONTIGHT
450  """ @brief Tight photon selection with isolation"""
451  PhotonTightIso = PhotonTight | CutDefPhoton.ISOLATION_PHOTON
452 
453 
455  """ @brief Loose photon selection for online EF"""
456  PhotonLooseEF = CutDefPhoton.CALOMIDDLE_PHOTONLOOSE | CutDefPhoton.HADLEAKETA_PHOTON_EF
457 
458  #Added for 2g20_medium
459  """ @brief Medium photon selection for online EF"""
460  PhotonMediumEF = CutDefPhoton.HADLEAKETA_PHOTON_EF | CutDefPhoton.CALO_PHOTON_REAT_WETA2_ERATIO
461 
python.TrigEGammaPIDdefs.CutDefElectron
Definition: TrigEGammaPIDdefs.py:102
python.TrigEGammaPIDdefs.BitDefElectron
Definition: TrigEGammaPIDdefs.py:29
python.TrigEGammaPIDdefs.BitDefPhoton
Definition: TrigEGammaPIDdefs.py:278
python.TrigEGammaPIDdefs.SelectionDefElectron
Definition: TrigEGammaPIDdefs.py:227
python.TrigEGammaPIDdefs.TrigEgammaIDQuality
Definition: TrigEGammaPIDdefs.py:3
python.TrigEGammaPIDdefs.CutDefPhoton
Definition: TrigEGammaPIDdefs.py:344
python.TrigEGammaPIDdefs.SelectionDefPhoton
Definition: TrigEGammaPIDdefs.py:435