ATLAS Offline Software
Loading...
Searching...
No Matches
python.ITkTrigSequence.ITkTrigSequence Class Reference
Inheritance diagram for python.ITkTrigSequence.ITkTrigSequence:
Collaboration diagram for python.ITkTrigSequence.ITkTrigSequence:

Public Member Functions

 __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 = logging.getLogger("ITkTrigSequence")
 flags
 inView
str lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_FTF
str ambiPrefix = "EFAmbi"

Detailed Description

Definition at line 10 of file ITkTrigSequence.py.

Constructor & Destructor Documentation

◆ __init__()

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 from TrkConfig.TrkAmbiguitySolverConfig import TrigITkTrkAmbiguityScoreCfg
128 acc.merge(
129 TrigITkTrkAmbiguityScoreCfg(
130 self.flags,
131 name = f"{self.ambiPrefix}Score_{self.flags.Tracking.ActiveConfig.input_name}",
132 TrackInput = [self.lastTrkCollection],
133 AmbiguityScoreProcessor = None
134 )
135 )
136
137 from TrkConfig.TrkAmbiguitySolverConfig import TrkAmbiguitySolver_Trig_Cfg
138 acc.merge(
139 TrkAmbiguitySolver_Trig_Cfg(
140 self.flags,
141 name = f"{self.ambiPrefix}guitySolver_{self.flags.Tracking.ActiveConfig.input_name}",
142 )
143 )
144 self.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_IDTrig+"_Amb"
145 return acc
146

◆ dataPreparation()

ComponentAccumulator python.ITkTrigSequence.ITkTrigSequence.dataPreparation ( self)

Definition at line 52 of file ITkTrigSequence.py.

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

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 161 of file ITkTrigSequence.py.

161 def offlinePattern(self) -> ComponentAccumulator:
162
163 ca = ComponentAccumulator()
164
165 from InDetConfig.SiSPSeededTrackFinderConfig import TrigITkSiSPSeededTrackFinderCfg
166
167 self.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_IDTrig
168 ca.merge(TrigITkSiSPSeededTrackFinderCfg(self.flags,
169 name = 'EFsiSPSeededTrackFinder'+self.flags.Tracking.ActiveConfig.input_name,
170 TracksLocation = self.lastTrkCollection,
171 ))
172
173 self.ambiPrefix = "EFAmbi"
174
175 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 ('InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkPixelDetectorElementStatus' ),
34 ('InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkStripDetectorElementStatus' ),
35 ('xAOD::EventInfo', 'EventInfo'),
36 ('TrigRoiDescriptorCollection', str(self.rois)),
37 ('TagInfo' , 'DetectorStore+ProcessingTags' )} )
38
39 if self.flags.Input.isMC:
40 ViewDataVerifier.DataObjects |= {( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
41 ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
42 ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map')}
43 from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
44 sgil_load = [( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
45 ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
46 ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map')]
47 acc.merge(SGInputLoaderCfg(self.flags, Load=sgil_load))
48
49 acc.addEventAlgo(ViewDataVerifier)
50 return acc
51

◆ 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' , self.flags.Trigger.ITkTracking.ClusterAmbiguitiesMap),
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 147 of file ITkTrigSequence.py.

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

Member Data Documentation

◆ ambiPrefix

str python.ITkTrigSequence.ITkTrigSequence.ambiPrefix = "EFAmbi"

Definition at line 173 of file ITkTrigSequence.py.

◆ flags

python.ITkTrigSequence.ITkTrigSequence.flags

Definition at line 47 of file ITkTrigSequence.py.

◆ inView

python.ITkTrigSequence.ITkTrigSequence.inView

Definition at line 60 of file ITkTrigSequence.py.

◆ lastTrkCollection

str python.ITkTrigSequence.ITkTrigSequence.lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_FTF

Definition at line 111 of file ITkTrigSequence.py.

◆ log

python.ITkTrigSequence.ITkTrigSequence.log = logging.getLogger("ITkTrigSequence")

Definition at line 13 of file ITkTrigSequence.py.


The documentation for this class was generated from the following file: