10 import TriggerMenuMT.HLT.Photon.TriggerPhotonIsEMMenuDefs
as TriggerPhotonIsEMMenuDefs
11 from ElectronPhotonSelectorTools.EgammaPIDdefs
import egammaPID
25 TriggerPhotonIsEMMapCurrent = {
26 egammaPID.PhotonIDLoose: (
27 egammaPID.PhotonLoose,
28 TriggerPhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
29 egammaPID.PhotonIDMedium: (
30 egammaPID.PhotonMedium,
31 TriggerPhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
32 egammaPID.PhotonIDTight: (
33 egammaPID.PhotonTight,
34 TriggerPhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfig),
39 if menu == triggerPhotonPIDmenu.menuCurrentCuts
and quality
in TriggerPhotonIsEMMapCurrent.keys():
40 return TriggerPhotonIsEMMapCurrent[quality]
42 raise ValueError(
"Requested menu is undefined: %d" % menu)