From f5dd81b9bcd980de5ed6f837fd8e145356c4df45 Mon Sep 17 00:00:00 2001 From: Ke Li <ke.li@cern.ch> Date: Fri, 23 Dec 2022 00:13:31 +0100 Subject: [PATCH] use the trackinggeometry tool which has enabled the alignment condition algorithm --- Tracking/Acts/FaserActsKalmanFilter/python/CKF2Config.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Tracking/Acts/FaserActsKalmanFilter/python/CKF2Config.py b/Tracking/Acts/FaserActsKalmanFilter/python/CKF2Config.py index 1035484b..0c890e1e 100644 --- a/Tracking/Acts/FaserActsKalmanFilter/python/CKF2Config.py +++ b/Tracking/Acts/FaserActsKalmanFilter/python/CKF2Config.py @@ -8,6 +8,7 @@ from AthenaConfiguration.ComponentFactory import CompFactory from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg from MagFieldServices.MagFieldServicesConfig import MagneticFieldSvcCfg from FaserActsGeometry.ActsGeometryConfig import ActsTrackingGeometrySvcCfg +from FaserActsGeometry.ActsGeometryConfig import ActsTrackingGeometryToolCfg def FaserActsAlignmentCondAlgCfg(flags, **kwargs): @@ -72,7 +73,11 @@ def CKF2Cfg(flags, **kwargs): actsExtrapolationTool = CompFactory.FaserActsExtrapolationTool("FaserActsExtrapolationTool") actsExtrapolationTool.MaxSteps = 1000 - actsExtrapolationTool.TrackingGeometryTool = CompFactory.FaserActsTrackingGeometryTool("TrackingGeometryTool") + + #use the tracking geometry tool which has enabled the alignment condition algo + result, actsTrackingGeometryTool = ActsTrackingGeometryToolCfg(flags) + actsExtrapolationTool.TrackingGeometryTool = actsTrackingGeometryTool + acc.merge(result) trajectory_performance_writer_tool = CompFactory.PerformanceWriterTool("PerformanceWriterTool") trajectory_performance_writer_tool.ExtrapolationTool = actsExtrapolationTool @@ -95,6 +100,7 @@ def CKF2Cfg(flags, **kwargs): ckf.RootTrajectoryStatesWriterTool = trajectory_states_writer_tool ckf.RootTrajectorySummaryWriterTool = trajectory_summary_writer_tool ckf.PerformanceWriterTool = trajectory_performance_writer_tool + ckf.TrackingGeometryTool=actsTrackingGeometryTool ckf.isMC = flags.Input.isMC ckf.SummaryWriter = True ckf.StatesWriter = False -- GitLab