3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import ProductionStep
11 histsvc = CompFactory.THistSvc(name=
"THistSvc",
12 Output=[ f
"{output_name} DATAFILE='{flags.Output.HISTFileName}' OPT='RECREATE'" ])
13 result.addService(histsvc)
21 kwargs.setdefault(
"NtuplePath",
"/RDOAnalysis/ntuples/")
22 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/histos/")
23 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
24 kwargs.setdefault(
"EventInfo", f
"{flags.Overlay.BkgPrefix}EventInfo")
26 result.addEventAlgo(CompFactory.EventInfoRDOAnalysis(name, **kwargs))
34 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
37 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
38 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
39 kwargs.setdefault(
"NtupleTreeName",
"BCM")
40 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/BCM/")
42 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
43 prefix=flags.Overlay.BkgPrefix
44 kwargs.setdefault(
"InputKey", f
"{prefix}BCM_RDOs")
45 kwargs.setdefault(
"InputTruthKey", f
"{prefix}BCM_SDO_Map")
47 result.addEventAlgo(CompFactory.BCM_RDOAnalysis(name, **kwargs))
55 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
58 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
59 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
60 kwargs.setdefault(
"NtupleTreeName",
"Pixel")
61 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/Pixel/")
62 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
63 kwargs.setdefault(
"InputKey", f
"{flags.Overlay.BkgPrefix}PixelRDOs")
64 kwargs.setdefault(
"InputTruthKey", f
"{flags.Overlay.BkgPrefix}PixelSDO_Map")
65 kwargs.setdefault(
"InputMcEventCollectionKey", f
"{flags.Overlay.BkgPrefix}TruthEvent")
67 kwargs.setdefault(
"InputKey",
"PixelRDOs")
68 kwargs.setdefault(
"InputTruthKey",
"PixelSDO_Map")
69 kwargs.setdefault(
"InputMcEventCollectionKey",
"TruthEvent")
71 result.addEventAlgo(CompFactory.PixelRDOAnalysis(name, **kwargs))
79 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
82 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
83 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
84 kwargs.setdefault(
"NtupleTreeName",
"SCT")
85 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/SCT/")
86 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
87 kwargs.setdefault(
"InputKey", f
"{flags.Overlay.BkgPrefix}SCT_RDOs")
88 kwargs.setdefault(
"InputTruthKey", f
"{flags.Overlay.BkgPrefix}SCT_SDO_Map")
89 kwargs.setdefault(
"InputMcEventCollectionKey", f
"{flags.Overlay.BkgPrefix}TruthEvent")
91 kwargs.setdefault(
"InputKey",
"SCT_RDOs")
92 kwargs.setdefault(
"InputTruthKey",
"SCT_SDO_Map")
93 kwargs.setdefault(
"InputMcEventCollectionKey",
"TruthEvent")
95 result.addEventAlgo(CompFactory.SCT_RDOAnalysis(name, **kwargs))
103 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_ReadoutGeometryCfg
106 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
107 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
108 kwargs.setdefault(
"NtupleTreeName",
"TRT")
109 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/TRT/")
111 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
112 prefix=flags.Overlay.BkgPrefix
113 kwargs.setdefault(
"InputKey", f
"{prefix}TRT_RDOs")
114 kwargs.setdefault(
"InputTruthKey", f
"{prefix}TRT_SDO_Map")
116 result.addEventAlgo(CompFactory.TRT_RDOAnalysis(name, **kwargs))
124 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelReadoutGeometryCfg
127 kwargs.setdefault(
"NtuplePath",
"/RDOAnalysis/ntuples/")
128 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/ITkPixel/")
129 kwargs.setdefault(
"SharedHistPath",
"/RDOAnalysis/histos/")
130 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
131 kwargs.setdefault(
"CollectionName", f
"{flags.Overlay.BkgPrefix}ITkPixelRDOs")
132 kwargs.setdefault(
"SDOCollectionName", f
"{flags.Overlay.BkgPrefix}ITkPixelSDO_Map")
133 kwargs.setdefault(
"McEventCollectionName", f
"{flags.Overlay.BkgPrefix}TruthEvent")
135 kwargs.setdefault(
"CollectionName",
"ITkPixelRDOs")
136 kwargs.setdefault(
"SDOCollectionName",
"ITkPixelSDO_Map")
137 kwargs.setdefault(
"McEventCollectionName",
"TruthEvent")
139 result.addEventAlgo(CompFactory.ITk.PixelRDOAnalysis(name, **kwargs))
147 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripReadoutGeometryCfg
150 kwargs.setdefault(
"NtuplePath",
"/RDOAnalysis/ntuples/")
151 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/ITkStrip/")
152 kwargs.setdefault(
"SharedHistPath",
"/RDOAnalysis/histos/")
153 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
154 kwargs.setdefault(
"CollectionName", f
"{flags.Overlay.BkgPrefix}ITkStripRDOs")
155 kwargs.setdefault(
"SDOCollectionName", f
"{flags.Overlay.BkgPrefix}ITkStripSDO_Map")
156 kwargs.setdefault(
"McEventCollectionName", f
"{flags.Overlay.BkgPrefix}TruthEvent")
158 kwargs.setdefault(
"CollectionName",
"ITkStripRDOs")
159 kwargs.setdefault(
"SDOCollectionName",
"ITkStripSDO_Map")
160 kwargs.setdefault(
"McEventCollectionName",
"TruthEvent")
162 result.addEventAlgo(CompFactory.ITk.StripRDOAnalysis(name, **kwargs))
170 from HGTD_GeoModelXml.HGTD_GeoModelConfig
import HGTD_ReadoutGeometryCfg
173 kwargs.setdefault(
"NtuplePath",
"/RDOAnalysis/ntuples/")
174 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/HGTD/")
175 kwargs.setdefault(
"SharedHistPath",
"/RDOAnalysis/histos/")
176 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
177 kwargs.setdefault(
"CollectionName", f
"{flags.Overlay.BkgPrefix}HGTD_RDOs")
178 kwargs.setdefault(
"SDOCollectionName", f
"{flags.Overlay.BkgPrefix}HGTD_SDO_Map")
179 kwargs.setdefault(
"McEventCollectionName", f
"{flags.Overlay.BkgPrefix}TruthEvent")
181 kwargs.setdefault(
"CollectionName",
"HGTD_RDOs")
182 kwargs.setdefault(
"SDOCollectionName",
"HGTD_SDO_Map")
183 kwargs.setdefault(
"McEventCollectionName",
"TruthEvent")
185 result.addEventAlgo(CompFactory.HGTD_RDOAnalysis(name, **kwargs))
193 from PLRGeoModelXml.PLR_GeoModelConfig
import PLR_ReadoutGeometryCfg
196 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
197 kwargs.setdefault(
"CollectionName", f
"{flags.Overlay.BkgPrefix}PLR_RDOs")
198 kwargs.setdefault(
"SDOCollectionName", f
"{flags.Overlay.BkgPrefix}PLR_SDO_Map")
199 kwargs.setdefault(
"McEventCollectionName", f
"{flags.Overlay.BkgPrefix}TruthEvent")
201 kwargs.setdefault(
"CollectionName",
"PLR_RDOs")
202 kwargs.setdefault(
"SDOCollectionName",
"PLR_SDO_Map")
203 kwargs.setdefault(
"McEventCollectionName",
"TruthEvent")
204 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/PLR/")
205 kwargs.setdefault(
"SharedHistPath",
"/RDOAnalysis/histos/")
206 kwargs.setdefault(
"NtuplePath",
"/RDOAnalysis/ntuples/")
207 kwargs.setdefault(
"NtupleName",
"PLR")
208 kwargs.setdefault(
"DetectorName",
"PLR")
209 kwargs.setdefault(
"PixelIDName",
"PLR_ID")
211 result.addEventAlgo(CompFactory.ITk.PixelRDOAnalysis(name, **kwargs))
223 if flags.Detector.EnablePixel:
226 if flags.Detector.EnableSCT:
229 if flags.Detector.EnableTRT:
232 if flags.Detector.EnableITkPixel:
235 if flags.Detector.EnableITkStrip:
238 if flags.Detector.EnableHGTD:
241 if flags.Detector.EnablePLR:
248 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
251 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
252 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
253 kwargs.setdefault(
"NtupleTreeName",
"LAr")
254 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/LAr/")
256 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
257 kwargs.setdefault(
"PreSampling",
True)
258 prefix=flags.Overlay.BkgPrefix
259 kwargs.setdefault(
"InputRawChannelKey",
'')
260 kwargs.setdefault(
"InputTTL1HADKey",
'')
261 kwargs.setdefault(
"InputTTL1EMKey",
'')
262 kwargs.setdefault(
"InputRawChannelKey",
"LArRawChannels")
263 kwargs.setdefault(
"InputTTL1HADKey",
"LArTTL1HAD")
264 kwargs.setdefault(
"InputTTL1EMKey",
"LArTTL1EM")
265 kwargs.setdefault(
"InputDigitKey", f
"{prefix}LArDigitContainer_MC_Thinned")
267 result.addEventAlgo(CompFactory.LArRDOAnalysis(name, **kwargs))
275 from TileGeoModel.TileGMConfig
import TileGMCfg
277 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
280 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
281 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
282 kwargs.setdefault(
"NtupleTreeName",
"Tile")
283 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/Tile/")
285 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
286 kwargs.setdefault(
"PreSampling",
True)
287 prefix=flags.Overlay.BkgPrefix
288 kwargs.setdefault(
"InputRawChKey",
'')
289 kwargs.setdefault(
"InputMuRcvRawChKey",
'')
290 kwargs.setdefault(
"InputMuRcvKey",
'')
291 kwargs.setdefault(
"InputMBTS_TTL1Key",
'')
292 kwargs.setdefault(
"InputTileTTL1Key",
'')
293 kwargs.setdefault(
"InputL2Key",
'')
294 kwargs.setdefault(
"InputRawChKey",
'TileRawChannelCnt')
295 kwargs.setdefault(
"InputMuRcvRawChKey",
'TileRawChannelCnt')
296 kwargs.setdefault(
"InputMuRcvKey",
'TileMuRcvCnt')
297 kwargs.setdefault(
"InputMBTS_TTL1Key",
'TileTTL1MBTS')
298 kwargs.setdefault(
"InputTileTTL1Key",
'TileTTL1Cnt')
299 kwargs.setdefault(
"InputL2Key",
'TileL2Cnt')
300 kwargs.setdefault(
"InputDigitsMuRcvKey", f
'{prefix}MuRcvDigitsCnt')
301 kwargs.setdefault(
"InputDigitsFltKey", f
"{prefix}TileDigitsCnt")
303 result.addEventAlgo(CompFactory.TileRDOAnalysis(name, **kwargs))
311 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
314 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
315 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
316 kwargs.setdefault(
"NtupleTreeName",
"CSC")
317 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/CSC/")
319 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
320 prefix=flags.Overlay.BkgPrefix
321 kwargs.setdefault(
"InputKey", f
"{prefix}CSCRDO")
322 kwargs.setdefault(
"InputTruthKey", f
"{prefix}CSC_SDO")
324 result.addEventAlgo(CompFactory.CSC_RDOAnalysis(name, **kwargs))
332 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
335 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
336 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
337 kwargs.setdefault(
"NtupleTreeName",
"MDT")
338 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/MDT/")
340 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
341 prefix=flags.Overlay.BkgPrefix
342 kwargs.setdefault(
"InputKey", f
"{prefix}MDTCSM")
343 kwargs.setdefault(
"InputTruthKey", f
"{prefix}MDT_SDO")
345 result.addEventAlgo(CompFactory.MDT_RDOAnalysis(name, **kwargs))
353 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
356 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
357 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
358 kwargs.setdefault(
"NtupleTreeName",
"RPC")
359 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/RPC/")
361 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
362 prefix=flags.Overlay.BkgPrefix
363 kwargs.setdefault(
"InputKey", f
"{prefix}RPCPAD")
364 kwargs.setdefault(
"InputTruthKey", f
"{prefix}RPC_SDO")
366 result.addEventAlgo(CompFactory.RPC_RDOAnalysis(name, **kwargs))
374 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
377 kwargs.setdefault(
"NtupleFileName",
"/RDOAnalysis")
378 kwargs.setdefault(
"NtupleDirectoryName",
"/ntuples/")
379 kwargs.setdefault(
"NtupleTreeName",
"TGC")
380 kwargs.setdefault(
"HistPath",
"/RDOAnalysis/TGC/")
382 if flags.Common.ProductionStep
is ProductionStep.PileUpPresampling:
383 prefix=flags.Overlay.BkgPrefix
384 kwargs.setdefault(
"InputKey", f
"{prefix}TGCRDO")
385 kwargs.setdefault(
"InputTruthKey", f
"{prefix}TGC_SDO")
387 result.addEventAlgo(CompFactory.TGC_RDOAnalysis(name, **kwargs))