ATLAS Offline Software
Functions
python.TrkTrackCollectionMergerConfig Namespace Reference

Functions

def TrackCollectionMergerAlgCfg (flags, name="InDetTrackCollectionMerger", InputCombinedTracks=None, OutputCombinedTracks="", **kwargs)
 
def ITkTrackCollectionMergerAlgCfg (flags, name="ITkTrackCollectionMerger", InputCombinedTracks=None, OutputCombinedTracks="CombinedITkTracks", **kwargs)
 

Function Documentation

◆ ITkTrackCollectionMergerAlgCfg()

def python.TrkTrackCollectionMergerConfig.ITkTrackCollectionMergerAlgCfg (   flags,
  name = "ITkTrackCollectionMerger",
  InputCombinedTracks = None,
  OutputCombinedTracks = "CombinedITkTracks",
**  kwargs 
)

Definition at line 31 of file TrkTrackCollectionMergerConfig.py.

31 def ITkTrackCollectionMergerAlgCfg(flags, name="ITkTrackCollectionMerger",
32  InputCombinedTracks=None,
33  OutputCombinedTracks="CombinedITkTracks",
34  **kwargs):
35  result = ComponentAccumulator()
36  if hasattr(flags.TrackOverlay, "ActiveConfig"):
37  doTrackOverlay = getattr(flags.TrackOverlay.ActiveConfig, "doTrackOverlay", None)
38  else:
39  doTrackOverlay = flags.Overlay.doTrackOverlay
40  prefix = flags.Overlay.SigPrefix if doTrackOverlay else ''
41 
42  kwargs.setdefault("TracksLocation", InputCombinedTracks)
43  kwargs.setdefault("OutputTracksLocation", OutputCombinedTracks)
44 
45  if "AssociationTool" not in kwargs:
46  from InDetConfig.InDetAssociationToolsConfig import ITkPRDtoTrackMapToolGangedPixelsCfg
47  kwargs.setdefault("AssociationTool", result.popToolsAndMerge(ITkPRDtoTrackMapToolGangedPixelsCfg(flags)))
48 
49  kwargs.setdefault("AssociationMapName", "ITkPRDtoTrackMapMerge_CombinedITkTracks")
50  kwargs.setdefault("DoTrackOverlay",doTrackOverlay)
51 
52  result.addEventAlgo(CompFactory.Trk.TrackCollectionMerger(prefix+name, **kwargs))
53  return result

◆ TrackCollectionMergerAlgCfg()

def python.TrkTrackCollectionMergerConfig.TrackCollectionMergerAlgCfg (   flags,
  name = "InDetTrackCollectionMerger",
  InputCombinedTracks = None,
  OutputCombinedTracks = "",
**  kwargs 
)

Definition at line 7 of file TrkTrackCollectionMergerConfig.py.

7 def TrackCollectionMergerAlgCfg(flags, name="InDetTrackCollectionMerger",
8  InputCombinedTracks=None,
9  OutputCombinedTracks="",
10  **kwargs):
11  result = ComponentAccumulator()
12  if hasattr(flags.TrackOverlay, "ActiveConfig"):
13  doTrackOverlay = getattr(flags.TrackOverlay.ActiveConfig, "doTrackOverlay", None)
14  else:
15  doTrackOverlay = flags.Overlay.doTrackOverlay
16  prefix = 'Sig_' if doTrackOverlay else ''
17 
18  kwargs.setdefault("TracksLocation", InputCombinedTracks)
19  kwargs.setdefault("OutputTracksLocation", OutputCombinedTracks)
20 
21  if "AssociationTool" not in kwargs:
22  from InDetConfig.InDetAssociationToolsConfig import InDetPRDtoTrackMapToolGangedPixelsCfg
23  kwargs.setdefault("AssociationTool", result.popToolsAndMerge(InDetPRDtoTrackMapToolGangedPixelsCfg(flags)))
24 
25  kwargs.setdefault("DoTrackOverlay",doTrackOverlay)
26 
27  result.addEventAlgo(CompFactory.Trk.TrackCollectionMerger(prefix+name, **kwargs))
28  return result
29 
30 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkTrackCollectionMergerConfig.ITkTrackCollectionMergerAlgCfg
def ITkTrackCollectionMergerAlgCfg(flags, name="ITkTrackCollectionMerger", InputCombinedTracks=None, OutputCombinedTracks="CombinedITkTracks", **kwargs)
Definition: TrkTrackCollectionMergerConfig.py:31
python.InDetAssociationToolsConfig.InDetPRDtoTrackMapToolGangedPixelsCfg
def InDetPRDtoTrackMapToolGangedPixelsCfg(flags, name='PRDtoTrackMapToolGangedPixels', **kwargs)
Definition: InDetAssociationToolsConfig.py:29
python.TrkTrackCollectionMergerConfig.TrackCollectionMergerAlgCfg
def TrackCollectionMergerAlgCfg(flags, name="InDetTrackCollectionMerger", InputCombinedTracks=None, OutputCombinedTracks="", **kwargs)
Definition: TrkTrackCollectionMergerConfig.py:7
python.InDetAssociationToolsConfig.ITkPRDtoTrackMapToolGangedPixelsCfg
def ITkPRDtoTrackMapToolGangedPixelsCfg(flags, name='ITkPRDtoTrackMapToolGangedPixels', **kwargs)
Definition: InDetAssociationToolsConfig.py:43