14 from ElectronPhotonSelectorTools.AsgPhotonIsEMSelectorsConfig
import (AsgPhotonIsEMSelectorCfg)
15 from TriggerMenuMT.HLT.Photon.TriggerPhotonIsEMSelectorMapping
import (triggerPhotonPIDmenu)
17 if "PhotonIsEMSelectorTools" not in kwargs:
18 LoosePhotonSelector = acc.popToolsAndMerge(
AsgPhotonIsEMSelectorCfg(flags,
"LoosePhotonSelector", egammaPID.PhotonIDLoose, triggerPhotonPIDmenu.menuCurrentCuts, trigger =
True))
19 MediumPhotonSelector = acc.popToolsAndMerge(
AsgPhotonIsEMSelectorCfg(flags,
"MediumPhotonSelector", egammaPID.PhotonIDMedium, triggerPhotonPIDmenu.menuCurrentCuts, trigger =
True))
20 TightPhotonSelector = acc.popToolsAndMerge(
AsgPhotonIsEMSelectorCfg(flags,
"TightPhotonSelector", egammaPID.PhotonIDTight, triggerPhotonPIDmenu.menuCurrentCuts, trigger =
True))
21 kwargs[
"PhotonIsEMSelectorTools"] = [TightPhotonSelector, MediumPhotonSelector, LoosePhotonSelector]
22 if "IsEMNames" not in kwargs:
23 kwargs[
"IsEMNames"]=[
'tight',
'medium',
'loose']
25 if "Photons" not in kwargs:
26 kwargs[
"Photons"] = sequenceOut
28 hypoAlg = CompFactory.TrigEgammaPrecisionPhotonHypoAlg(name, **kwargs)
29 acc.addEventAlgo( hypoAlg )