3 __doc__ =
"""Configure the AsgPhotonIsEMSelector with the quality cuts
4 and allow for (re-)setting of all provided cuts."""
6 from ElectronPhotonSelectorTools.PhotonIsEMSelectorMapping
import (
7 PhotonIsEMMap, photonPIDmenu)
8 from TriggerMenuMT.HLT.Photon.TriggerPhotonIsEMSelectorMapping
import (
9 TriggerPhotonIsEMMap, triggerPhotonPIDmenu)
10 from AthenaCommon.Logging
import logging
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
18 menu=photonPIDmenu.menuCurrentCuts,
21 mlog = logging.getLogger(
'AsgPhotonIsEMSelector')
22 mlog.debug(
'Start configuration')
24 AsgPhotonIsEMSelector = CompFactory.AsgPhotonIsEMSelector
28 menu = triggerPhotonPIDmenu.menuCurrentCuts
32 mlog.debug(
'ntuple: %s', ntuple)
34 mlog.error(
"Photon quality not found."
35 "Please use an egammaIDQuality"
36 "(ElectronPhotonSelectorTools/egammaPIDdefs.h)."
37 "This function only supports standard photon IDs,"
38 "and not electron IDs or forward IDs")
46 tool.isEMMask = ntuple[0]
48 mlog.debug(
'isEMMask: %x', tool.isEMMask)
50 acc.setPrivateTools(tool)