6 result = ComponentAccumulator()
7
8 if "LastCaloExtentionTool" not in kwargs:
9 from TrackToCalo.TrackToCaloConfig import ParticleCaloExtensionToolCfg
10 kwargs.setdefault("LastCaloExtentionTool", result.popToolsAndMerge(
11 ParticleCaloExtensionToolCfg(flags)))
12
13
14 if flags.Detector.GeometryITk:
15 kwargs.setdefault("ExtraInputs", [
16 ("InDetDD::SiDetectorElementCollection", "ConditionStore+ITkPixelDetectorElementCollection"),
17 ("InDetDD::SiDetectorElementCollection", "ConditionStore+ITkStripDetectorElementCollection"),
18 ])
19 else:
20 kwargs.setdefault("ExtraInputs", [
21 ("InDetDD::SiDetectorElementCollection", "ConditionStore+PixelDetectorElementCollection"),
22 ("InDetDD::SiDetectorElementCollection", "ConditionStore+SCT_DetectorElementCollection"),
23 ])
24
25 result.addEventAlgo(CompFactory.Trk.CaloExtensionBuilderAlg(name, **kwargs))
26 return result
27
28