ATLAS Offline Software
ActsMeasurementCalibrationConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
7  name: str='ActsAnalogueClusteringTool',
8  **kwargs) -> ComponentAccumulator:
9 
10  if not flags.Detector.GeometryITk:
11  raise Exception("Acts Analogue Clustering calibration only supports ITk!")
12 
13  acc = ComponentAccumulator()
14 
15  from PixelConditionsAlgorithms.ITkPixelConditionsConfig import ITkPixelOfflineCalibCondAlgCfg
16  acc.merge(ITkPixelOfflineCalibCondAlgCfg(flags))
17 
18  kwargs.setdefault('UseWeightedPosition', flags.Acts.Clusters.UseWeightedPosition)
19  kwargs.setdefault("DetEleCollKey", "ITkPixelDetectorElementCollection")
20  kwargs.setdefault("PixelOfflineCalibData", "ITkPixelOfflineCalibData")
21  kwargs.setdefault("PerformCovarianceCalibration", flags.Acts.OnTrackCalibration.performCovarianceCalibration)
22 
23  # For default configuration we set a lower cap on the calibrated covariance
24  # For FT we have inflated chi2 instead
25  # This applies to all tracking passes, main and secondaries alike
26  if not flags.Tracking.doITkFastTracking:
27  kwargs.setdefault("CalibratedCovarianceLowerBound", 0.75)
28 
29  if 'PixelLorentzAngleTool' not in kwargs:
30  from SiLorentzAngleTool.ITkPixelLorentzAngleConfig import ITkPixelLorentzAngleToolCfg
31  kwargs.setdefault("PixelLorentzAngleTool", acc.popToolsAndMerge(ITkPixelLorentzAngleToolCfg(flags)))
32 
33  acc.setPrivateTools(CompFactory.ActsTrk.ITkAnalogueClusteringTool(name, **kwargs))
34  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ActsMeasurementCalibrationConfig.ActsAnalogueClusteringToolCfg
ComponentAccumulator ActsAnalogueClusteringToolCfg(flags, str name='ActsAnalogueClusteringTool', **kwargs)
Definition: ActsMeasurementCalibrationConfig.py:6
python.ITkPixelLorentzAngleConfig.ITkPixelLorentzAngleToolCfg
def ITkPixelLorentzAngleToolCfg(flags, name="ITkPixelLorentzAngleTool", **kwargs)
Definition: ITkPixelLorentzAngleConfig.py:14
ITkPixelConditionsConfig.ITkPixelOfflineCalibCondAlgCfg
def ITkPixelOfflineCalibCondAlgCfg(flags, name="ITkPixelOfflineCalibCondAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:141