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

Public Member Functions

def __init__ (self, AthConfigFlags flags, str signature, str rois, str inView)
 
ComponentAccumulator viewDataVerifier (self, viewVerifier='IDViewDataVerifier')
 
ComponentAccumulator dataPreparation (self)
 
ComponentAccumulator viewDataVerifierAfterPattern (self, viewVerifier='IDViewDataVerifierForAmbi')
 
ComponentAccumulator spacePointFormation (self)
 
ComponentAccumulator fastTrackFinder (self, AthConfigFlags extraFlags=None, str inputTracksName=None)
 
ComponentAccumulator ambiguitySolver (self)
 
ComponentAccumulator xAODParticleCreation (self)
 
ComponentAccumulator offlinePattern (self)
 

Public Attributes

 log
 
 lastTrkCollection
 
 ambiPrefix
 

Detailed Description

Definition at line 10 of file ITkTrigSequence.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 11 of file ITkTrigSequence.py.

11  def __init__(self, flags : AthConfigFlags, signature : str, rois : str, inView : str):
12  super().__init__(flags, signature,rois,inView)
13  self.log = logging.getLogger("ITkTrigSequence")
14  self.log.info(f"signature: {self.signature} rois: {self.rois} inview: {self.inView}")
15 
16 

Member Function Documentation

◆ ambiguitySolver()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.ambiguitySolver (   self)

Definition at line 120 of file ITkTrigSequence.py.

120  def ambiguitySolver(self) -> ComponentAccumulator:
121 
122  acc = ComponentAccumulator()
123 
124  if self.inView:
125  acc.merge(self.viewDataVerifierAfterPattern())
126 
127 
128  from TrkConfig.TrkAmbiguitySolverConfig import ITkTrkAmbiguityScoreCfg
129  acc.merge(
131  self.flags,
132  name = "TrkAmbiguityScore_",
133  SiSPSeededTrackCollectionKey=self.lastTrkCollection
134  )
135  )
136 
137  from TrkConfig.TrkAmbiguitySolverConfig import ITkTrkAmbiguitySolverCfg
138  acc.merge(
140  self.flags,
141  name = "TrkAmbiguitySolver_",
142  ResolvedTrackCollectionKey=self.flags.Tracking.ActiveConfig.trkTracks_IDTrig+"_Amb"
143  )
144  )
145 
146  self.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_IDTrig+"_Amb"
147  return acc
148 

◆ dataPreparation()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.dataPreparation (   self)

Definition at line 50 of file ITkTrigSequence.py.

50  def dataPreparation(self) -> ComponentAccumulator:
51 
52  signature = self.flags.Tracking.ActiveConfig.input_name
53 
54  acc = ComponentAccumulator()
55 
56  self.log.info(f"DataPrep signature: {self.signature} rois: {self.rois} inview: {self.inView}")
57 
58  if not self.inView:
59  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
60  loadRDOs = [( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
61  ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
62  ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map') ]
63  acc.merge(SGInputLoaderCfg(self.flags, Load=loadRDOs))
64 
65  #Clusterisation
66  from InDetConfig.InDetPrepRawDataFormationConfig import ITkTrigPixelClusterizationCfg, ITkTrigStripClusterizationCfg
67  acc.merge(ITkTrigPixelClusterizationCfg(self.flags, roisKey=self.rois, signature=signature))
68  acc.merge(ITkTrigStripClusterizationCfg(self.flags, roisKey=self.rois, signature=signature))
69  from InDetConfig.TrackRecoConfig import SiDetectorElementStatusCfg
70  acc.merge(SiDetectorElementStatusCfg(self.flags,f"_{signature}"))
71  return acc
72 

◆ fastTrackFinder()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.fastTrackFinder (   self,
AthConfigFlags   extraFlags = None,
str   inputTracksName = None 
)

Definition at line 104 of file ITkTrigSequence.py.

104  def fastTrackFinder(self,
105  extraFlags : AthConfigFlags = None,
106  inputTracksName : str = None) -> ComponentAccumulator:
107  acc = self.fastTrackFinderBase(extraFlags, inputTracksName)
108  signature = self.flags.Tracking.ActiveConfig.input_name
109 
110  if not self.flags.Tracking.ActiveConfig.doZFinderOnly:
111  self.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_FTF
112  from xAODTrackingCnv.xAODTrackingCnvConfig import ITkTrackParticleCnvAlgCfg
113  acc.merge(ITkTrackParticleCnvAlgCfg(self.flags,
114  name = "ITkTrigTrackParticleCnvAlg"+signature,
115  TrackContainerName = self.lastTrkCollection,
116  xAODTrackParticlesFromTracksContainerName = self.flags.Tracking.ActiveConfig.tracks_FTF))
117 
118  return acc
119 

◆ offlinePattern()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.offlinePattern (   self)

Definition at line 163 of file ITkTrigSequence.py.

163  def offlinePattern(self) -> ComponentAccumulator:
164 
165  ca = ComponentAccumulator()
166 
167  from InDetConfig.SiSPSeededTrackFinderConfig import TrigITkSiSPSeededTrackFinderCfg
168 
169  self.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_IDTrig
170  ca.merge(TrigITkSiSPSeededTrackFinderCfg(self.flags,
171  name = 'EFsiSPSeededTrackFinder'+self.flags.Tracking.ActiveConfig.input_name,
172  TracksLocation = self.lastTrkCollection,
173  ))
174 
175  self.ambiPrefix = "EFAmbi"
176 
177  return ca

◆ spacePointFormation()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.spacePointFormation (   self)

Definition at line 95 of file ITkTrigSequence.py.

95  def spacePointFormation(self) -> ComponentAccumulator:
96 
97  signature = self.flags.Tracking.ActiveConfig.input_name
98  acc = ComponentAccumulator()
99 
100  from InDetConfig.SiSpacePointFormationConfig import ITkTrigSiTrackerSpacePointFinderCfg
101  acc.merge(ITkTrigSiTrackerSpacePointFinderCfg(self.flags, signature=signature))
102  return acc
103 

◆ viewDataVerifier()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.viewDataVerifier (   self,
  viewVerifier = 'IDViewDataVerifier' 
)

Definition at line 17 of file ITkTrigSequence.py.

17  def viewDataVerifier(self, viewVerifier='IDViewDataVerifier') -> ComponentAccumulator:
18 
19  acc = ComponentAccumulator()
20 
21  ViewDataVerifier = CompFactory.AthViews.ViewDataVerifier(
22  name = viewVerifier + "_" + self.signature,
23  DataObjects= {('xAOD::EventInfo', 'StoreGateSvc+EventInfo'),
24  ('InDet::PixelClusterContainerCache', self.flags.Trigger.ITkTracking.PixelClusterCacheKey),
25  ('PixelRDO_Cache', self.flags.Trigger.ITkTracking.PixRDOCacheKey),
26  ('InDet::SCT_ClusterContainerCache', self.flags.Trigger.ITkTracking.SCTClusterCacheKey),
27  ('SCT_RDO_Cache', self.flags.Trigger.ITkTracking.SCTRDOCacheKey),
28  ('IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.PixBSErrCacheKey ),
29  ('IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.SCTBSErrCacheKey ),
30  ('IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.SCTFlaggedCondCacheKey ),
31  ('SpacePointCache', self.flags.Trigger.ITkTracking.SpacePointCachePix),
32  ('SpacePointCache', self.flags.Trigger.ITkTracking.SpacePointCacheSCT),
33  ('xAOD::EventInfo', 'EventInfo'),
34  ('TrigRoiDescriptorCollection', str(self.rois)),
35  ( 'TagInfo' , 'DetectorStore+ProcessingTags' )} )
36 
37  if self.flags.Input.isMC:
38  ViewDataVerifier.DataObjects |= {( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
39  ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
40  ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map')}
41  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
42  sgil_load = [( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
43  ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
44  ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map')]
45  acc.merge(SGInputLoaderCfg(self.flags, Load=sgil_load))
46 
47  acc.addEventAlgo(ViewDataVerifier)
48  return acc
49 

◆ viewDataVerifierAfterPattern()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.viewDataVerifierAfterPattern (   self,
  viewVerifier = 'IDViewDataVerifierForAmbi' 
)

Definition at line 73 of file ITkTrigSequence.py.

73  def viewDataVerifierAfterPattern(self, viewVerifier='IDViewDataVerifierForAmbi') -> ComponentAccumulator:
74 
75  acc = ComponentAccumulator()
76 
77  dataObjects = [
78  ( 'InDet::PixelGangedClusterAmbiguities' , 'ITkPixelClusterAmbiguitiesMap'),
79  ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map')
80  ]
81  from TrigInDetConfig.TrigInDetConfig import InDetExtraDataObjectsFromDataPrep
82  InDetExtraDataObjectsFromDataPrep(self.flags,dataObjects)
83 
84  ViewDataVerifier = \
85  CompFactory.AthViews.ViewDataVerifier(
86  name = viewVerifier + "_" + self.signature,
87  DataObjects = dataObjects
88  )
89  from TrigInDetConfig.TrigInDetConfig import InDetExtraDataObjectsFromDataPrep
90 
91  acc.addEventAlgo(ViewDataVerifier)
92  return acc
93 
94 

◆ xAODParticleCreation()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.xAODParticleCreation (   self)

Definition at line 149 of file ITkTrigSequence.py.

149  def xAODParticleCreation(self) -> ComponentAccumulator:
150 
151  acc = ComponentAccumulator()
152 
153  from xAODTrackingCnv.xAODTrackingCnvConfig import ITkTrackParticleCnvAlgCfg
154  prefix = "ITk"
155  acc.merge(ITkTrackParticleCnvAlgCfg(
156  self.flags,
157  name = prefix+'xAODParticleCreatorAlg'+self.flags.Tracking.ActiveConfig.input_name+'_IDTrig',
158  TrackContainerName = self.lastTrkCollection,
159  xAODTrackParticlesFromTracksContainerName = self.flags.Tracking.ActiveConfig.tracks_IDTrig,
160  ))
161  return acc
162 

Member Data Documentation

◆ ambiPrefix

python.ITkTrigSequence.ITkTrigSequence.ambiPrefix

Definition at line 175 of file ITkTrigSequence.py.

◆ lastTrkCollection

python.ITkTrigSequence.ITkTrigSequence.lastTrkCollection

Definition at line 109 of file ITkTrigSequence.py.

◆ log

python.ITkTrigSequence.ITkTrigSequence.log

Definition at line 13 of file ITkTrigSequence.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
python.TrackRecoConfig.SiDetectorElementStatusCfg
def SiDetectorElementStatusCfg(flags, suffix="")
Definition: TrackRecoConfig.py:188
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetPrepRawDataFormationConfig.ITkTrigStripClusterizationCfg
def ITkTrigStripClusterizationCfg(flags, name="ITkTrigStripClusterization", roisKey="", signature="", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:244
python.TrkAmbiguitySolverConfig.ITkTrkAmbiguitySolverCfg
def ITkTrkAmbiguitySolverCfg(flags, name="ITkAmbiguitySolver", ResolvedTrackCollectionKey=None, **kwargs)
Definition: TrkAmbiguitySolverConfig.py:184
python.InDetPrepRawDataFormationConfig.ITkTrigPixelClusterizationCfg
def ITkTrigPixelClusterizationCfg(flags, name="ITkTrigPixelClusterization", roisKey="", signature="", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:140
xAODTrackingCnvConfig.ITkTrackParticleCnvAlgCfg
def ITkTrackParticleCnvAlgCfg(flags, name="ITkTrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", bool isActsAmbi=False, **kwargs)
Definition: xAODTrackingCnvConfig.py:287
python.TrkAmbiguitySolverConfig.ITkTrkAmbiguityScoreCfg
def ITkTrkAmbiguityScoreCfg(flags, name="ITkAmbiguityScore", SiSPSeededTrackCollectionKey=None, ClusterSplitProbContainer='', **kwargs)
Definition: TrkAmbiguitySolverConfig.py:74
python.TrigInDetConfig.InDetExtraDataObjectsFromDataPrep
def InDetExtraDataObjectsFromDataPrep(flags, dataObjects)
Definition: TrigInDetConfig.py:10
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11
python.SiSpacePointFormationConfig.ITkTrigSiTrackerSpacePointFinderCfg
def ITkTrigSiTrackerSpacePointFinderCfg(flags, name="ITkTrigSiTrackerSpacePointFinder", signature="", **kwargs)
Definition: SiSpacePointFormationConfig.py:181