ATLAS Offline Software
Functions | Variables
python.SiliconPreProcessing Namespace Reference

Functions

def InDetRecPreProcessingSiliconCfg (flags)
 
def ITkRecPreProcessingSiliconCfg (flags, *str previousActsExtension=None)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 doPixelClusterSplitting
 
int numThreads = 1
 
 NumThreads
 
 NumConcurrentEvents
 
 top_acc = MainServicesCfg(flags)
 
 iovsvc = top_acc.getService('IOVDbSvc')
 
 OutputLevel
 

Function Documentation

◆ InDetRecPreProcessingSiliconCfg()

def python.SiliconPreProcessing.InDetRecPreProcessingSiliconCfg (   flags)

Definition at line 5 of file SiliconPreProcessing.py.

7  # ------------------------------------------------------------
8  #
9  # ----------- Data-Preparation stage
10  #
11  # ------------------------------------------------------------
12  #
13  # ----------- PrepRawData creation from Raw Data Objects
14  #
15 
16  #
17  # --- Slim BCM RDOs by zero-suppressing
18  #
19  if flags.Detector.EnableBCM:
20  if flags.Input.Format is Format.BS:
21  from BCM_RawDataByteStreamCnv.BCM_RawDataByteStreamCnvConfig import (
22  BCM_RawDataProviderAlgCfg)
23  acc.merge(BCM_RawDataProviderAlgCfg(flags))
24  from InDetConfig.BCM_ZeroSuppressionConfig import BCM_ZeroSuppressionCfg
25  acc.merge(BCM_ZeroSuppressionCfg(flags))
26 
27  #
28  # -- Pixel Clusterization
29  #
30  if (flags.Detector.EnablePixel and
31  (flags.Input.Format is Format.BS
32  or 'PixelRDOs' in flags.Input.Collections
33  or f'{flags.Overlay.BkgPrefix}PixelRDOs' in flags.Input.Collections)):
34  #
35  # --- PixelClusterization algorithm
36  #
37  from InDetConfig.InDetPrepRawDataFormationConfig import (
38  PixelClusterizationCfg)
39  acc.merge(PixelClusterizationCfg(flags))
40  if flags.InDet.doSplitReco:
41  from InDetConfig.InDetPrepRawDataFormationConfig import (
42  PixelClusterizationPUCfg)
43  acc.merge(PixelClusterizationPUCfg(flags))
44  #
45  # --- SCT Clusterization
46  #
47  if (flags.Detector.EnableSCT and
48  (flags.Input.Format is Format.BS
49  or 'SCT_RDOs' in flags.Input.Collections
50  or f'{flags.Overlay.BkgPrefix}SCT_RDOs' in flags.Input.Collections)):
51 
52  #
53  # --- SCT_Clusterization algorithm
54  #
55  from InDetConfig.InDetPrepRawDataFormationConfig import (
56  SCTClusterizationCfg)
57  acc.merge(SCTClusterizationCfg(flags))
58  if flags.InDet.doSplitReco:
59  from InDetConfig.InDetPrepRawDataFormationConfig import (
60  SCTClusterizationPUCfg)
61  acc.merge(SCTClusterizationPUCfg(flags))
62 
63  #
64  # ----------- form SpacePoints from clusters in SCT and Pixels
65  #
66  #
67  from InDetConfig.SiSpacePointFormationConfig import (
68  InDetSiTrackerSpacePointFinderCfg)
69  acc.merge(InDetSiTrackerSpacePointFinderCfg(flags))
70 
71  # this truth must only be done if you do PRD and SpacePointformation
72  # If you only do the latter (== running on ESD) then the needed input (simdata)
73  # is not in ESD but the resulting truth (clustertruth) is already there ...
74  if (flags.InDet.doTruth and
75  (not flags.Detector.EnableSCT or
76  'SCT_SDO_Map' in flags.Input.Collections) and
77  (not flags.Detector.EnablePixel or
78  'PixelSDO_Map' in flags.Input.Collections)):
79 
80  from InDetConfig.InDetTruthAlgsConfig import (
81  InDetPRD_MultiTruthMakerSiCfg)
82  acc.merge(InDetPRD_MultiTruthMakerSiCfg(flags))
83  if flags.InDet.doSplitReco:
84  from InDetConfig.InDetTruthAlgsConfig import (
85  InDetPRD_MultiTruthMakerSiPUCfg)
86  acc.merge(InDetPRD_MultiTruthMakerSiPUCfg(flags))
87 
88  return acc
89 
90 

◆ ITkRecPreProcessingSiliconCfg()

def python.SiliconPreProcessing.ITkRecPreProcessingSiliconCfg (   flags,
*str   previousActsExtension = None 
)

