12 from ElectronPhotonSelectorTools.EgammaPIDdefs
import egammaPID
14 import ElectronPhotonSelectorTools.ForwardElectronIsEMMenuDefs
as ForwardElectronIsEMSelectorCutDefs
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),
35 ForwardElectronIsEMSelectorCutDefs.ForwardElectronIsEMLooseSelectorConfigMC15)
40 if menu == forwardelectronPIDmenu.menuMC15:
41 return ForwardElectronIsEMMapMC15[quality]
43 raise ValueError(
"Requested menu is undefined: %d" % menu)