3 from TrigInDetConfig.InnerTrackerTrigSequence
import InnerTrackerTrigSequence
4 from AthenaConfiguration.AthConfigFlags
import AthConfigFlags
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaCommon.Logging
import logging
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}")
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' )} )
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')]
47 acc.addEventAlgo(ViewDataVerifier)
52 signature = self.flags.Tracking.ActiveConfig.input_name
56 self.
log.
info(f
"DataPrep signature: {self.signature} rois: {self.rois} inview: {self.inView}")
59 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
60 loadRDOs = [(
'PixelRDO_Container' ,
'StoreGateSvc+ITkPixelRDOs' ),
61 (
'SCT_RDO_Container' ,
'StoreGateSvc+ITkStripRDOs' ),
62 (
'InDetSimDataCollection' ,
'ITkPixelSDO_Map') ]
66 from InDetConfig.InDetPrepRawDataFormationConfig
import ITkTrigPixelClusterizationCfg, ITkTrigStripClusterizationCfg
69 from InDetConfig.TrackRecoConfig
import SiDetectorElementStatusCfg
78 (
'InDet::PixelGangedClusterAmbiguities' ,
'ITkPixelClusterAmbiguitiesMap'),
79 (
'InDetSimDataCollection' ,
'ITkPixelSDO_Map')
81 from TrigInDetConfig.TrigInDetConfig
import InDetExtraDataObjectsFromDataPrep
85 CompFactory.AthViews.ViewDataVerifier(
86 name = viewVerifier +
"_" + self.signature,
87 DataObjects = dataObjects
89 from TrigInDetConfig.TrigInDetConfig
import InDetExtraDataObjectsFromDataPrep
91 acc.addEventAlgo(ViewDataVerifier)
97 signature = self.flags.Tracking.ActiveConfig.input_name
100 from InDetConfig.SiSpacePointFormationConfig
import ITkTrigSiTrackerSpacePointFinderCfg
105 extraFlags : AthConfigFlags =
None,
106 inputTracksName : str =
None) -> ComponentAccumulator:
107 acc = self.fastTrackFinderBase(extraFlags, inputTracksName)
108 signature = self.flags.Tracking.ActiveConfig.input_name
110 if not self.flags.Tracking.ActiveConfig.doZFinderOnly:
112 from xAODTrackingCnv.xAODTrackingCnvConfig
import ITkTrackParticleCnvAlgCfg
114 name =
"ITkTrigTrackParticleCnvAlg"+signature,
116 xAODTrackParticlesFromTracksContainerName = self.flags.Tracking.ActiveConfig.tracks_FTF))
128 from TrkConfig.TrkAmbiguitySolverConfig
import ITkTrkAmbiguityScoreCfg
132 name =
"TrkAmbiguityScore_",
137 from TrkConfig.TrkAmbiguitySolverConfig
import ITkTrkAmbiguitySolverCfg
141 name =
"TrkAmbiguitySolver_",
142 ResolvedTrackCollectionKey=self.flags.Tracking.ActiveConfig.trkTracks_IDTrig+
"_Amb"
146 self.
lastTrkCollection = self.flags.Tracking.ActiveConfig.trkTracks_IDTrig+
"_Amb"
153 from xAODTrackingCnv.xAODTrackingCnvConfig
import ITkTrackParticleCnvAlgCfg
157 name = prefix+
'xAODParticleCreatorAlg'+self.flags.Tracking.ActiveConfig.input_name+
'_IDTrig',
159 xAODTrackParticlesFromTracksContainerName = self.flags.Tracking.ActiveConfig.tracks_IDTrig,
167 from InDetConfig.SiSPSeededTrackFinderConfig
import TrigITkSiSPSeededTrackFinderCfg
170 ca.merge(TrigITkSiSPSeededTrackFinderCfg(self.flags,
171 name =
'EFsiSPSeededTrackFinder'+self.flags.Tracking.ActiveConfig.input_name,