ATLAS Offline Software
TRT_TrackSegmentsToolConfig.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_TrackSegmentsTool_xk package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
7  flags, name = 'InDetTRT_SeedsMakerCondAlg', **kwargs):
8  from TRT_GeoModel.TRT_GeoModelConfig import TRT_ReadoutGeometryCfg
9  acc = TRT_ReadoutGeometryCfg(flags) # To produce TRT_DetElementContainer
10 
11  if "PropagatorTool" not in kwargs:
12  from TrkConfig.TrkExRungeKuttaPropagatorConfig import (
13  RungeKuttaPropagatorCfg)
14  kwargs.setdefault("PropagatorTool", acc.popToolsAndMerge(
16 
17  kwargs.setdefault("NumberMomentumChannel",
18  flags.Tracking.BackTracking.TRTSegFinderPtBins)
19 
20  acc.addCondAlgo(
21  CompFactory.InDet.TRT_TrackSegmentsMakerCondAlg_ATLxk(name, **kwargs))
22  return acc
23 
25  flags, name='InDetTRTSegmentsMaker', **kwargs) :
26  acc = ComponentAccumulator()
27 
28  kwargs.setdefault("TrtManagerLocation", 'TRT')
29  kwargs.setdefault("TRT_ClustersContainer", 'TRT_DriftCirclesUncalibrated')
30  kwargs.setdefault("IsMagneticFieldOn", flags.BField.solenoidOn)
31 
32  acc.setPrivateTools(
33  CompFactory.InDet.TRT_TrackSegmentsMaker_BarrelCosmics(name, **kwargs))
34  return acc
35 
37  flags, name = 'InDetTRT_SeedsMaker',
38  InputCollections = None, **kwargs):
39 
41  flags,
42  name = 'InDetTRT_SeedsMakerCondAlg',
43  pTmin = flags.Tracking.BackTracking.minPt)
44 
45  if "TrackExtensionTool" not in kwargs:
46  from InDetConfig.TRT_TrackExtensionToolConfig import (
47  TRT_TrackExtensionToolCfg)
48  kwargs.setdefault("TrackExtensionTool", acc.popToolsAndMerge(
50 
51  kwargs.setdefault("TRT_ClustersContainer", 'TRT_DriftCircles')
52  kwargs.setdefault("RemoveNoiseDriftCircles", False)
53  kwargs.setdefault("NumberMomentumChannel",
54  flags.Tracking.BackTracking.TRTSegFinderPtBins)
55  if InputCollections is not None:
56  kwargs.setdefault("PRDtoTrackMap", 'InDetSegmentPRDtoTrackMap')
57  kwargs.setdefault("MinNumberDriftCircles", flags.Tracking.BackTracking.minTRT)
58  kwargs.setdefault("pTmin", flags.Tracking.BackTracking.minPt)
59  kwargs.setdefault("sharedFrac", flags.Tracking.BackTracking.maxTRTSharedFrac)
60 
61  acc.setPrivateTools(
62  CompFactory.InDet.TRT_TrackSegmentsMaker_ATLxk(name, **kwargs))
63  return acc
64 
66  flags, name = 'InDetTRT_SeedsMaker_Phase', **kwargs):
67  kwargs.setdefault("PRDtoTrackMap", "")
68  return TRT_TrackSegmentsMaker_ATLxkCfg(flags, name, **kwargs)
69 
71  flags, name = 'InDetTRT_SeedsMaker_TrackSegments', **kwargs):
72  kwargs.setdefault("pTmin", flags.Tracking.ActiveConfig.minPT)
73  kwargs.setdefault("MinNumberDriftCircles", flags.Tracking.ActiveConfig.minPT)
74  kwargs.setdefault("sharedFrac", 0.7)
75  kwargs.setdefault("PRDtoTrackMap", "")
76  return TRT_TrackSegmentsMaker_ATLxkCfg(flags, name, **kwargs)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TRT_GeoModelConfig.TRT_ReadoutGeometryCfg
def TRT_ReadoutGeometryCfg(flags)
Definition: TRT_GeoModelConfig.py:59
python.TRT_TrackSegmentsToolConfig.TRT_TrackSegmentsMakerCondAlg_ATLxkCfg
def TRT_TrackSegmentsMakerCondAlg_ATLxkCfg(flags, name='InDetTRT_SeedsMakerCondAlg', **kwargs)
Definition: TRT_TrackSegmentsToolConfig.py:6
python.TrkExRungeKuttaPropagatorConfig.RungeKuttaPropagatorCfg
def RungeKuttaPropagatorCfg(flags, name='AtlasRungeKuttaPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:9
python.TRT_TrackSegmentsToolConfig.TRT_TrackSegmentsMaker_BarrelCosmicsCfg
def TRT_TrackSegmentsMaker_BarrelCosmicsCfg(flags, name='InDetTRTSegmentsMaker', **kwargs)
Definition: TRT_TrackSegmentsToolConfig.py:24
python.TRT_TrackSegmentsToolConfig.TRT_TrackSegmentsMaker_ATLxk_Phase_Cfg
def TRT_TrackSegmentsMaker_ATLxk_Phase_Cfg(flags, name='InDetTRT_SeedsMaker_Phase', **kwargs)
Definition: TRT_TrackSegmentsToolConfig.py:65
python.TRT_TrackExtensionToolConfig.TRT_TrackExtensionToolCfg
def TRT_TrackExtensionToolCfg(flags, name='TRT_TrackExtensionTool', **kwargs)
Definition: TRT_TrackExtensionToolConfig.py:142
python.TRT_TrackSegmentsToolConfig.TRT_TrackSegmentsMaker_ATLxkCfg
def TRT_TrackSegmentsMaker_ATLxkCfg(flags, name='InDetTRT_SeedsMaker', InputCollections=None, **kwargs)
Definition: TRT_TrackSegmentsToolConfig.py:36
python.TRT_TrackSegmentsToolConfig.TRT_TrackSegmentsMaker_ATLxk_TrackSegmentsCfg
def TRT_TrackSegmentsMaker_ATLxk_TrackSegmentsCfg(flags, name='InDetTRT_SeedsMaker_TrackSegments', **kwargs)
Definition: TRT_TrackSegmentsToolConfig.py:70