4 __doc__ =
"""Configure the AsgForwardElectronIsEMSelector with the quality cuts
5 and allow for (re-)setting of all provided cuts."""
7 from AthenaCommon.Logging
import logging
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from ElectronPhotonSelectorTools.ForwardElectronIsEMSelectorMapping
import (
11 ForwardElectronIsEMMap, forwardelectronPIDmenu)
17 menu=forwardelectronPIDmenu.menuMC15):
19 mlog = logging.getLogger(
'AsgForwardElectronIsEMSelector')
20 mlog.debug(
'Start configuration')
22 AsgForwardElectronIsEMSelector = CompFactory.AsgForwardElectronIsEMSelector
26 mlog.debug(
'ntuple: %s', ntuple)
28 mlog.error(
"Fwd Electron quality not found."
29 "Please use an egammaIDQuality"
30 "(ElectronPhotonSelectorTools/egammaPIDdefs.h)."
31 "This function only supports forward IDs,"
32 "and not photon or standard electron IDs")
40 tool.isEMMask = ntuple[0]
42 mlog.debug(
'isEMMask: %x', tool.isEMMask)
44 acc.setPrivateTools(tool)