ATLAS Offline Software
Functions
python.TrkRefitAlgConfig Namespace Reference

Functions

def ReFitTrackAlgCfg (flags, name="InDetRefitTrack", **kwargs)
 

Function Documentation

◆ ReFitTrackAlgCfg()

def python.TrkRefitAlgConfig.ReFitTrackAlgCfg (   flags,
  name = "InDetRefitTrack",
**  kwargs 
)

Definition at line 8 of file TrkRefitAlgConfig.py.

8 def ReFitTrackAlgCfg(flags, name="InDetRefitTrack", **kwargs):
9 
10  result = ComponentAccumulator()
11 
12  if "FitterTool" not in kwargs:
13  from TrkConfig.CommonTrackFitterConfig import InDetTrackFitterCfg
14  kwargs.setdefault("FitterTool", result.popToolsAndMerge(
15  InDetTrackFitterCfg(flags)))
16 
17  if "FitterToolTRT" not in kwargs:
18  from TrkConfig.CommonTrackFitterConfig import InDetTrackFitterTRTCfg
19  kwargs.setdefault("FitterToolTRT", result.popToolsAndMerge(
20  InDetTrackFitterTRTCfg(flags)))
21 
22  if "SummaryTool" not in kwargs:
23  from TrkConfig.TrkTrackSummaryToolConfig import InDetTrackSummaryToolCfg
24  kwargs.setdefault("SummaryTool", result.popToolsAndMerge(
26 
27  if "AssociationTool" not in kwargs:
28  from InDetConfig.InDetAssociationToolsConfig import (
29  InDetPRDtoTrackMapToolGangedPixelsCfg)
30  kwargs.setdefault("AssociationTool", result.popToolsAndMerge(
32 
33  kwargs.setdefault("TrackName", "CombinedInDetTracks")
34  kwargs.setdefault("NewTrackName", "RefittedTracks")
35  kwargs.setdefault("useParticleHypothesisFromTrack", True)
36  kwargs.setdefault("matEffects", flags.Tracking.materialInteractionsType \
37  if flags.Tracking.materialInteractions else 0)
38 
39  result.addEventAlgo(CompFactory.Trk.ReFitTrack(name, **kwargs))
40  return result
python.TrkRefitAlgConfig.ReFitTrackAlgCfg
def ReFitTrackAlgCfg(flags, name="InDetRefitTrack", **kwargs)
Definition: TrkRefitAlgConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CommonTrackFitterConfig.InDetTrackFitterCfg
def InDetTrackFitterCfg(flags, name='InDetTrackFitter', **kwargs)
InDet configs #####.
Definition: CommonTrackFitterConfig.py:10
python.TrkTrackSummaryToolConfig.InDetTrackSummaryToolCfg
def InDetTrackSummaryToolCfg(flags, name='InDetTrackSummaryTool', **kwargs)
Definition: TrkTrackSummaryToolConfig.py:22
python.CommonTrackFitterConfig.InDetTrackFitterTRTCfg
def InDetTrackFitterTRTCfg(flags, name='InDetTrackFitterTRT', **kwargs)
Definition: CommonTrackFitterConfig.py:58
python.InDetAssociationToolsConfig.InDetPRDtoTrackMapToolGangedPixelsCfg
def InDetPRDtoTrackMapToolGangedPixelsCfg(flags, name='PRDtoTrackMapToolGangedPixels', **kwargs)
Definition: InDetAssociationToolsConfig.py:29