Definition at line 91 of file SiliconPreProcessing.py.

92  *,
93  previousActsExtension: str = None):
94  acc = ComponentAccumulator()
95  # ------------------------------------------------------------
96  #
97  # ----------- Data-Preparation stage
98  #
99  # ------------------------------------------------------------
100  #
101  # ----------- PrepRawData creation from Raw Data Objects
102  #
103 
104  #
105  # --- Slim BCM RDOs by zero-suppressing
106  #
107  if flags.Detector.EnableBCMPrime:
108  from InDetConfig.BCM_ZeroSuppressionConfig import BCM_ZeroSuppressionCfg
109  acc.merge(BCM_ZeroSuppressionCfg(flags))
110  #
111  # -- Clusterization Algorithms
112  #
113  if flags.Tracking.ActiveConfig.doAthenaCluster:
114  from InDetConfig.InDetPrepRawDataFormationConfig import (
115  AthenaTrkClusterizationCfg)
116  acc.merge(AthenaTrkClusterizationCfg(flags))
117  # if we require HGTD clusters in the ACTS Track reconstruction we have to create the clusters here
118  if flags.Acts.useHGTDClusterInTrackFinding and flags.Detector.EnableHGTD:
119  from HGTD_Config.HGTD_PrepRawDataFormationConfig import PadClusterizationCfg
120  acc.merge(PadClusterizationCfg(flags))
121 
122  if flags.Tracking.ActiveConfig.doActsCluster:
123  # If ACTS clusterization is activated, then schedule RoI creator
124  from ActsConfig.ActsRegionsOfInterestConfig import ActsRegionsOfInterestCreatorAlgCfg
125  acc.merge(ActsRegionsOfInterestCreatorAlgCfg(flags,
126  name=f"{flags.Tracking.ActiveConfig.extension}RegionsOfInterestCreatorAlg"))
127 
128  # If running FPGA tracking, use ACTS clusterization + FPGA pass-through
129  if flags.Tracking.ActiveConfig.doFPGATrack:
130  from EFTrackingFPGAIntegration.EFClusterizationConfig import EFPassThroughClusterizationCfg
131  acc.merge(EFPassThroughClusterizationCfg(flags))
132  else:
133  from ActsConfig.ActsClusterizationConfig import ActsClusterizationCfg
134  acc.merge(ActsClusterizationCfg(flags, previousActsExtension=previousActsExtension))
135 
136  #
137  # --- Cluster EDM converters
138  #
139  if flags.Tracking.ActiveConfig.doAthenaToActsCluster:
140  #
141  # --- InDet -> xAOD Cluster EDM converter
142  #
143  from InDetConfig.InDetPrepRawDataFormationConfig import (
144  ITkInDetToXAODClusterConversionCfg)
145  acc.merge(ITkInDetToXAODClusterConversionCfg(flags))
146  # if we need HGTD clusters, we convert them as well
147  if flags.Acts.useHGTDClusterInTrackFinding and flags.Detector.EnableHGTD:
148  from InDetConfig.InDetPrepRawDataFormationConfig import HGTDInDetToXAODClusterConversionCfg
149  acc.merge(HGTDInDetToXAODClusterConversionCfg(flags))
150 
151 
152  if flags.Tracking.ActiveConfig.doActsToAthenaCluster:
153  #
154  # --- xAOD -> InDet Cluster EDM converter
155  #
156  from InDetConfig.InDetPrepRawDataFormationConfig import (
157  ITkXAODToInDetClusterConversionCfg)
158  acc.merge(ITkXAODToInDetClusterConversionCfg(flags))
159 
160  #
161  # ----------- form SpacePoints from clusters in SCT and Pixels
162  #
163  if flags.Tracking.ActiveConfig.doAthenaSpacePoint:
164  if flags.Tracking.doITkFastTracking:
165  from InDetConfig.SiSpacePointFormationConfig import (
166  ITkFastSiTrackerSpacePointFinderCfg)
167  acc.merge(ITkFastSiTrackerSpacePointFinderCfg(flags))
168  else:
169  from InDetConfig.SiSpacePointFormationConfig import (
170  ITkSiTrackerSpacePointFinderCfg)
171  acc.merge(ITkSiTrackerSpacePointFinderCfg(flags))
172 
173  if flags.Tracking.ActiveConfig.doFPGASpacePoint:
174  from EFTrackingFPGAIntegration.EFSpacePointFormationConfig import (
175  EFSpacePointFormationCfg)
176  acc.merge(EFSpacePointFormationCfg(flags, previousActsExtension=previousActsExtension))
177 
178  if flags.Tracking.ActiveConfig.doActsSpacePoint:
179  from ActsConfig.ActsSpacePointFormationConfig import (
180  ActsSpacePointFormationCfg)
181  acc.merge(ActsSpacePointFormationCfg(flags, previousActsExtension=previousActsExtension))
182 
183  #
184  # --- Space Point EDM converters
185  #
186  if flags.Tracking.ActiveConfig.doAthenaToActsSpacePoint:
187  #
188  # --- InDet -> xAOD Space Point EDM converter
189  #
190  from InDetConfig.SiSpacePointFormationConfig import (
191  InDetToXAODSpacePointConversionCfg)
192  acc.merge(InDetToXAODSpacePointConversionCfg(flags))
193 
194  # this truth must only be done if you do PRD and SpacePointformation
195  # If you only do the latter (== running on ESD) then the needed input (simdata)
196  # is not in ESD but the resulting truth (clustertruth) is already there ...
197  if flags.Tracking.doTruth:
198  if flags.Tracking.ActiveConfig.doAthenaCluster or flags.Tracking.ActiveConfig.doActsToAthenaCluster:
199  from InDetConfig.InDetTruthAlgsConfig import ITkPRD_MultiTruthMakerSiCfg
200  acc.merge(ITkPRD_MultiTruthMakerSiCfg(flags))
201 
202  if flags.Tracking.ActiveConfig.doActsCluster or flags.Tracking.ActiveConfig.doAthenaToActsCluster:
203  from ActsConfig.ActsTruthConfig import ActsTruthAssociationAlgCfg, ActsTruthParticleHitCountAlgCfg
204  acc.merge(ActsTruthAssociationAlgCfg(flags))
205  acc.merge(ActsTruthParticleHitCountAlgCfg(flags))
206 
207 
208  return acc
209 
210 

Variable Documentation

◆ doPixelClusterSplitting

python.SiliconPreProcessing.doPixelClusterSplitting

Definition at line 218 of file SiliconPreProcessing.py.

◆ Files

python.SiliconPreProcessing.Files

Definition at line 216 of file SiliconPreProcessing.py.

◆ flags

python.SiliconPreProcessing.flags = initConfigFlags()

Definition at line 213 of file SiliconPreProcessing.py.

◆ iovsvc

python.SiliconPreProcessing.iovsvc = top_acc.getService('IOVDbSvc')

Definition at line 235 of file SiliconPreProcessing.py.

◆ NumConcurrentEvents

python.SiliconPreProcessing.NumConcurrentEvents

Definition at line 222 of file SiliconPreProcessing.py.

◆ numThreads

int python.SiliconPreProcessing.numThreads = 1

Definition at line 220 of file SiliconPreProcessing.py.

◆ NumThreads

python.SiliconPreProcessing.NumThreads

Definition at line 221 of file SiliconPreProcessing.py.

◆ OutputLevel

python.SiliconPreProcessing.OutputLevel

Definition at line 236 of file SiliconPreProcessing.py.

◆ top_acc

python.SiliconPreProcessing.top_acc = MainServicesCfg(flags)

Definition at line 228 of file SiliconPreProcessing.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.SiSpacePointFormationConfig.InDetSiTrackerSpacePointFinderCfg
def InDetSiTrackerSpacePointFinderCfg(flags, name="InDetSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:62
python.SiliconPreProcessing.InDetRecPreProcessingSiliconCfg
def InDetRecPreProcessingSiliconCfg(flags)
Definition: SiliconPreProcessing.py:5
python.BCM_ZeroSuppressionConfig.BCM_ZeroSuppressionCfg
def BCM_ZeroSuppressionCfg(flags, name="InDetBCM_ZeroSuppression", **kwargs)
Definition: BCM_ZeroSuppressionConfig.py:8
ActsTruthConfig.ActsTruthParticleHitCountAlgCfg
ComponentAccumulator ActsTruthParticleHitCountAlgCfg(flags, str name='ActsTruthParticleHitCountAlg', **dict kwargs)
Definition: ActsTruthConfig.py:69
python.SiSpacePointFormationConfig.ITkFastSiTrackerSpacePointFinderCfg
def ITkFastSiTrackerSpacePointFinderCfg(flags)
Definition: SiSpacePointFormationConfig.py:174
python.SiliconPreProcessing.ITkRecPreProcessingSiliconCfg
def ITkRecPreProcessingSiliconCfg(flags, *str previousActsExtension=None)
Definition: SiliconPreProcessing.py:91
ActsSpacePointFormationConfig.ActsSpacePointFormationCfg
ComponentAccumulator ActsSpacePointFormationCfg(flags, *previousActsExtension=None)
Definition: ActsSpacePointFormationConfig.py:243
EFSpacePointFormationConfig.EFSpacePointFormationCfg
ComponentAccumulator EFSpacePointFormationCfg(flags, previousActsExtension=None, **kwargs)
Definition: EFSpacePointFormationConfig.py:5
python.HGTD_PrepRawDataFormationConfig.PadClusterizationCfg
def PadClusterizationCfg(flags, name="PadClusterizationAlg", **kwargs)
Definition: HGTD_PrepRawDataFormationConfig.py:25
ActsRegionsOfInterestConfig.ActsRegionsOfInterestCreatorAlgCfg
ComponentAccumulator ActsRegionsOfInterestCreatorAlgCfg(flags, str name="ActsRegionsOfInterestCreatorAlg", **kwargs)
Definition: ActsRegionsOfInterestConfig.py:33
python.SiSpacePointFormationConfig.InDetToXAODSpacePointConversionCfg
ComponentAccumulator InDetToXAODSpacePointConversionCfg(flags, str name="InDetToXAODSpacePointConversion", **kwargs)
Definition: SiSpacePointFormationConfig.py:8
BCM_RawDataByteStreamCnvConfig.BCM_RawDataProviderAlgCfg
def BCM_RawDataProviderAlgCfg(flags)
Definition: BCM_RawDataByteStreamCnvConfig.py:7
python.InDetPrepRawDataFormationConfig.PixelClusterizationCfg
def PixelClusterizationCfg(flags, name="InDetPixelClusterization", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:60
python.InDetPrepRawDataFormationConfig.PixelClusterizationPUCfg
def PixelClusterizationPUCfg(flags, name="InDetPixelClusterizationPU", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:82
python.InDetPrepRawDataFormationConfig.ITkInDetToXAODClusterConversionCfg
def ITkInDetToXAODClusterConversionCfg(flags, name="ITkInDetToXAODClusterConversion", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:39
python.InDetPrepRawDataFormationConfig.ITkXAODToInDetClusterConversionCfg
def ITkXAODToInDetClusterConversionCfg(flags, name="ITkXAODToInDetClusterConversion", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:47
ActsClusterizationConfig.ActsClusterizationCfg
ComponentAccumulator ActsClusterizationCfg(flags, *str previousActsExtension=None)
Definition: ActsClusterizationConfig.py:321
EFClusterizationConfig.EFPassThroughClusterizationCfg
ComponentAccumulator EFPassThroughClusterizationCfg(flags)
Definition: EFClusterizationConfig.py:5
python.InDetTruthAlgsConfig.InDetPRD_MultiTruthMakerSiCfg
def InDetPRD_MultiTruthMakerSiCfg(flags, name="InDetPRD_MultiTruthMakerSi", **kwargs)
Definition: InDetTruthAlgsConfig.py:9
python.InDetPrepRawDataFormationConfig.AthenaTrkClusterizationCfg
def AthenaTrkClusterizationCfg(flags)
Definition: InDetPrepRawDataFormationConfig.py:334
python.InDetTruthAlgsConfig.ITkPRD_MultiTruthMakerSiCfg
def ITkPRD_MultiTruthMakerSiCfg(flags, name="ITkPRD_MultiTruthMakerSi", **kwargs)
Definition: InDetTruthAlgsConfig.py:94
python.SiSpacePointFormationConfig.ITkSiTrackerSpacePointFinderCfg
def ITkSiTrackerSpacePointFinderCfg(flags, name="ITkSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:124
ActsTruthConfig.ActsTruthAssociationAlgCfg
ComponentAccumulator ActsTruthAssociationAlgCfg(flags, **dict kwargs)
Definition: ActsTruthConfig.py:89
python.InDetTruthAlgsConfig.InDetPRD_MultiTruthMakerSiPUCfg
def InDetPRD_MultiTruthMakerSiPUCfg(flags, name="InDetPRD_MultiTruthMakerSiPU", **kwargs)
Definition: InDetTruthAlgsConfig.py:50
python.InDetPrepRawDataFormationConfig.SCTClusterizationPUCfg
def SCTClusterizationPUCfg(flags, name="InDetSCT_ClusterizationPU", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:180
python.InDetPrepRawDataFormationConfig.HGTDInDetToXAODClusterConversionCfg
def HGTDInDetToXAODClusterConversionCfg(flags, name="HGTDInDetToXAODClusterConversion", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:26
python.InDetPrepRawDataFormationConfig.SCTClusterizationCfg
def SCTClusterizationCfg(flags, name="InDetSCT_Clusterization", **kwargs)
Definition: InDetPrepRawDataFormationConfig.py:153