Skip to content
Snippets Groups Projects

ActsEventCnv: make it possible to run without TrackingGeometryTool for Muon tests

Merged Edward Moyse requested to merge emoyse/athena:main-update-actstrkcnv into main
All threads resolved!
4 files
+ 39
39
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -8,9 +8,12 @@ def ActsToTrkConverterToolCfg(flags,
**kwargs) -> ComponentAccumulator:
acc = ComponentAccumulator()
if 'TrackingGeometryTool' not in kwargs:
# Currently this does not work if we are in a muon-only mode
if flags.Detector.GeometryITk and 'TrackingGeometryTool' not in kwargs:
from ActsConfig.ActsGeometryConfig import ActsTrackingGeometryToolCfg
kwargs.setdefault("TrackingGeometryTool", acc.popToolsAndMerge(ActsTrackingGeometryToolCfg(flags)))
else:
kwargs.setdefault("TrackingGeometryTool", "")
acc.setPrivateTools(CompFactory.ActsTrk.ActsToTrkConverterTool(name, **kwargs))
return acc
Loading