3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaCommon.Logging
import logging
11 if "ExtrapolationTool" not in kwargs:
12 from egammaTrackTools.egammaTrackToolsConfig
import (
13 EMExtrapolationToolsCfg)
14 kwargs[
"ExtrapolationTool"] = acc.popToolsAndMerge(
16 if "VertexFinderTool" not in kwargs:
17 from InDetConfig.InDetConversionFinderToolsConfig
import (
18 InDetConversionFinderToolsCfg)
19 kwargs[
"VertexFinderTool"] = acc.popToolsAndMerge(
22 alg = CompFactory.EMVertexBuilder(name, **kwargs)
27 if __name__ ==
"__main__":
28 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
29 from AthenaConfiguration.TestDefaults
import defaultTestFiles
30 from AthenaConfiguration.ComponentAccumulator
import printProperties
31 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
33 flags.Input.Files = defaultTestFiles.RDO_RUN2
38 mlog = logging.getLogger(
"EMVertexBuilderConfigTest")
39 mlog.info(
"Configuring EMVertexBuilder: ")
41 acc.getEventAlgo(
"EMVertexBuilder"),
44 with open(
"vertexbuilder.pkl",
"wb")
as f: