Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
python.ActsTrigSequence.ActsTrigSequence Class Reference
Inheritance diagram for python.ActsTrigSequence.ActsTrigSequence:
Collaboration diagram for python.ActsTrigSequence.ActsTrigSequence:

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='ActsViewDataVerifierForAmbi')
 
ComponentAccumulator spacePointFormation (self)
 
ComponentAccumulator fastTrackFinder (self, AthConfigFlags extraFlags=None, str inputTracksName=None)
 
ComponentAccumulator ambiguitySolver (self)
 
ComponentAccumulator xAODParticleCreation (self)
 

Public Attributes

 log
 

Detailed Description

Definition at line 10 of file ActsTrigSequence.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 11 of file ActsTrigSequence.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("ActsTrigSequence")
14  self.log.info(f"signature: {self.signature} rois: {self.rois} inview: {self.inView}")
15 
16 

Member Function Documentation

◆ ambiguitySolver()

ComponentAccumulator python.ActsTrigSequence.ActsTrigSequence.ambiguitySolver (   self)

Definition at line 153 of file ActsTrigSequence.py.

153  def ambiguitySolver(self) -> ComponentAccumulator:
154  acc = ComponentAccumulator()
155 
156  if self.inView:
157  acc.merge(self.viewDataVerifierAfterPattern())
158 
159  from ActsConfig.ActsTrackFindingConfig import ActsMainAmbiguityResolutionAlgCfg
160 
161  acc.merge(ActsMainAmbiguityResolutionAlgCfg(self.flags, "ActsAmbiguityResolutionAlg_"+self.signature, TracksLocation=self.flags.Tracking.ActiveConfig.trkTracks_FTF, ResolvedTracksLocation=self.flags.Tracking.ActiveConfig.trkTracks_IDTrig))
162 
163 
164  return acc
165 

◆ dataPreparation()

ComponentAccumulator python.ActsTrigSequence.ActsTrigSequence.dataPreparation (   self)

Definition at line 64 of file ActsTrigSequence.py.

