ATLAS Offline Software
TRT_SeededTrackFinderToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TRT_SeededTrackFinderTool package
3 
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.Enums import BeamType
6 
8  flags, name='InDetTRT_SeededTrackMaker', InputCollections=[], **kwargs):
9  from MagFieldServices.MagFieldServicesConfig import AtlasFieldCacheCondAlgCfg
10  acc = AtlasFieldCacheCondAlgCfg(flags)
11 
12  #
13  # --- TRT seeded back tracking tool
14  #
15  if "PropagatorTool" not in kwargs:
16  from TrkConfig.TrkExRungeKuttaPropagatorConfig import RungeKuttaPropagatorCfg
17  kwargs.setdefault("PropagatorTool", acc.popToolsAndMerge(
19 
20  if "UpdatorTool" not in kwargs:
21  from TrkConfig.TrkMeasurementUpdatorConfig import KalmanUpdator_xkCfg
22  kwargs.setdefault("UpdatorTool", acc.popToolsAndMerge(
23  KalmanUpdator_xkCfg(flags)))
24 
25  if "CombinatorialTrackFinder" not in kwargs:
26  from InDetConfig.SiCombinatorialTrackFinderToolConfig import (
27  SiCombinatorialTrackFinder_xkCfg)
28  kwargs.setdefault("CombinatorialTrackFinder", acc.popToolsAndMerge(
30 
31  if ("RoadTool" not in kwargs and
32  flags.Tracking.ActiveConfig.usePixel and flags.Tracking.ActiveConfig.useSCT):
33  from InDetConfig.SiDetElementsRoadToolConfig import (
34  SiDetElementsRoadMaker_xk_TRT_Cfg)
35  kwargs.setdefault("RoadTool", acc.popToolsAndMerge(
37 
38  #
39  # --- decide which TRT seed space point finder to use
40  #
41  if "SeedTool" not in kwargs:
42  from InDetConfig.TRT_SeededSpacePointFinderToolConfig import (
43  TRT_SeededSpacePointFinder_ATLCfg)
44  kwargs.setdefault("SeedTool", acc.popToolsAndMerge(
45  TRT_SeededSpacePointFinder_ATLCfg(flags, InputCollections=InputCollections)))
46 
47  kwargs.setdefault("pTmin", flags.Tracking.BackTracking.minPt)
48  kwargs.setdefault("nHolesMax", flags.Tracking.BackTracking.nHolesMax)
49  kwargs.setdefault("nHolesGapMax", flags.Tracking.BackTracking.nHolesGapMax)
50  kwargs.setdefault("SearchInCaloROI", False)
51  if kwargs["SearchInCaloROI"]:
52  from InDetConfig.InDetCaloClusterROISelectorConfig import (
53  CaloClusterROIPhiRZContainerMakerCfg)
54  acc.merge(CaloClusterROIPhiRZContainerMakerCfg(flags))
55  kwargs.setdefault("EMROIPhiRZContainer","InDetCaloClusterROIPhiRZ12GeV")
56  else:
57  kwargs.setdefault("EMROIPhiRZContainer","")
58  kwargs.setdefault("ConsistentSeeds", True)
59  kwargs.setdefault("BremCorrection", False)
60 
61  if flags.Beam.Type is BeamType.Cosmics:
62  kwargs.setdefault("nWClustersMin", 0)
63 
64  acc.setPrivateTools(
65  CompFactory.InDet.TRT_SeededTrackFinder_ATL(name, **kwargs))
66  return acc
python.SiDetElementsRoadToolConfig.SiDetElementsRoadMaker_xk_TRT_Cfg
def SiDetElementsRoadMaker_xk_TRT_Cfg(flags, name='InDetTRT_SeededSiRoad', **kwargs)
Definition: SiDetElementsRoadToolConfig.py:52
python.SiCombinatorialTrackFinderToolConfig.SiCombinatorialTrackFinder_xkCfg
def SiCombinatorialTrackFinder_xkCfg(flags, name="InDetSiComTrackFinder", **kwargs)
Definition: SiCombinatorialTrackFinderToolConfig.py:66
python.TrkMeasurementUpdatorConfig.KalmanUpdator_xkCfg
def KalmanUpdator_xkCfg(flags, name='KalmanUpdator_xk', **kwargs)
Definition: TrkMeasurementUpdatorConfig.py:14
python.TRT_SeededTrackFinderToolConfig.TRT_SeededTrackFinder_ATLCfg
def TRT_SeededTrackFinder_ATLCfg(flags, name='InDetTRT_SeededTrackMaker', InputCollections=[], **kwargs)
Definition: TRT_SeededTrackFinderToolConfig.py:7
python.TRT_SeededSpacePointFinderToolConfig.TRT_SeededSpacePointFinder_ATLCfg
def TRT_SeededSpacePointFinder_ATLCfg(flags, name='InDetTRT_SeededSpFinder', InputCollections=None, **kwargs)
Definition: TRT_SeededSpacePointFinderToolConfig.py:24
python.TrkExRungeKuttaPropagatorConfig.RungeKuttaPropagatorCfg
def RungeKuttaPropagatorCfg(flags, name='AtlasRungeKuttaPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:9
python.InDetCaloClusterROISelectorConfig.CaloClusterROIPhiRZContainerMakerCfg
def CaloClusterROIPhiRZContainerMakerCfg(flags, name="CaloClusterROIPhiRZContainerMaker", **kwargs)
Definition: InDetCaloClusterROISelectorConfig.py:7
python.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
Definition: MagFieldServicesConfig.py:8