3 __doc__ =
"Configuration for EMClusterTool"
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaCommon.Logging
import logging
10 from egammaMVACalib.egammaMVACalibConfig
import egammaMVASvcCfg
15 mlog = logging.getLogger(name)
16 mlog.debug(
'Start configuration')
20 if "MVACalibSvc" not in kwargs:
22 kwargs[
"MVACalibSvc"] = acc.getPrimaryAndMerge(mvacal)
23 kwargs.setdefault(
"OutputClusterContainerName",
24 flags.Egamma.Keys.Output.CaloClusters)
26 tool = CompFactory.EMClusterTool(name, **kwargs)
28 acc.setPrivateTools(tool)
32 if __name__ ==
"__main__":
34 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
35 from AthenaConfiguration.ComponentAccumulator
import printProperties
36 from AthenaConfiguration.TestDefaults
import defaultTestFiles
38 flags.Input.Files = defaultTestFiles.RDO_RUN2
44 mlog = logging.getLogger(
"EMClusterToolConfigTest")
45 mlog.info(
"Configuring EMClusterTool: ")
51 f =
open(
"emclustertool.pkl",
"wb")