ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.InnerTrackerTrigSequence.InnerTrackerTrigSequence Class Reference
Inheritance diagram for python.InnerTrackerTrigSequence.InnerTrackerTrigSequence:
Collaboration diagram for python.InnerTrackerTrigSequence.InnerTrackerTrigSequence:

Public Member Functions

def __init__ (self, AthConfigFlags flags, str signature, str rois, str inView)
 
ComponentAccumulator sequence (self, str recoType)
 
ComponentAccumulator fastTrackFinderBase (self, AthConfigFlags extraFlags=None, str inputTracksName=None)
 
ComponentAccumulator sequenceAfterPattern (self, str recoType="PrecisionTracking", str rois="")
 

Public Attributes

 flags
 
 signature
 
 rois
 
 lastRois
 
 lastTrkCollection
 
 inView
 
 ambiPrefix
 
 log
 

Detailed Description

Definition at line 7 of file InnerTrackerTrigSequence.py.

Constructor & Destructor Documentation

◆ __init__()

def python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.__init__ (   self,
AthConfigFlags  flags,
str  signature,
str  rois,
str  inView 
)

Definition at line 8 of file InnerTrackerTrigSequence.py.

8  def __init__(self, flags : AthConfigFlags, signature : str, rois : str, inView : str):
9 
10  self.flags = flags
11  self.signature = signature
12  self.rois = rois
13  self.lastRois = rois
14  self.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_FTF
15  self.inView = inView
16  self.ambiPrefix = "TrigAmbi"
17  self.log = logging.getLogger("InnerTrackerTrigSequence")
18 

Member Function Documentation

◆ fastTrackFinderBase()

ComponentAccumulator python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.fastTrackFinderBase (   self,
AthConfigFlags   extraFlags = None,
str   inputTracksName = None 
)
return ComponentAccumulator of the FTF instance
if another instance of flags is passed in this is for a second instance of FTF
if inputTracksName is specified it is also a second instance but is invoked as first? what about the previous steps? TODO

Definition at line 54 of file InnerTrackerTrigSequence.py.

54  def fastTrackFinderBase(self,
55  extraFlags : AthConfigFlags = None,
56  inputTracksName : str = None) -> ComponentAccumulator:
57  """
58  return ComponentAccumulator of the FTF instance
59  if another instance of flags is passed in this is for a second instance of FTF
60  if inputTracksName is specified it is also a second instance but is invoked as first? what about the previous steps? TODO
61  """
62 
63  acc = ComponentAccumulator()
64 
65  ftfargs = {}
66  flags = self.flags
67 
68  signature = flags.Tracking.ActiveConfig.input_name
69 
70  if extraFlags:
71  flags = extraFlags
72  ftfargs["inputTracksName"] = self.flags.Tracking.ActiveConfig.trkTracks_FTF
73  #TODO move from .name to .input_name for consistency after migration to private tools
74  signature = flags.Tracking.ActiveConfig.name
75  elif inputTracksName:
76  ftfargs["inputTracksName"] = inputTracksName
77 
78  from TrigFastTrackFinder.TrigFastTrackFinderConfig import TrigFastTrackFinderCfg
79  acc.merge(TrigFastTrackFinderCfg(flags, "TrigFastTrackFinder_" + signature,
80  self.rois, **ftfargs))
81  return acc
82 
83 
84 

◆ sequence()

ComponentAccumulator python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.sequence (   self,
str  recoType 
)

Definition at line 19 of file InnerTrackerTrigSequence.py.

19  def sequence(self, recoType : str) -> ComponentAccumulator:
20 
22 
23  if self.inView:
24  ca.merge(self.viewDataVerifier(self.inView))
25 
26  if recoType == "dataPreparation":
27  ca.merge(self.dataPreparation())
28  return ca
29 
30  if recoType =="spacePointFormation":
31  ca.merge(self.dataPreparation())
32  ca.merge(self.spacePointFormation())
33  return ca
34 
35  if recoType =="FastTrackFinder":
36  ca.merge(self.dataPreparation())
37  ca.merge(self.spacePointFormation())
38  ca.merge(self.fastTrackFinder())
39  return ca
40 
41  if recoType =="Offline":
42  ca.merge(self.dataPreparation())
43  ca.merge(self.spacePointFormation())
44  ca.merge(self.offlinePattern())
45  ca.merge(self.sequenceAfterPattern())
46 
47  if recoType =="OfflineNoDataPrep":
48  ca.merge(self.viewDataVerifierAfterDataPrep())
49  ca.merge(self.offlinePattern())
50  ca.merge(self.sequenceAfterPattern())
51 
52  return ca
53 

◆ sequenceAfterPattern()

ComponentAccumulator python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.sequenceAfterPattern (   self,
str   recoType = "PrecisionTracking",
str   rois = "" 
)

Definition at line 85 of file InnerTrackerTrigSequence.py.

85  def sequenceAfterPattern(self, recoType : str = "PrecisionTracking", rois : str = "") -> ComponentAccumulator:
86 
88 
89  if rois:
90  self.lastRois = rois
91  if self.lastRois != self.rois:
92  self.log.info(f"Sequence after patternReco for signature: {self.signature} RoIs: {self.rois} inview: {self.inView} with new RoIs {self.lastRois} - they must be a subvolume.")
93 
94  ca.merge(self.ambiguitySolver())
95  if self.flags.Tracking.ActiveConfig.doTRT:
96  ca.merge(self.trtExtensions())
97  ca.merge(self.xAODParticleCreation())
98 
99  return ca
100 

Member Data Documentation

◆ ambiPrefix

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.ambiPrefix

Definition at line 16 of file InnerTrackerTrigSequence.py.

◆ flags

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.flags

Definition at line 10 of file InnerTrackerTrigSequence.py.

◆ inView

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.inView

Definition at line 15 of file InnerTrackerTrigSequence.py.

◆ lastRois

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.lastRois

Definition at line 13 of file InnerTrackerTrigSequence.py.

◆ lastTrkCollection

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.lastTrkCollection

Definition at line 14 of file InnerTrackerTrigSequence.py.

◆ log

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.log

Definition at line 17 of file InnerTrackerTrigSequence.py.

◆ rois

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.rois

Definition at line 12 of file InnerTrackerTrigSequence.py.

◆ signature

python.InnerTrackerTrigSequence.InnerTrackerTrigSequence.signature

Definition at line 11 of file InnerTrackerTrigSequence.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigFastTrackFinderConfig.TrigFastTrackFinderCfg
ComponentAccumulator TrigFastTrackFinderCfg(AthConfigFlags flags, str name, str RoIs, str inputTracksName=None)
Definition: TrigFastTrackFinderConfig.py:354
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18