ATLAS Offline Software
ForwardElectronIsEMSelectorMapping.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 # =============================================================================
4 # Name: ForwardElectronIsEMSelectorMapping.py
5 #
6 # Author: Tulay Cuhadar Donszelmann, Jovan Mitrevski
7 # Created: Dec 2011
8 
11 
12 from ElectronPhotonSelectorTools.EgammaPIDdefs import egammaPID
13 #
14 import ElectronPhotonSelectorTools.ForwardElectronIsEMMenuDefs as ForwardElectronIsEMSelectorCutDefs
15 
16 
18  menuMC15 = 0
19 
20 
21 # format - key: (mask, function)
22 
23 ForwardElectronIsEMMapMC15 = {
24  egammaPID.ForwardElectronIDLoose: (
25  egammaPID.ID_ForwardElectron,
26  ForwardElectronIsEMSelectorCutDefs.ForwardElectronIsEMLooseSelectorConfigMC15),
27  egammaPID.ForwardElectronIDMedium: (
28  egammaPID.ID_ForwardElectron,
29  ForwardElectronIsEMSelectorCutDefs.ForwardElectronIsEMMediumSelectorConfigMC15),
30  egammaPID.ForwardElectronIDTight: (
31  egammaPID.ID_ForwardElectron,
32  ForwardElectronIsEMSelectorCutDefs.ForwardElectronIsEMTightSelectorConfigMC15),
33  egammaPID.NoIDCut: (
34  0,
35  ForwardElectronIsEMSelectorCutDefs.ForwardElectronIsEMLooseSelectorConfigMC15)
36 }
37 
38 
39 def ForwardElectronIsEMMap(quality, menu):
40  if menu == forwardelectronPIDmenu.menuMC15:
41  return ForwardElectronIsEMMapMC15[quality]
42  else:
43  raise ValueError("Requested menu is undefined: %d" % menu)
python.ForwardElectronIsEMSelectorMapping.forwardelectronPIDmenu
Definition: ForwardElectronIsEMSelectorMapping.py:17
python.ForwardElectronIsEMSelectorMapping.ForwardElectronIsEMMap
def ForwardElectronIsEMMap(quality, menu)
Definition: ForwardElectronIsEMSelectorMapping.py:39