3 __doc__ =
"Configure Conversion building"
5 from AthenaCommon.Logging
import logging
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from egammaTrackTools.egammaTrackToolsConfig
import EMExtrapolationToolsCfg
13 mlog = logging.getLogger(name)
14 mlog.debug(
'Start configuration')
17 EMConversionBuilder = CompFactory.EMConversionBuilder
19 if "ExtrapolationTool" not in kwargs:
20 kwargs[
"ExtrapolationTool"] = acc.popToolsAndMerge(
24 kwargs.setdefault(
"ConversionContainerName",
25 flags.Egamma.Keys.Output.ConversionVertices)
29 acc.setPrivateTools(emconv)
33 if __name__ ==
"__main__":
35 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
36 from AthenaConfiguration.ComponentAccumulator
import printProperties
37 from AthenaConfiguration.TestDefaults
import defaultTestFiles
39 flags.Input.Files = defaultTestFiles.RDO_RUN2
45 mlog = logging.getLogger(
"EMConversionBuilderConfigTest")
46 mlog.info(
"Configuring EMConversionBuilder: ")
52 f =
open(
"emshowerbuilder.pkl",
"wb")