9 if "TrackRefitTool" not in kwargs:
10 from egammaTrackTools.egammaTrackToolsConfig
import (
11 egammaTrkRefitterToolCfg)
12 kwargs[
"TrackRefitTool"] = acc.popToolsAndMerge(
16 if "TrackParticleCreatorTool" not in kwargs:
17 from TrkConfig.TrkParticleCreatorConfig
import (
18 GSFBuildInDetParticleCreatorToolCfg)
19 kwargs[
"TrackParticleCreatorTool"] = acc.popToolsAndMerge(
22 if "TrackSlimmingTool" not in kwargs:
23 from TrkConfig.TrkTrackSlimmingToolConfig
import GSFTrackSlimmingToolCfg
28 flags.Detector.EnablePixel
or flags.Detector.EnableITkPixel)
31 flags.Detector.EnableSCT
or flags.Detector.EnableITkStrip)
32 kwargs.setdefault(
"useTRT", flags.Detector.EnableTRT)
33 kwargs.setdefault(
"DoTruth", flags.Input.isMC)
34 kwargs.setdefault(
"slimTrkTracks", flags.Egamma.slimGSFTrkTracks)
37 if flags.Detector.GeometryITk:
38 kwargs.setdefault(
"ExtraInputs", [
39 (
"InDetDD::SiDetectorElementCollection",
40 "ConditionStore+ITkPixelDetectorElementCollection"),
41 (
"InDetDD::SiDetectorElementCollection",
42 "ConditionStore+ITkStripDetectorElementCollection"),
45 kwargs.setdefault(
"ExtraInputs", [
46 (
"InDetDD::SiDetectorElementCollection",
47 "ConditionStore+PixelDetectorElementCollection"),
48 (
"InDetDD::SiDetectorElementCollection",
49 "ConditionStore+SCT_DetectorElementCollection"),
52 alg = CompFactory.EMBremCollectionBuilder(name, **kwargs)