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(
"ActsTrigSequence")
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 (
'PixelRDO_Cache',
'PixRDOCache'),
25 (
'SCT_RDO_Cache',
'SctRDOCache'),
30 (
'ActsTrk::Cache::Handles<xAOD::SpacePoint>::IDCBackend' ,
'StoreGateSvc+ActsPixelSpacePointCache_Back' ),
31 (
'ActsTrk::Cache::Handles<xAOD::SpacePoint>::IDCBackend',
'StoreGateSvc+ActsStripSpacePointCache_Back'),
32 (
'ActsTrk::Cache::Handles<xAOD::SpacePoint>::IDCBackend',
'StoreGateSvc+ActsStripOverlapSpacePointCache_Back'),
33 (
'ActsTrk::Cache::Handles<xAOD::PixelCluster>::IDCBackend' ,
'StoreGateSvc+ActsPixelClusterCache_Back' ),
34 (
'ActsTrk::Cache::Handles<xAOD::StripCluster>::IDCBackend' ,
'StoreGateSvc+ActsStripClusterCache_Back' ),
35 (
'xAOD::EventInfo',
'EventInfo'),
36 (
'ActsGeometryContext' ,
'StoreGateSvc+ActsAlignment' ),
37 (
'TrigRoiDescriptorCollection',
str(self.rois)),
38 (
'TagInfo' ,
'DetectorStore+ProcessingTags' )} )
40 if self.flags.Input.isMC:
41 ViewDataVerifier.DataObjects |= {(
'PixelRDO_Container' ,
'StoreGateSvc+ITkPixelRDOs' ),
42 (
'SCT_RDO_Container' ,
'StoreGateSvc+ITkStripRDOs' ),
43 (
'InDetSimDataCollection' ,
'ITkPixelSDO_Map'),
44 (
'ActsTrk::Cache::Handles<xAOD::SpacePoint>::IDCBackend' ,
'StoreGateSvc+ActsPixelSpacePointCache_Back' ),
45 (
'ActsTrk::Cache::Handles<xAOD::SpacePoint>::IDCBackend',
'StoreGateSvc+ActsStripSpacePointCache_Back'),
46 (
'ActsTrk::Cache::Handles<xAOD::SpacePoint>::IDCBackend',
'StoreGateSvc+ActsStripOverlapSpacePointCache_Back'),
47 (
'ActsTrk::Cache::Handles<xAOD::PixelCluster>::IDCBackend' ,
'StoreGateSvc+ActsPixelClusterCache_Back' ),
48 (
'ActsTrk::Cache::Handles<xAOD::StripCluster>::IDCBackend' ,
'StoreGateSvc+ActsStripClusterCache_Back' ),
49 (
'ActsGeometryContext' ,
'StoreGateSvc+ActsAlignment' )}
50 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
51 sgil_load = [(
'PixelRDO_Container' ,
'StoreGateSvc+ITkPixelRDOs' ),
52 (
'SCT_RDO_Container' ,
'StoreGateSvc+ITkStripRDOs' ),
53 (
'InDetSimDataCollection' ,
'ITkPixelSDO_Map'),]
56 acc.addEventAlgo(ViewDataVerifier)
62 self.
log.
info(f
"DataPrep signature: {self.signature} rois: {self.rois} inview: {self.inView}")
65 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
66 loadRDOs = [(
'PixelRDO_Container' ,
'StoreGateSvc+ITkPixelRDOs' ),
67 (
'SCT_RDO_Container' ,
'StoreGateSvc+ITkStripRDOs' ),
68 (
'InDetSimDataCollection' ,
'ITkPixelSDO_Map') ]
72 from ActsConfig.ActsClusterizationConfig
import ActsPixelClusterizationAlgCfg,ActsStripClusterizationAlgCfg,ActsPixelClusterPreparationAlgCfg,ActsStripClusterPreparationAlgCfg
74 acc.merge(
ActsPixelClusterizationAlgCfg(self.flags, name=
"ActsPixelClusterizationAlg_"+self.signature,useCache=
True, RoIs=self.rois,ClustersKey=
"ITkPixelClusters_"+self.signature))
75 acc.merge(
ActsStripClusterizationAlgCfg(self.flags, name=
"ActsStripClusterizationAlg_"+self.signature,useCache=
True, RoIs=self.rois,ClustersKey=
"ITkStripClusters_"+self.signature))
77 if self.flags.Acts.useCache:
78 acc.merge(
ActsPixelClusterPreparationAlgCfg(self.flags,
"ActsPixelClusterViewFiller_"+self.signature,
True,OutputCollection=
"ITkPixelClusters_Cached", InputIDC=
"ActsPixelClustersCache", RoIs=self.rois))
79 acc.merge(
ActsStripClusterPreparationAlgCfg(self.flags,
"ActsStripClusterViewFiller_"+self.signature,
True,OutputCollection=
"ITkStripClusters_Cached", InputIDC=
"ActsStripClustersCache", RoIs=self.rois))
88 CompFactory.AthViews.ViewDataVerifier(
89 name = viewVerifier +
"_" + self.signature,
91 (
'InDetSimDataCollection' ,
'ITkPixelSDO_Map'),
92 (
'ActsGeometryContext' ,
'StoreGateSvc+ActsAlignment' )
96 acc.addEventAlgo(ViewDataVerifier)
103 from ActsConfig.ActsSpacePointFormationConfig
import ActsPixelSpacePointFormationAlgCfg,ActsPixelSpacePointPreparationAlgCfg
105 acc.merge(
ActsPixelSpacePointFormationAlgCfg(self.flags,name=
"PixelSPFormation_"+self.signature,useCache=self.flags.Acts.useCache, PixelClusters =
"ITkPixelClusters_Cached" if self.flags.Acts.useCache
else "ITkPixelClusters_"+self.signature, PixelSpacePoints =
"ITkPixelSpacepoints_"+self.signature))
107 if self.flags.Acts.useCache:
108 acc.merge(
ActsPixelSpacePointPreparationAlgCfg(self.flags,name=
"PixelSPVF_"+self.signature,useCache=
True, RoIs=self.rois, OutputCollection=
"ITkPixelSpacePoints_Cached", InputIDC=
"ActsPixelSpacePointCache"))
113 extraFlags : AthConfigFlags =
None,
114 inputTracksName : str =
None) -> ComponentAccumulator:
117 from ActsConfig.ActsSeedingConfig
import ActsPixelSeedingAlgCfg
119 acc.merge(
ActsPixelSeedingAlgCfg(self.flags, name=
"ActsPixelSeedingAlg_"+self.signature, InputSpacePoints=[
'ITkPixelSpacePoints_Cached']
if self.flags.Acts.useCache
else [
'ITkPixelSpacepoints_'+self.signature], useFastTracking=
True))
121 from ActsConfig.ActsTrackFindingConfig
import ActsMainTrackFindingAlgCfg, ActsTrackToTrackParticleCnvAlgCfg
123 acc.merge(
ActsMainTrackFindingAlgCfg(self.flags, name=
"ActsTrackFindingAlg_"+self.signature, ACTSTracksLocation=self.flags.Tracking.ActiveConfig.trkTracks_FTF,SeedLabels=[
"PPP"],SeedContainerKeys=[
"ActsPixelSeeds"],UncalibratedMeasurementContainerKeys=[
"ITkPixelClusters_Cached" if self.flags.Acts.useCache
else "ITkPixelClusters_"+self.signature ,
"ITkStripClusters_Cached" if self.flags.Acts.useCache
else "ITkStripClusters_"+self.signature],EstimatedTrackParametersKeys=[
"ActsPixelEstimatedTrackParams"]))
124 acc.merge(
ActsTrackToTrackParticleCnvAlgCfg(self.flags,name=
"ActsTrackParticleCreator_"+self.signature, ACTSTracksLocation=[self.flags.Tracking.ActiveConfig.trkTracks_FTF], TrackParticlesOutKey=self.flags.Tracking.ActiveConfig.tracks_FTF))
134 from ActsConfig.ActsTrackFindingConfig
import ActsMainAmbiguityResolutionAlgCfg
136 acc.merge(
ActsMainAmbiguityResolutionAlgCfg(self.flags,
"ActsAmbiguityResolutionAlg_"+self.signature, TracksLocation=self.flags.Tracking.ActiveConfig.trkTracks_FTF, ResolvedTracksLocation=self.flags.Tracking.ActiveConfig.trkTracks_IDTrig))
144 from ActsConfig.ActsTrackFindingConfig
import ActsTrackToTrackParticleCnvAlgCfg
145 acc.merge(
ActsTrackToTrackParticleCnvAlgCfg(self.flags,
"ActsTrackParticleCreator_Ambi_"+self.signature, ACTSTracksLocation=[self.flags.Tracking.ActiveConfig.trkTracks_IDTrig], TrackParticlesOutKey=self.flags.Tracking.ActiveConfig.tracks_IDTrig))