diff --git a/Reconstruction/egamma/egammaAlgs/python/EMBremCollectionBuilderConfig.py b/Reconstruction/egamma/egammaAlgs/python/EMBremCollectionBuilderConfig.py new file mode 100644 index 0000000000000000000000000000000000000000..47ed195389b150dc49d79f6cd67417be6c145493 --- /dev/null +++ b/Reconstruction/egamma/egammaAlgs/python/EMBremCollectionBuilderConfig.py @@ -0,0 +1,19 @@ +# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration + +from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator +from AthenaConfiguration.ComponentFactory import CompFactory + +def EMBremCollectionBuilderCfg(flags, + name="EMBremCollectionBuilder", + **kwargs): + acc = ComponentAccumulator() + if "TrackParticleCreatorTool" not in kwargs: + from InDetConfig.TrackRecoConfig import TrackParticleCreatorToolCfg + kwargs["TrackParticleCreatorTool"] = acc.popToolsAndMerge(TrackParticleCreatorToolCfg(flags, "GSFBuildInDetParticleCreatorTool")) + # TBC + # if "TrackRefitTool" not in kwargs: + # kwargs["TrackRefitTool"] = acc.popToolsAndMerge( ) + + alg = CompFactory.EMBremCollectionBuilder(name, **kwargs) + acc.addEventAlgo(alg) + return acc \ No newline at end of file