3 __doc__ =
"Configure e/gamma object quality"
5 from AthenaCommon.Logging
import logging
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 mlog = logging.getLogger(name)
13 mlog.debug(
'Start configuration')
15 from LArCalibUtils.LArHVScaleConfig
import LArHVScaleCfg
18 kwargs.setdefault(
"CellsName", flags.Egamma.Keys.Input.CaloCells)
19 kwargs.setdefault(
"affectedTool", CompFactory.CaloAffectedTool())
21 tool = CompFactory.egammaOQFlagsBuilder(name, **kwargs)
22 acc.setPrivateTools(tool)
26 if __name__ ==
"__main__":
28 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
29 from AthenaConfiguration.ComponentAccumulator
import printProperties
30 from AthenaConfiguration.TestDefaults
import defaultTestFiles
32 flags.Input.Files = defaultTestFiles.RDO_RUN2
38 mlog = logging.getLogger(
"egammaOQFlagsBuilderTest")
39 mlog.info(
"Configuring egammaOQFlagsBuilder: ")
45 f =
open(
"egammaoqflagsbuilder.pkl",
"wb")