ATLAS Offline Software
Loading...
Searching...
No Matches
AccelTrackTrigSequence.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from TrigInDetConfig.InnerTrackerTrigSequence import InnerTrackerTrigSequence
4from AthenaConfiguration.AthConfigFlags import AthConfigFlags
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6from AthenaCommon.Logging import logging
7from AthenaConfiguration.ComponentFactory import CompFactory
8from AthenaConfiguration.Enums import FlagEnum
9
10class DataLocation(FlagEnum):
11 HOST = "host" # Athena objects on CPU
12 DEVICE = "device" # Traccc buffers on GPU
13
14doTruth = False
15
16class AccelTrackTrigSequence(InnerTrackerTrigSequence):
17 def __init__(self, flags : AthConfigFlags, signature : str, rois : str, inView : str):
18 super().__init__(flags, signature,rois,inView)
19 self.log = logging.getLogger("AccelTrigTrigSequence")
20 self.log.info(f"EFTracking signature: {self.signature} rois: {self.rois} inview: {self.inView}")
21 self.log.info(f"AOD config: {self.flags.Trigger.AODEDMSet}")
22 def sequence(self, recoType : str) -> ComponentAccumulator:
23 """ main method to instantiate tracking in the trigger menu
24 recoType can be used to generate a specific step. The pattern recognition
25 and production of xAOD trackparticles should happen in FastTrackFinder step
26 """
27 ca = ComponentAccumulator()
28
29 from xAODTruthCnv.xAODTruthCnvConfig import GEN_AOD2xAODCfg
30 ca.merge(GEN_AOD2xAODCfg(self.flags))
31
32 pipeline = str(self.flags.Trigger.EFTrackPipeline).upper()
33
34 if self.inView:
35 #to invoke VDV to make sure RoI and other info is available in view
36 self.log.info(f"Inside view '{self.inView}', configuring ViewDataVerifier (pipeline={pipeline}).")
37 match pipeline:
38 case "F100":
39 self.log.info(f"Configuring ViewDataVerifier for F100 pipeline in view '{self.inView}'")
40 ca.merge(self.viewDataVerifierFPGA())
41 pass
42 case "G200":
43 self.log.info(f"Configuring ViewDataVerifier for G200 pipeline in view '{self.inView}'")
44 ca.merge(self.viewDataVerifierGPU())
45 pass
46 else:
47 self.log.info("Not inside view, skipping ViewDataVerifier configuration adding SGInputLoader instead")
48
49 # Add SGInputLoader
50 if self.flags.Input.isMC:
51 self.log.info(f"Added SGInputLoader for view '{self.inView}' (MC data)")
52 from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
53 sgil_load = [('PixelRDO_Container', 'StoreGateSvc+ITkPixelRDOs'),
54 ('SCT_RDO_Container', 'StoreGateSvc+ITkStripRDOs'),
55 ('InDetSimDataCollection', 'ITkPixelSDO_Map'),
56 ('InDetSimDataCollection' , 'StoreGateSvc+ITkStripSDO_Map'),
57 ( 'McEventCollection' , 'StoreGateSvc+TruthEvent' )]
58 ca.merge(SGInputLoaderCfg(self.flags, Load=sgil_load))
59
60
61 #if there is need for splitting of the sequence in steps it can be added here
62 if recoType =="FastTrackFinder":
63 ca.merge(self.trackFinding())
64
65 return ca
66
67 def g200(self) -> ComponentAccumulator:
68
69 ca = ComponentAccumulator()
70
71 from ActsGPUGeometry.ActsGPUGeometryConfig import DeviceDetectorDescriptionCondAlgCfg
72 ca.merge(DeviceDetectorDescriptionCondAlgCfg(self.flags))
73
74 # setup RDO converter
75 if self.flags.Acts.EDM.PhaseII :
76 from ActsConfig.ActsPhaseIIRawDataEdmConfig import (
77 PhaseIIPixelRawDataContainerCfg,
78 PhaseIIStripRawDataContainerCfg,
79 )
80 ca.merge(PhaseIIPixelRawDataContainerCfg(self.flags))
81 ca.merge(PhaseIIStripRawDataContainerCfg(self.flags))
82 from ActsGPUEventCnv.ActsGPUEventCnvConfig import PhaseIIRDOtoTracccCellConverterAlgCfg
83 ca.merge(PhaseIIRDOtoTracccCellConverterAlgCfg(self.flags,
84 name=f"RDOtoTracccCellConverterAlg_{self.signature}",
85 TracccCells = "TracccCellCollection",
86 ))
87 else:
88 from ActsGPUEventCnv.ActsGPUEventCnvConfig import RDOtoTracccCellConverterAlgCfg
89 ca.merge(RDOtoTracccCellConverterAlgCfg(self.flags,
90 name=f"RDOtoTracccCellConverterAlg_{self.signature}",
91 RoIs=self.rois,
92 isRoI_Seeded= (False if self.signature == "fullScan" else True),
93 TracccCells = "TracccCellCollection",
94 ))
95
96 # setup traccc clusterization
97 from ActsGPUDataPreparation.ActsGPUDataPreparationConfig import DeviceClusterizationAlgCfg
98 ca.merge(DeviceClusterizationAlgCfg(self.flags,
99 name=f"DeviceClusterizationAlg_{self.signature}",
100 InputTracccCells="TracccCellCollection",
101 OutputTracccMeasurements="TracccMeasurementCollection",
102 OutputTracccClusters="TracccClusterCollection",
103 RetrieveClusterCells=self.flags.Tracking.doTruth,
104 previousExtension=None,
105 ))
106 clustersLocation = DataLocation.DEVICE
107
108 # --- Seeding ---
109 if self.flags.Acts.Device.doSeeding:
110
111 if clustersLocation is not DataLocation.DEVICE:
112 raise ValueError("Device seeding requires device clusterization "
113 "(self.flags.Acts.Device.doClusterization=True): it reads the "
114 "traccc measurement collection straight out of device memory "
115 "and there is currently no host->device measurement converter.")
116
117 # Pixel space point formation on device
118 from ActsGPUDataPreparation.ActsGPUDataPreparationConfig import DeviceSPFormationAlgCfg
119 ca.merge(DeviceSPFormationAlgCfg(self.flags,
120 name=f"DeviceSPFormationAlg_{self.signature}",
121 InputTracccMeasurements="TracccMeasurementCollection",
122 OutputTracccPixelSpacepoints="TracccPixelSpacepointCollection",
123 ))
124
125 from ActsConfig.ActsConfigFlags import SeedingStrategy
126
127 if self.flags.Acts.Device.seedingStrategy is SeedingStrategy.Gbts:
128 from ActsGPUPatternRecognition.ActsGPUPatternRecognitionConfig import DeviceGBTSSeedingAlgCfg
129 ca.merge(DeviceGBTSSeedingAlgCfg(self.flags,
130 name=f"DeviceGBTSSeedingAlg_{self.signature}",
131 InputTracccPixelSpacepoints="TracccPixelSpacepointCollection",
132 InputTracccMeasurements="TracccMeasurementCollection",
133 OutputTracccPixelSeeds="TracccPixelSeedCollection"))
134 else:
135 from ActsGPUPatternRecognition.ActsGPUPatternRecognitionConfig import DeviceTripletSeedingAlgCfg
136 ca.merge(DeviceTripletSeedingAlgCfg(self.flags,
137 name=f"DeviceTripletSeedingAlg_{self.signature}",
138 InputTracccPixelSpacepoints="TracccPixelSpacepointCollection",
139 OutputTracccPixelSeeds="TracccPixelSeedCollection"))
140
141 seedsLocation = DataLocation.DEVICE
142
143 else:
144
145 # If clusterization was on device, need to copy them to host first
146 # and schedule space point formation
147 if clustersLocation is DataLocation.DEVICE:
148 from ActsGPUEventCnv.ActsGPUEventCnvConfig import TracccMeasurementConverterAlgCfg
149 ca.merge(TracccMeasurementConverterAlgCfg(self.flags,
150 name=f"TracccMeasurementConverterAlg_{self.signature}",
151 InputMeasurements="TracccMeasurementCollection",
152 InputClusters="TracccClusterCollection",
153 InputCells="TracccCellCollection",
154 ConvertClustersWithCells = self.flags.Tracking.doTruth,
155 OutputPixelSpacePoints="ITkPixelSpacePoints",
156 OutputPixelClusters="ITkPixelClusters",
157 OutputStripClusters="ITkStripClusters"
158 ))
159
160 from ActsConfig.ActsSpacePointFormationConfig import ActsStripSpacePointFormationAlgCfg
161 ca.merge(ActsStripSpacePointFormationAlgCfg(self.flags,
162 name=f"StripSpacePointFormationAlg_{self.signature}",
163 StripClusters="ITkStripClusters",
164 StripSpacePoints="ITkStripSpacePoints",
165 StripOverlapSpacePoints="ITkStripOverlapSpacePoints"))
166
167 clustersLocation = DataLocation.HOST
168
169 # Truth (as configured in ITkActsDataPreparationCfg)
170 # this truth must only be done if you do PRD and SpacePointformation
171 # If you only do the latter (== running on ESD) then the needed input (simdata)
172 # is not in ESD but the resulting truth (clustertruth) is already there ...
173 if self.flags.Tracking.doTruth:
174 from ActsConfig.ActsTruthConfig import ActsTruthAssociationAlgCfg, ActsTruthParticleHitCountAlgCfg
175 ca.merge(ActsTruthAssociationAlgCfg(self.flags))
176 ca.merge(ActsTruthParticleHitCountAlgCfg(self.flags))
177
178 from ActsConfig.ActsSeedingConfig import ActsSeedingCfg
179 ca.merge(ActsSeedingCfg(self.flags))
180 seedsLocation = DataLocation.HOST
181
182
183 # --- Track Reconstruction ---
184 if self.flags.Acts.Device.doTrackReconstruction:
185
186 if clustersLocation is not DataLocation.DEVICE or seedsLocation is not DataLocation.DEVICE:
187 raise ValueError("Device track reconstruction requires device clusterization "
188 "(flags.Acts.Device.doClusterization=True) and device seeding "
189 "(flags.Acts.Device.doSeeding=True): it reads the traccc measurement "
190 "and seed collections straight out of device memory and there is "
191 "currently no host->device converter for these yet.")
192
193
194 from ActsGPUMagField.ActsGPUMagFieldConfig import JSONDeviceMagFieldProviderSvcCfg
195 ca.merge(JSONDeviceMagFieldProviderSvcCfg(self.flags,
196 DeviceMagFieldObjectName="TracccMagneticField",
197 HostMagFieldObjectName="TracccHostMagField",
198 ))
199
200 from ActsGPUPatternRecognition.ActsGPUPatternRecognitionConfig import DeviceTrkParamEstimationAlgCfg, DeviceTrackFindingAlgCfg
201 ca.merge(DeviceTrkParamEstimationAlgCfg(self.flags,
202 name=f"DeviceTrkParamEstimationAlg_{self.signature}",
203 InputTracccSpacepoints="TracccPixelSpacepointCollection",
204 InputTracccMeasurements="TracccMeasurementCollection",
205 InputTracccSeeds="TracccPixelSeedCollection",
206 InputTracccMagField="TracccMagneticField",
207 OutputTracccTrackParameters="TracccTrackParameterCollection",
208 ))
209
210 ca.merge(DeviceTrackFindingAlgCfg(self.flags,
211 name=f"DeviceTrackFindingAlg_{self.signature}",
212 InputTracccMeasurements="TracccMeasurementCollection",
213 InputTracccMagField="TracccMagneticField",
214 InputTracccTrackParameters="TracccTrackParameterCollection",
215 InputTracccDetectorGeometry="TracccDeviceDetectorGeometry",
216 OutputTracccTracks="TracccTrackCollection",
217 ))
218 from ActsGPUEventCnv.ActsGPUEventCnvConfig import TracccMeasurementConverterAlgCfg
219 if clustersLocation is not DataLocation.DEVICE:
220 ca.merge(TracccMeasurementConverterAlgCfg(self.flags,
221 name=f"TracccMeasurementConverterAlg_{self.signature}",
222 InputMeasurements="TracccMeasurementCollection",
223 InputClusters="TracccClusterCollection",
224 InputCells="TracccCellCollection",
225 ConvertClustersWithCells = self.flags.Tracking.doTruth,
226 OutputPixelClusters="ITkPixelClusters",
227 OutputPixelSpacePoints="ITkPixelSpacePoints",
228 OutputMeasToPixelSP="ITkTracccMeasToPixelSP",
229 OutputMeasToStripCl="ITkTracccMeasToStripCl",
230 OutputStripClusters="ITkStripClusters",
231 GeoIdMapping="TracccGeoIdMapping",
232 ))
233
234 from ActsGPUEventCnv.ActsGPUEventCnvConfig import TracccTrackConverterAlgCfg
235 if clustersLocation is DataLocation.DEVICE:
236 ca.merge(TracccMeasurementConverterAlgCfg(self.flags,
237 name=f"TracccMeasurementConverterAlg_{self.signature}",
238 InputMeasurements="TracccMeasurementCollection",
239 InputClusters="TracccClusterCollection",
240 InputCells="TracccCellCollection",
241 ConvertClustersWithCells = self.flags.Tracking.doTruth,
242 OutputPixelClusters="ITkPixelClusters",
243 OutputPixelSpacePoints="ITkPixelSpacePoints",
244 OutputMeasToPixelSP="ITkTracccMeasToPixelSP",
245 OutputMeasToStripCl="ITkTracccMeasToStripCl",
246 OutputStripClusters="ITkStripClusters"
247 ))
248
249 # Strip clusters were just produced above, but nothing forms strip
250 # space points on the device path — mirror the host-side flow
251 if self.flags.Tracking.ActiveConfig.useITkStripSeeding or (self.flags.Acts.SpacePoints.doStrip and not self.flags.Tracking.ActiveConfig.isSecondaryPass):
252 from ActsConfig.ActsSpacePointFormationConfig import ActsStripSpacePointFormationAlgCfg
253 ca.merge(ActsStripSpacePointFormationAlgCfg(self.flags,
254 name=f"StripSpacePointFormationAlg_{self.signature}",
255 StripClusters="ITkStripClusters",
256 StripSpacePoints="ITkStripSpacePoints",
257 StripOverlapSpacePoints="ITkStripOverlapSpacePoints"))
258
259 from ActsConfig.ActsGeometryConfig import ActsTrackingGeometrySvcCfg
260 ca.merge(ActsTrackingGeometrySvcCfg(self.flags))
261
262 ca.merge(TracccTrackConverterAlgCfg(self.flags,
263 name=f"TracccTrackConverterAlg_{self.signature}",
264 InputPixelClusters="ITkPixelClusters",
265 InputStripClusters="ITkStripClusters",
266 InputMeasToPixelSP="ITkTracccMeasToPixelSP",
267 InputMeasToStripCl="ITkTracccMeasToStripCl",
268 InputTracks="TracccTrackCollection",
269 OutputTracks=self.flags.Tracking.ActiveConfig.trkTracks_FTF,
270 ))
271
272 # Convert ActsTrk::TrackContainer to xAOD::TrackParticleContainer
273 from ActsConfig.ActsEventCnvConfig import ActsTrackToTrackParticleCnvAlgCfg
274 ca.merge(ActsTrackToTrackParticleCnvAlgCfg(self.flags, name=f"ActsTracccTrackToTrackParticleCnvAlgSeqFTF_{self.signature}",
275 ACTSTracksLocation=[self.flags.Tracking.ActiveConfig.trkTracks_FTF],
276 TrackParticlesOutKey=self.flags.Tracking.ActiveConfig.tracks_FTF))
277
278
279 #-----flags.Acts.Device.doTrackReconstruction =False ---
280 else:
281
282 # If clusterization was on device, need to copy the measurements to host first
283 if clustersLocation is DataLocation.DEVICE:
284 from ActsGPUEventCnv.ActsGPUEventCnvConfig import TracccMeasurementConverterAlgCfg
285 ca.merge(TracccMeasurementConverterAlgCfg(self.flags,
286 InputMeasurements="TracccMeasurementCollection",
287 InputClusters="TracccClusterCollection",
288 InputCells="TracccCellCollection",
289 ConvertClustersWithCells = self.flags.Tracking.doTruth,
290 OutputPixelClusters="ITkPixelClusters",
291 OutputPixelSpacePoints="ITkPixelSpacePoints",
292 OutputMeasToPixelSP="ITkTracccMeasToPixelSP",
293 OutputMeasToStripCl="ITkTracccMeasToStripCl",
294 OutputStripClusters="ITkStripClusters"
295 ))
296 from ActsConfig.ActsSpacePointFormationConfig import ActsStripSpacePointFormationAlgCfg
297 ca.merge(ActsStripSpacePointFormationAlgCfg(self.flags,
298 name=f"{self.flags.Tracking.ActiveConfig.extension}StripSpacePointFormationAlg",
299 StripClusters="ITkStripClusters",
300 StripSpacePoints="ITkStripSpacePoints",
301 StripOverlapSpacePoints="ITkStripOverlapSpacePoints"))
302 clustersLocation = DataLocation.HOST
303
304 if seedsLocation is DataLocation.DEVICE:
305 from ActsGPUEventCnv.ActsGPUEventCnvConfig import TracccSeedConverterAlgCfg
306
307 ca.merge(TracccSeedConverterAlgCfg(self.flags,
308 name="TracccSeedConverterAlg",
309 InputSpacepointsDevice="TracccPixelSpacepointCollection",
310 InputSpacepoints="ITkPixelSpacePoints",
311 InputMeasToPixelSP="ITkTracccMeasToPixelSP",
312 InputSeeds="TracccPixelSeedCollection",
313 OutputSeeds=f'{self.flags.Tracking.ActiveConfig.extension}PixelSeeds'))
314 seedsLocation = DataLocation.HOST
315
316 # CKF
317 from ActsConfig.ActsTrackFindingConfig import ActsTrackFindingCfg
318 ca.merge(ActsTrackFindingCfg(self.flags))
319
320 # Ambiguity Resolution
321 if self.flags.Acts.doAmbiguityResolution:
322 from ActsConfig.ActsTrackFindingConfig import ActsAmbiguityResolutionCfg
323 ca.merge(ActsAmbiguityResolutionCfg(self.flags))
324
325 return ca
326
327 def g200_precision(self) -> ComponentAccumulator:
328 ca = ComponentAccumulator()
329 if self.inView:
330
331 verifier = CompFactory.AthViews.ViewDataVerifier( name = 'VDVInDetPrecision'+self.signature,
332 DataObjects= {('InDet::SiDetectorElementStatus', 'StoreGateSvc+ITkPixelDetectorElementStatus'),
333 ('InDet::SiDetectorElementStatus', 'StoreGateSvc+ITkStripDetectorElementStatus'),
334 ('xAOD::StripClusterContainer' , 'StoreGateSvc+ITkStripClusters' ),
335 ('xAOD::PixelClusterContainer' , 'StoreGateSvc+ITkPixelClusters' ),
336 ('ActsTrk::GeometryContext' , 'StoreGateSvc+ActsAlignment' ),
337 })
338
339 ca.addEventAlgo(verifier)
340
341 # Convert Acts tracks to xAOD TrackParticles for ID trigger, since there is no "precision tracking" so far
342 from ActsConfig.ActsEventCnvConfig import ActsTrackToTrackParticleCnvAlgCfg
343 ca.merge(ActsTrackToTrackParticleCnvAlgCfg(self.flags, name=f"ActsTracccTrackToTrackParticleCnvAlgSeqIDtrig{self.signature}",
344 ACTSTracksLocation=[self.flags.Tracking.ActiveConfig.trkTracks_FTF],
345 TrackParticlesOutKey=self.flags.Tracking.ActiveConfig.tracks_IDTrig) )
346
347 return ca
348
349
350 def f100(self) -> ComponentAccumulator:
351 import EFTrackConfig.F100Config as F100Config
352 from TrigInDetConfig.ActsTrigSequence import ActsTrigSequence
353
354 ca = ComponentAccumulator()
355
356 seq = ActsTrigSequence(self.flags, self.signature, self.rois, self.inView)
357
358 ca.merge(F100Config.dataPreparation(self.flags, self.signature, self.inView, self.rois))
359 ca.merge(seq.fastTrackFinder())
360
361 return ca
362
363 def f100_precision(self) -> ComponentAccumulator:
364 from TrigInDetConfig.ActsTrigSequence import ActsTrigSequence
365
366 ca = ComponentAccumulator()
367
368 seq = ActsTrigSequence(self.flags, self.signature, self.rois, self.inView)
369
370 #this does not require new data preparation of its own
371 ca.merge(seq.sequenceAfterPattern())
372
373 return ca
374
375 def viewDataVerifierGPU(self, viewVerifier='IDViewDataVerifier', extra_data_objects=None) -> ComponentAccumulator:
376
377 from AthenaConfiguration.ComponentFactory import CompFactory
378 acc = ComponentAccumulator()
379
380 viewDataVerifier = CompFactory.AthViews.ViewDataVerifier("TrackingRDOViewDataVerifier")
381
382 # Base data objects that are always needed
383 base_data_objects = [
384 # Add Acts geometry context required by Acts-based algorithms
385 ('ActsGeometryContext', 'StoreGateSvc+ActsAlignment'),
386 ('ActsTrk::GeometryContext' , 'StoreGateSvc+ActsAlignment'),
387 # RDO containers
388 ('PixelRDO_Container', 'StoreGateSvc+ITkPixelRDOs'),
389 ('SCT_RDO_Container', 'StoreGateSvc+ITkStripRDOs'),
390 ('PixelRDO_Cache', 'PixRDOCache'),
391 ('SCT_RDO_Cache', 'SctRDOCache'),
392 ('InDet::SiDetectorElementStatus', 'StoreGateSvc+ITkPixelDetectorElementStatus'),
393 ('InDet::SiDetectorElementStatus', 'StoreGateSvc+ITkStripDetectorElementStatus'),
394 ('TrigRoiDescriptorCollection', str(self.rois)),
395 ('xAOD::EventInfo', 'StoreGateSvc+EventInfo'),
396 ('xAOD::EventInfo', 'EventInfo'),
397 ('TagInfo', 'DetectorStore+ProcessingTags' ),
398 ('xAOD::TruthEventContainer', 'StoreGateSvc+TruthEvents'),
399 ('xAOD::TruthParticleContainer' , 'StoreGateSvc+TruthParticles' ),
400 ('McEventCollection' , 'StoreGateSvc+TruthEvent' ),
401 ]
402
403 # Add SGInputLoader
404 if self.flags.Input.isMC:
405 self.log.info(f"Added SGInputLoader for view '{self.inView}' (MC data)")
406 from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
407 sgil_load = [('PixelRDO_Container', 'StoreGateSvc+ITkPixelRDOs'),
408 ('SCT_RDO_Container', 'StoreGateSvc+ITkStripRDOs'),
409 ('InDetSimDataCollection', 'ITkPixelSDO_Map'),
410 ('InDetSimDataCollection' , 'StoreGateSvc+ITkStripSDO_Map'),
411 ( 'McEventCollection' , 'StoreGateSvc+TruthEvent' )]
412 acc.merge(SGInputLoaderCfg(self.flags, Load=sgil_load))
413
414 if doTruth:
415 base_data_objects.extend([
416 ('InDetSimDataCollection', 'StoreGateSvc+ITkPixelSDO_Map'),
417 ('InDetSimDataCollection', 'StoreGateSvc+ITkStripSDO_Map'),
418 ])
419
420 if extra_data_objects:
421 base_data_objects.extend(extra_data_objects)
422
423 viewDataVerifier.DataObjects = base_data_objects
424 viewDataVerifier.name= viewVerifier + "_" + self.signature
425 acc.addEventAlgo(viewDataVerifier, primary=True)
426
427 return acc
428
429 def trackFinding(self) -> ComponentAccumulator:
430 ca = ComponentAccumulator()
431
432 pipeline = str(self.flags.Trigger.EFTrackPipeline).upper()
433
434 match pipeline:
435 case "F100":
436 ca.merge(self.f100())
437 pass
438 case "G200":
439 ca.merge(self.g200())
440 pass
441 case _:
442 pass
443
444
445 return ca
446
447 def sequenceAfterPattern(self, rois="") -> ComponentAccumulator:
448 """ this method is used by the menu to generate precision tracking step.
449 for AccelTrackTrigSequence it should just make tracks from pattern available again
450 """
451 ca = ComponentAccumulator()
452
453 pipeline = str(self.flags.Trigger.EFTrackPipeline).upper()
454
455 match pipeline:
456 case "F100":
457 ca.merge(self.f100_precision())
458 pass
459 case "G200":
460 ca.merge(self.g200_precision())
461 pass
462 case _:
463 pass
464
465 return ca
466
467 def viewDataVerifierFPGA(self, viewVerifier='IDViewDataVerifier') -> ComponentAccumulator:
468
469 acc = ComponentAccumulator()
470
471 ViewDataVerifier = CompFactory.AthViews.ViewDataVerifier(
472 name = viewVerifier + "_" + self.signature,
473 DataObjects= {('xAOD::EventInfo', 'StoreGateSvc+EventInfo'),
474 ('PixelRDO_Cache', 'PixRDOCache'),
475 ('SCT_RDO_Cache', 'SctRDOCache'),
476 #enable later when BS ready
477 #( 'IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.PixBSErrCacheKey ),
478 #( 'IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.SCTBSErrCacheKey ),
479 #( 'IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.SCTFlaggedCondCacheKey ),
480 ('xAOD::EventInfo', 'EventInfo'),
481 ('ActsTrk::GeometryContext' , 'StoreGateSvc+ActsAlignment' ),
482 ('TrigRoiDescriptorCollection', str(self.rois)),
483 ( 'TagInfo' , 'DetectorStore+ProcessingTags' )} )
484
485 if self.flags.Input.isMC:
486 ViewDataVerifier.DataObjects |= {( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
487 ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
488 ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map'),
489 ('ActsTrk::GeometryContext' , 'StoreGateSvc+ActsAlignment' )}
490 from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
491 sgil_load = [( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
492 ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
493 ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map'),]
494 acc.merge(SGInputLoaderCfg(self.flags, Load=sgil_load))
495
496 ViewDataVerifier.DataObjects |= {
497 ('InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkPixelDetectorElementStatus' ),
498 ('InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkStripDetectorElementStatus' ),
499 }
500
501 acc.addEventAlgo(ViewDataVerifier)
502 return acc
503
int upper(int c)
ComponentAccumulator sequence(self, str recoType)
__init__(self, AthConfigFlags flags, str signature, str rois, str inView)
ComponentAccumulator viewDataVerifierGPU(self, viewVerifier='IDViewDataVerifier', extra_data_objects=None)
ComponentAccumulator viewDataVerifierFPGA(self, viewVerifier='IDViewDataVerifier')