64  def dataPreparation(self) -> ComponentAccumulator:
65  acc = ComponentAccumulator()
66 
67  self.log.info(f"DataPrep signature: {self.signature} rois: {self.rois} inview: {self.inView}")
68 
69  if not self.inView:
70  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
71  loadRDOs = [( 'PixelRDO_Container' , 'StoreGateSvc+ITkPixelRDOs' ),
72  ( 'SCT_RDO_Container' , 'StoreGateSvc+ITkStripRDOs' ),
73  ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map') ]
74  acc.merge(SGInputLoaderCfg(self.flags, Load=loadRDOs))
75 
76  #Clusterisation
77  from ActsConfig.ActsClusterizationConfig import ActsPixelClusterizationAlgCfg,ActsStripClusterizationAlgCfg,ActsPixelClusterPreparationAlgCfg,ActsStripClusterPreparationAlgCfg
78 
79  acc.merge(ActsPixelClusterizationAlgCfg(self.flags,
80  name="ActsPixelClusterizationAlg_"+self.signature,
81  useCache=True,
82  RoIs=self.rois,
83  ClustersKey="ITkPixelClusters_"+self.signature))
84  acc.merge(ActsStripClusterizationAlgCfg(self.flags,
85  name="ActsStripClusterizationAlg_"+self.signature,
86  useCache=True,
87  RoIs=self.rois,
88  ClustersKey="ITkStripClusters_"+self.signature))
89 
90 
91  if self.flags.Acts.useCache:
92  acc.merge(ActsPixelClusterPreparationAlgCfg(self.flags, "ActsPixelClusterViewFiller_"+self.signature, True,OutputCollection="ITkPixelClusters_Cached", InputIDC="ActsPixelClustersCache", RoIs=self.rois))
93  acc.merge(ActsStripClusterPreparationAlgCfg(self.flags, "ActsStripClusterViewFiller_"+self.signature, True,OutputCollection="ITkStripClusters_Cached", InputIDC="ActsStripClustersCache", RoIs=self.rois))
94 
95  return acc
96 

◆ fastTrackFinder()

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

Definition at line 128 of file ActsTrigSequence.py.

128  def fastTrackFinder(self,
129  extraFlags : AthConfigFlags = None,
130  inputTracksName : str = None) -> ComponentAccumulator:
131  acc = ComponentAccumulator()
132 
133  from ActsConfig.ActsSeedingConfig import ActsPixelSeedingAlgCfg
134 
135  acc.merge(ActsPixelSeedingAlgCfg(self.flags, name="ActsPixelSeedingAlg_"+self.signature, InputSpacePoints=['ITkPixelSpacePoints_Cached'] if self.flags.Acts.useCache else ['ITkPixelSpacepoints_'+self.signature], useFastTracking=True))
136 
137  from ActsConfig.ActsTrackFindingConfig import ActsMainTrackFindingAlgCfg, ActsTrackToTrackParticleCnvAlgCfg
138  measurements = ["ITkPixelClusters_Cached" if self.flags.Acts.useCache else "ITkPixelClusters_"+self.signature,
139  "ITkStripClusters_Cached" if self.flags.Acts.useCache else "ITkStripClusters_"+self.signature]
140 
141  trackfinding = ActsMainTrackFindingAlgCfg(self.flags,
142  name="ActsTrackFindingAlg_"+self.signature,
143  ACTSTracksLocation=self.flags.Tracking.ActiveConfig.trkTracks_FTF,
144  SeedLabels=["PPP"],SeedContainerKeys=["ActsPixelSeeds"],
145  DetectorElementsKeys=['ITkPixelDetectorElementCollection'],
146  UncalibratedMeasurementContainerKeys=measurements)
147 
148  acc.merge(trackfinding)
149  acc.merge(ActsTrackToTrackParticleCnvAlgCfg(self.flags,name="ActsTrackParticleCreator_"+self.signature, ACTSTracksLocation=[self.flags.Tracking.ActiveConfig.trkTracks_FTF], TrackParticlesOutKey=self.flags.Tracking.ActiveConfig.tracks_FTF))
150 
151  return acc
152 

◆ spacePointFormation()

ComponentAccumulator python.ActsTrigSequence.ActsTrigSequence.spacePointFormation (   self)

Definition at line 116 of file ActsTrigSequence.py.

116  def spacePointFormation(self) -> ComponentAccumulator:
117  acc = ComponentAccumulator()
118 
119  from ActsConfig.ActsSpacePointFormationConfig import ActsPixelSpacePointFormationAlgCfg,ActsPixelSpacePointPreparationAlgCfg
120 
121  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))
122 
123  if self.flags.Acts.useCache:
124  acc.merge(ActsPixelSpacePointPreparationAlgCfg(self.flags,name="PixelSPVF_"+self.signature,useCache=True, RoIs=self.rois, OutputCollection="ITkPixelSpacePoints_Cached", InputIDC="ActsPixelSpacePointCache"))
125 
126  return acc
127 

◆ viewDataVerifier()

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

Definition at line 17 of file ActsTrigSequence.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  ('PixelRDO_Cache', 'PixRDOCache'),
25  ('SCT_RDO_Cache', 'SctRDOCache'),
26  #enable later when BS ready
27  #( 'IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.PixBSErrCacheKey ),
28  #( 'IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.SCTBSErrCacheKey ),
29  #( 'IDCInDetBSErrContainer_Cache' , self.flags.Trigger.ITkTracking.SCTFlaggedCondCacheKey ),
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' )} )
39 
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'),]
54  acc.merge(SGInputLoaderCfg(self.flags, Load=sgil_load))
55 
56  ViewDataVerifier.DataObjects |= {
57  ('InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkPixelDetectorElementStatus' ),
58  ('InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkStripDetectorElementStatus' ),
59  }
60 
61  acc.addEventAlgo(ViewDataVerifier)
62  return acc
63 

◆ viewDataVerifierAfterPattern()

ComponentAccumulator python.ActsTrigSequence.ActsTrigSequence.viewDataVerifierAfterPattern (   self,
  viewVerifier = 'ActsViewDataVerifierForAmbi' 
)

Definition at line 97 of file ActsTrigSequence.py.

97  def viewDataVerifierAfterPattern(self, viewVerifier='ActsViewDataVerifierForAmbi') -> ComponentAccumulator:
98 
99  acc = ComponentAccumulator()
100 
101  ViewDataVerifier = \
102  CompFactory.AthViews.ViewDataVerifier(
103  name = viewVerifier + "_" + self.signature,
104  DataObjects = {
105  ( 'InDetSimDataCollection' , 'ITkPixelSDO_Map'),
106  ( 'ActsGeometryContext' , 'StoreGateSvc+ActsAlignment' ),
107  ( 'InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkPixelDetectorElementStatus' ),
108  ( 'InDet::SiDetectorElementStatus' , 'StoreGateSvc+ITkStripDetectorElementStatus' ),
109  }
110  )
111 
112  acc.addEventAlgo(ViewDataVerifier)
113  return acc
114 
115 

◆ xAODParticleCreation()

ComponentAccumulator python.ActsTrigSequence.ActsTrigSequence.xAODParticleCreation (   self)

Definition at line 166 of file ActsTrigSequence.py.

166  def xAODParticleCreation(self) -> ComponentAccumulator:
167 
168  acc = ComponentAccumulator()
169  from ActsConfig.ActsTrackFindingConfig import ActsTrackToTrackParticleCnvAlgCfg
170  acc.merge(ActsTrackToTrackParticleCnvAlgCfg(self.flags,"ActsTrackParticleCreator_Ambi_"+self.signature, ACTSTracksLocation=[self.flags.Tracking.ActiveConfig.trkTracks_IDTrig], TrackParticlesOutKey=self.flags.Tracking.ActiveConfig.tracks_IDTrig))
171 
172  return acc

Member Data Documentation

◆ log

python.ActsTrigSequence.ActsTrigSequence.log

Definition at line 13 of file ActsTrigSequence.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
ActsClusterizationConfig.ActsPixelClusterizationAlgCfg
ComponentAccumulator ActsPixelClusterizationAlgCfg(flags, str name='ActsPixelClusterizationAlg', *bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:109
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ActsSeedingConfig.ActsPixelSeedingAlgCfg
ComponentAccumulator ActsPixelSeedingAlgCfg(flags, str name='ActsPixelSeedingAlg', **kwargs)
Definition: ActsSeedingConfig.py:281
ActsClusterizationConfig.ActsStripClusterizationAlgCfg
ComponentAccumulator ActsStripClusterizationAlgCfg(flags, str name='ActsStripClusterizationAlg', bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:143
ActsSpacePointFormationConfig.ActsPixelSpacePointPreparationAlgCfg
ComponentAccumulator ActsPixelSpacePointPreparationAlgCfg(flags, str name="ActsPixelSpacePointPreparationAlg", *bool useCache=False, **dict kwargs)
Definition: ActsSpacePointFormationConfig.py:59
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
ActsClusterizationConfig.ActsStripClusterPreparationAlgCfg
ComponentAccumulator ActsStripClusterPreparationAlgCfg(flags, str name="ActsStripClusterPreparationAlg", bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:209
ActsSpacePointFormationConfig.ActsPixelSpacePointFormationAlgCfg
ComponentAccumulator ActsPixelSpacePointFormationAlgCfg(flags, str name="ActsPixelSpacePointFormationAlg", *bool useCache=False, **dict kwargs)
Definition: ActsSpacePointFormationConfig.py:117
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
ActsTrackFindingConfig.ActsMainAmbiguityResolutionAlgCfg
ComponentAccumulator ActsMainAmbiguityResolutionAlgCfg(flags, str name="ActsAmbiguityResolutionAlg", **kwargs)
Definition: ActsTrackFindingConfig.py:313
ActsTrackFindingConfig.ActsMainTrackFindingAlgCfg
ComponentAccumulator ActsMainTrackFindingAlgCfg(flags, str name="ActsTrackFindingAlg", **kwargs)
Definition: ActsTrackFindingConfig.py:55
ActsClusterizationConfig.ActsPixelClusterPreparationAlgCfg
ComponentAccumulator ActsPixelClusterPreparationAlgCfg(flags, str name="ActsPixelClusterPreparationAlg", bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:185
str
Definition: BTagTrackIpAccessor.cxx:11
ActsTrackFindingConfig.ActsTrackToTrackParticleCnvAlgCfg
ComponentAccumulator ActsTrackToTrackParticleCnvAlgCfg(flags, str name="ActsTrackToTrackParticleCnvAlg", **kwargs)
Definition: ActsTrackFindingConfig.py:383