ATLAS Offline Software
Functions | Variables
python.ZdcRecConfig Namespace Reference

Functions

def GenerateConfigTagDict ()
 
def SetConfigTag (flags)
 
def ZdcRecOutputCfg (flags)
 
def ZdcAnalysisToolCfg (flags, run, config="PbPb2023", DoCalib=False, DoFADCCorr=False, DoNonLinCorr=False, DoTimeCalib=False, DoTrigEff=False, ForceCalibRun=-1, ForceCalibLB=814)
 
def ZdcLEDAnalysisToolCfg (flags, config='ppPbPb2023', DoFADCCorr=True)
 
def ZdcTrigValToolCfg (flags, config='PbPb2023')
 
def RPDAnalysisToolCfg (flags, str config)
 
def RpdSubtractCentroidToolCfg (flags, str config)
 
def ZdcRecRun2Cfg (flags)
 
def ZdcRecRun3Cfg (flags)
 
def ZdcNtupleLocalCfg (flags)
 
def ZdcNtupleRun2Cfg (flags, **kwargs)
 
def ZdcNtupleRun3Cfg (flags, **kwargs)
 
def ZdcInjNtupleCfg (flags, **kwargs)
 
def ZdcLEDNtupleCfg (flags)
 
def ZdcLEDRecCfg (flags)
 
def ZdcLEDTrigCfg (flags)
 
def ZdcRecCfg (flags)
 

Variables

dictionary zdcConfigMap = {}
 
 flags = initConfigFlags()
 
 CheckDependencies
 
 ShowDataDeps
 
 ShowDataFlow
 
 ShowControlFlow
 
 EnableVerboseViews
 
 GeometryZDC
 
 GeometryAFP
 
 GeometryALFA
 
 GeometryLucid
 
 GeometryMDT
 
 GeometryMM
 
 GeometryMuon
 
 decodeHLT
 
 enableL1MuonPhase1
 
 doMuon
 
 doCalo
 
 doTopo
 
 AODFileName
 
 HISTFileName
 
 doWriteAOD
 
 parser = flags.getArgumentParser()
 
 default
 
 help
 
 args = flags.fillFromArgs(parser=parser)
 
tuple isLED = (flags.Input.TriggerStream == "calibration_ZDCLEDCalib")
 
tuple isInj = (flags.Input.TriggerStream == "calibration_ZDCInjCalib")
 
tuple isCalib = (flags.Input.TriggerStream == "calibration_ZDCCalib" or flags.Input.TriggerStream == "physics_MinBias" or flags.Input.TriggerStream == "express_express" or flags.Input.TriggerStream == "physics_UCC")
 
 ProjectName
 
 pn = flags.Input.ProjectName
 
 EDMVersion
 
 Run
 
 AtlasVersion
 
 GlobalTag
 
 year = int(pn.split('_')[0].split('data')[1])
 
 EnableZDC_RPD
 
 useTrigger
 
 triggerDataAvailable
 
 acc = MainServicesCfg(flags)
 
 zdcMonitorAcc = ZdcMonitoringConfig(flags)
 
 withDetails
 
 status = acc.run()
 

Function Documentation

◆ GenerateConfigTagDict()

def python.ZdcRecConfig.GenerateConfigTagDict ( )

Definition at line 25 of file ZdcRecConfig.py.

26 
27  zdcConfigMap['data15_hi'] = {}
28  zdcConfigMap['data16_hip'] = {}
29  zdcConfigMap['data17_13TeV'] = {}
30  zdcConfigMap['data18_hi'] = {}
31  zdcConfigMap['data22_13p6TeV'] = {}
32  zdcConfigMap['data23_5p36TeV'] = {}
33  zdcConfigMap['data23_13p6TeV'] = {}
34  zdcConfigMap['data23_hi'] = {}
35  zdcConfigMap['data23_comm'] = {}
36  zdcConfigMap['data23_5p36TeV'] = {}
37  zdcConfigMap['data24_900GeV'] = {}
38 
39  zdcConfigMap['data24_13p6TeV'] = {}
40  zdcConfigMap['data24_13p6TeV']['default'] = 'pp2024'
41 
42  zdcConfigMap['data24_refcomm'] = {}
43  zdcConfigMap['data24_refcomm']['default'] = 'pp2024'
44  zdcConfigMap['data24_refcomm']['calibration_ZdcInjCalib'] = 'Injectorpp2024'
45 
46  zdcConfigMap['data24_hicomm'] = {}
47  zdcConfigMap['data24_hicomm']['default'] = 'PbPb2024'
48  zdcConfigMap['data24_hicomm']['calibration_ZdcInjCalib'] = 'InjectorPbPb2024'
49 
50  zdcConfigMap['data24_hi'] = {}
51  zdcConfigMap['data24_hi']['default']="PbPb2024"
52  zdcConfigMap['data24_hi']['calibration_ZdcInjCalib']="InjectorPbPb2024"
53 

◆ RPDAnalysisToolCfg()

def python.ZdcRecConfig.RPDAnalysisToolCfg (   flags,
str  config 
)

Definition at line 158 of file ZdcRecConfig.py.

158 def RPDAnalysisToolCfg(flags, config: str):
159  acc = ComponentAccumulator()
160  acc.setPrivateTools(
161  CompFactory.ZDC.RPDAnalysisTool(
162  name="RPDAnalysisTool",
163  Configuration=config
164  )
165  )
166  return acc
167 

◆ RpdSubtractCentroidToolCfg()

def python.ZdcRecConfig.RpdSubtractCentroidToolCfg (   flags,
str  config 
)

Definition at line 168 of file ZdcRecConfig.py.

168 def RpdSubtractCentroidToolCfg(flags, config: str):
169  acc = ComponentAccumulator()
170  acc.setPrivateTools(
171  CompFactory.ZDC.RpdSubtractCentroidTool(
172  name="RpdSubtractCentroidTool",
173  Configuration=config
174  )
175  )
176  return acc
177 

◆ SetConfigTag()

def python.ZdcRecConfig.SetConfigTag (   flags)

Definition at line 54 of file ZdcRecConfig.py.

54 def SetConfigTag(flags):
55 
56  if flags.Input.TriggerStream == "calibration_ZDCInjCalib" or flags.Input.TriggerStream == "calibration_DcmDummyProcessor": # calibration_DcmDummyProcessor is the "trigger stream" in the data we record in the standalone partition that is NOT LED data
57  config = "Injectorpp2024" # default config tag for injector pulse
58 
59  if flags.Input.ProjectName == "data24_hi" or flags.Input.ProjectName == "data24_hicomm":
60  config = "InjectorPbPb2024"
61  else:
62  config = "PbPb2023" # default config tag
63 
64  run = flags.GeoModel.Run
65  if (run == LHCPeriod.Run3):
66  if flags.Input.isMC:
67  config = "MonteCarloPbPb2023"
68  elif flags.Input.ProjectName == "data22_13p6TeV":
69  config = "LHCf2022"
70  elif flags.Input.ProjectName == "data23_5p36TeV" or flags.Input.ProjectName == "data23_900GeV" or flags.Input.ProjectName == "data23_13p6TeV":
71  config = "pp2023"
72  elif flags.Input.ProjectName == "data23_hi" or flags.Input.ProjectName == "data23_comm":
73  config = "PbPb2023"
74  elif flags.Input.ProjectName == "data24_5p36TeV" or flags.Input.ProjectName == "data24_900GeV" or flags.Input.ProjectName == "data24_13p6TeV" or flags.Input.ProjectName == "data24_refcomm":
75  config = "pp2024"
76  elif flags.Input.ProjectName == "data24_hi" or flags.Input.ProjectName == "data24_hicomm":
77  config = "PbPb2024"
78  elif (run == LHCPeriod.Run2):
79  if flags.Input.ProjectName == "data15_hi":
80  config = "PbPb2015"
81  elif flags.Input.ProjectName == "data17_13TeV":
82  config = "PbPb2015"
83  elif flags.Input.ProjectName == "data16_hip":
84  config = "pPb2016"
85  elif flags.Input.ProjectName == "data18_hi":
86  config = "PbPb2018"
87 
88  return config
89 

◆ ZdcAnalysisToolCfg()

def python.ZdcRecConfig.ZdcAnalysisToolCfg (   flags,
  run,
  config = "PbPb2023",
  DoCalib = False,
  DoFADCCorr = False,
  DoNonLinCorr = False,
  DoTimeCalib = False,
  DoTrigEff = False,
  ForceCalibRun = -1,
  ForceCalibLB = 814 
)

Definition at line 111 of file ZdcRecConfig.py.

111 def ZdcAnalysisToolCfg(flags, run, config="PbPb2023", DoCalib=False, DoFADCCorr=False, DoNonLinCorr=False, DoTimeCalib=False, DoTrigEff=False, ForceCalibRun=-1, ForceCalibLB=814):
112  acc = ComponentAccumulator()
113 
114  print('ZdcAnalysisToolCfg: setting up ZdcAnalysisTool with config='+config)
115 
116  acc.setPrivateTools(CompFactory.ZDC.ZdcAnalysisTool(
117  name = 'ZdcAnalysisTool'+config,
118  Configuration = config,
119  DoCalib = DoCalib,
120  DoFADCCorr = DoFADCCorr,
121  DoNonLinCorr = DoNonLinCorr,
122  DoTimeCalib = DoTimeCalib,
123  DoTrigEff = DoTrigEff,
124  ForceCalibRun = ForceCalibRun,
125  ForceCalibLB = ForceCalibLB,
126  LHCRun = run ))
127  return acc
128 

◆ ZdcInjNtupleCfg()

def python.ZdcRecConfig.ZdcInjNtupleCfg (   flags,
**  kwargs 
)

Definition at line 353 of file ZdcRecConfig.py.

353 def ZdcInjNtupleCfg(flags,**kwargs):
354 
355  acc = ComponentAccumulator()
356  acc.merge(ZdcNtupleCfg(flags,
357  useGRL = False,
358  zdcOnly = True,
359  zdcInj = True,
360  lhcf2022 = False,
361  lhcf2022zdc = False,
362  lhcf2022afp = False,
363  enableTrigger = False,
364  enableOutputSamples = True,
365  enableOutputTree = True,
366  writeOnlyTriggers = False,
367  enableRPD = False,
368  enableCentroid = False,
369  reprocZdc = False,
370  **kwargs))
371 
372  acc.addService(CompFactory.THistSvc(Output = ["ANALYSIS DATAFILE='NTUP.root' OPT='RECREATE'"]))
373  #acc.setAppProperty("HistogramPersistency","ROOT")
374  return acc
375 

◆ ZdcLEDAnalysisToolCfg()

def python.ZdcRecConfig.ZdcLEDAnalysisToolCfg (   flags,
  config = 'ppPbPb2023',
  DoFADCCorr = True 
)

Definition at line 129 of file ZdcRecConfig.py.

129 def ZdcLEDAnalysisToolCfg(flags, config = 'ppPbPb2023', DoFADCCorr = True):
130  acc = ComponentAccumulator()
131 
132  print('ZdcAnalysisToolCfg: setting up ZdcAnalysisTool with config='+config)
133  acc.setPrivateTools(CompFactory.ZDC.ZdcLEDAnalysisTool(name = 'ZdcLEDAnalysisTool'+config,
134  Configuration = config,
135  DoFADCCorr = DoFADCCorr))
136  return acc
137 
138 

◆ ZdcLEDNtupleCfg()

def python.ZdcRecConfig.ZdcLEDNtupleCfg (   flags)

Definition at line 376 of file ZdcRecConfig.py.

376 def ZdcLEDNtupleCfg(flags):
377  acc = ComponentAccumulator()
378  zdcLEDNtuple = CompFactory.ZdcLEDNtuple("ZdcLEDNtuple")
379  zdcLEDNtuple.enableOutputTree = True
380  acc.addEventAlgo(zdcLEDNtuple)
381  acc.addService(CompFactory.THistSvc(Output = ["ANALYSIS DATAFILE='NTUP.root' OPT='RECREATE'"]))
382  return acc
383 

◆ ZdcLEDRecCfg()

def python.ZdcRecConfig.ZdcLEDRecCfg (   flags)

Definition at line 384 of file ZdcRecConfig.py.

384 def ZdcLEDRecCfg(flags):
385 
386  acc = ComponentAccumulator()
387 
388  if flags.Input.Format is Format.BS:
389  run = flags.GeoModel.Run
390 
391  # debugging message since the metadata isn't working for calibration files yet
392  print ("ZdcRecConfig.py: run = "+run.name)
393 
394  config = 'ppPbPb2023'
395  #config = 'ppALFA2023'
396  doFADCCorr = False
397 
398  if (flags.GeoModel.Run == LHCPeriod.Run3):
399  doFADCCorr = True
400 
401  acc.addEventAlgo(CompFactory.ZdcByteStreamLucrodData())
402  acc.addEventAlgo(CompFactory.ZdcRecRun3Decode())
403 
404  anaTool = acc.popToolsAndMerge(ZdcLEDAnalysisToolCfg(flags, config, DoFADCCorr = doFADCCorr)) #anatool for zdcLED calibration
405 
406  zdcTools = []
407  zdcTools += [anaTool] # add trigTool after deocration migration
408 
409  # FIXME these are dependent on !65768
410  zdcAlg = CompFactory.ZdcRecRun3("ZdcRecRun3",DAQMode=2, ForcedEventType=2, ZdcAnalysisTools=zdcTools) # DAQMode set to PhysicsPEB, event type set to ZdcEventLED
411  acc.addEventAlgo(zdcAlg, primary=True)
412 
413  if flags.Output.doWriteESD or flags.Output.doWriteAOD:
414  acc.merge(ZdcRecOutputCfg(flags))
415 
416  return acc
417 

◆ ZdcLEDTrigCfg()

def python.ZdcRecConfig.ZdcLEDTrigCfg (   flags)

Definition at line 418 of file ZdcRecConfig.py.

418 def ZdcLEDTrigCfg(flags):
419 
420  acc = ComponentAccumulator()
421 
422  # suggested by Tim Martin
423  tdmv = CompFactory.TrigDec.TrigDecisionMakerValidator()
424  tdmv.errorOnFailure = True
425  tdmv.TrigDecisionTool = acc.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
426  tdmv.NavigationKey = getRun3NavigationContainerFromInput(flags)
427  acc.addEventAlgo( tdmv )
428  # end of Tim's suggestions
429  return acc
430 

◆ ZdcNtupleLocalCfg()

def python.ZdcRecConfig.ZdcNtupleLocalCfg (   flags)

Definition at line 298 of file ZdcRecConfig.py.

298 def ZdcNtupleLocalCfg(flags):
299 
300  acc = ComponentAccumulator()
301  run = flags.GeoModel.Run
302 
303  if (run == LHCPeriod.Run2):
304  print ('ZdcRecConfig.py: setting up Run 2 ntuple!')
305  acc.merge(ZdcNtupleRun2Cfg(flags))
306  elif (run == LHCPeriod.Run3):
307  print ('ZdcRecConfig.py: setting up Run 3 ntuples!')
308  acc.merge(ZdcNtupleRun3Cfg(flags))
309  else:
310  print ('ZdcRecConfig.py: setting up no ntuple!')
311 
312  return acc
313 

◆ ZdcNtupleRun2Cfg()

def python.ZdcRecConfig.ZdcNtupleRun2Cfg (   flags,
**  kwargs 
)

Definition at line 314 of file ZdcRecConfig.py.

314 def ZdcNtupleRun2Cfg(flags,**kwargs):
315 
316  acc = ComponentAccumulator()
317  acc.merge(ZdcNtupleCfg(flags,
318  useGRL = False,
319  zdcOnly = True,
320  enableTrigger = False,
321  enableOutputSamples = True,
322  enableOutputTree = True,
323  writeOnlyTriggers = False,
324  nsamplesZdc = 7,
325  **kwargs))
326 
327  acc.addService(CompFactory.THistSvc(Output = ["ANALYSIS DATAFILE='zdctree.root' OPT='RECREATE'"]))
328 # acc.setAppProperty("HistogramPersistency","ROOT")
329  return acc
330 

◆ ZdcNtupleRun3Cfg()

def python.ZdcRecConfig.ZdcNtupleRun3Cfg (   flags,
**  kwargs 
)

Definition at line 331 of file ZdcRecConfig.py.

331 def ZdcNtupleRun3Cfg(flags,**kwargs):
332 
333  acc = ComponentAccumulator()
334  acc.merge(ZdcNtupleCfg(flags,
335  useGRL = False,
336  zdcOnly = True,
337  lhcf2022 = False,
338  lhcf2022zdc = False,
339  lhcf2022afp = False,
340  enableTrigger = not flags.Input.isMC,
341  enableOutputSamples = True,
342  enableOutputTree = True,
343  writeOnlyTriggers = False,
344  enableRPD = flags.Detector.EnableZDC_RPD,
345  enableCentroid = flags.Detector.EnableZDC_RPD,
346  reprocZdc = False,
347  **kwargs))
348 
349  acc.addService(CompFactory.THistSvc(Output = ["ANALYSIS DATAFILE='NTUP.root' OPT='RECREATE'"]))
350  #acc.setAppProperty("HistogramPersistency","ROOT")
351  return acc
352 

◆ ZdcRecCfg()

def python.ZdcRecConfig.ZdcRecCfg (   flags)
Configure Zdc analysis alg
Additional arguments are useful in calibration runs

Definition at line 431 of file ZdcRecConfig.py.

431 def ZdcRecCfg(flags):
432  """Configure Zdc analysis alg
433  Additional arguments are useful in calibration runs
434  """
435 
436  acc = ComponentAccumulator()
437 
438  run = flags.GeoModel.Run
439 
440  # debugging message since the metadata isn't working for calibration files yet
441  print ("ZdcRecConfig.py: run = "+run.name)
442 
443  if (run == LHCPeriod.Run2):
444  print ('ZdcRecConfig.py: setting up Run 2!')
445  acc.merge(ZdcRecRun2Cfg(flags))
446  elif (run == LHCPeriod.Run3):
447  print ('ZdcRecConfig.py: setting up Run 3!')
448  acc.merge(ZdcRecRun3Cfg(flags))
449  else:
450  print ('ZdcRecConfig.py: setting up nothing (problem)!')
451 
452  if flags.Output.doWriteESD or flags.Output.doWriteAOD:
453  acc.merge(ZdcRecOutputCfg(flags))
454 
455  return acc
456 
457 

◆ ZdcRecOutputCfg()

def python.ZdcRecConfig.ZdcRecOutputCfg (   flags)

Definition at line 90 of file ZdcRecConfig.py.

90 def ZdcRecOutputCfg(flags):
91 
92  acc = ComponentAccumulator()
93 
94  ZDC_ItemList=[]
95  if flags.Input.Format is Format.BS:
96  ZDC_ItemList.append("xAOD::ZdcModuleContainer#ZdcModules")
97  ZDC_ItemList.append("xAOD::ZdcModuleAuxContainer#ZdcModulesAux.")
98  ZDC_ItemList.append("xAOD::ZdcModuleContainer#ZdcSums")
99  ZDC_ItemList.append("xAOD::ZdcModuleAuxContainer#ZdcSumsAux.")
100 
101  acc.merge(addToESD(flags,ZDC_ItemList))
102  acc.merge(addToAOD(flags,ZDC_ItemList))
103 
104  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
105  acc.merge(SetupMetaDataForStreamCfg(flags,streamName="AOD"))
106 
107 
108  return acc
109 
110 

◆ ZdcRecRun2Cfg()

def python.ZdcRecConfig.ZdcRecRun2Cfg (   flags)

Definition at line 178 of file ZdcRecConfig.py.

178 def ZdcRecRun2Cfg(flags):
179  acc = ComponentAccumulator()
180  config = SetConfigTag(flags)
181  print ('ZdcRecConfig.py: Running with config tag ', config)
182 
183  doCalib = False
184  doTimeCalib = False
185  doTrigEff = False
186  doNonLinCorr = False
187  doFADCCorr = False
188 
189  if flags.Input.ProjectName == "data15_hi":
190  doCalib = True
191  doTimeCalib = True
192  doTrigEff = True
193  elif flags.Input.ProjectName == "data17_13TeV":
194  doCalib = False
195  doTimeCalib = False
196  doTrigEff = False
197  elif flags.Input.ProjectName == "data16_hip":
198  doCalib = True
199  doTimeCalib = False
200  doTrigEff = False
201  elif flags.Input.ProjectName == "data18_hi":
202  doCalib = True
203  doTimeCalib = False
204  doTrigEff = False
205 
206  acc.merge(ByteStreamReadCfg(flags, type_names=['xAOD::TriggerTowerContainer/ZdcTriggerTowers',
207  'xAOD::TriggerTowerAuxContainer/ZdcTriggerTowersAux.']))
208 
209  acc.addEventAlgo(CompFactory.ZdcByteStreamRawDataV2())
210  acc.addEventAlgo(CompFactory.ZdcRecV3Decode())
211 
212  anaTool = acc.popToolsAndMerge(ZdcAnalysisToolCfg(flags,2,config,doCalib,doFADCCorr,doNonLinCorr,doTimeCalib,doTrigEff))
213 
214  acc.addEventAlgo(CompFactory.ZdcRecV3("ZdcRecV3",ZdcAnalysisTool=anaTool))
215 
216  return acc
217 

◆ ZdcRecRun3Cfg()

def python.ZdcRecConfig.ZdcRecRun3Cfg (   flags)

Definition at line 218 of file ZdcRecConfig.py.

218 def ZdcRecRun3Cfg(flags):
219 
220  acc = ComponentAccumulator()
221  config = SetConfigTag(flags)
222  print ('ZdcRecConfig.py: Running with config tag ', config)
223 
224  doCalib = False
225  doTimeCalib = False
226  doTrigEff = False
227  doFADCCorr = False
228  doNonLinCorr = True #default for 2023
229  ForceCalibRun = -1
230  ForceCalibLB = 814
231 
232  if flags.Input.TriggerStream != "calibration_ZDCInjCalib" and flags.Input.TriggerStream != "calibration_DcmDummyProcessor":
233  if flags.Common.isOnline: # calibration file for ongoing run not available - copy calib file from eos & hard code the run + lb
234  doCalib = True
235  doTimeCalib = True
236  if flags.Input.ProjectName == "data24_5p36TeV" or flags.Input.ProjectName == "data24_refcomm":
237  ForceCalibRun = 488239
238  ForceCalibLB = 1
239  elif flags.Input.ProjectName == "data24_hi" or flags.Input.ProjectName == "data24_hicomm":
240  ForceCalibRun = 488980 # place holder available at point1 - replace with a 2024 run during data taking
241  ForceCalibLB = 80
242  else:
243  doCalib = False
244  doTimeCalib = False
245  elif flags.Input.ProjectName == "data23_comm":
246  doCalib = True
247  elif flags.Input.ProjectName == "data23_hi": # for "data24_hi" or "data24_5p36TeV," need to also check flags.Input.TriggerStream != "calibration_ZDCInjCalib"
248  doCalib = True
249  doTimeCalib = True
250  elif flags.Input.ProjectName == "data24_hi": # for "data24_hi" or "data24_5p36TeV," need to also check flags.Input.TriggerStream != "calibration_ZDCInjCalib"
251  doCalib = True
252  doTimeCalib = True
253  doFADCCorr = True
254  doNonLinCorr = False
255 
256  doRPD = flags.Detector.EnableZDC_RPD
257 
258  print('ZdcRecRun3Cfg: doCalib = '+str(doCalib)+' for project '+flags.Input.ProjectName)
259  print('RPD enable flag is '+str(doRPD))
260 
261  anaTool = acc.popToolsAndMerge(ZdcAnalysisToolCfg(flags,3,config,doCalib,doFADCCorr,doNonLinCorr,doTimeCalib,doTrigEff,ForceCalibRun,ForceCalibLB))
262 
263  if (doRPD):
264  rpdAnaTool = acc.popToolsAndMerge(RPDAnalysisToolCfg(flags, config))
265  centroidTool = acc.popToolsAndMerge(RpdSubtractCentroidToolCfg(flags, config))
266 
267  if ( flags.Input.isMC ):
268  zdcTools = [anaTool] # expand list as needed
269  if doRPD:
270  zdcTools += [rpdAnaTool,centroidTool]
271  elif ( flags.Trigger.doZDC ): # if doZDC flag is true we are in a trigger reprocessing -> no TrigValidTool
272  zdcTools = [anaTool] # expand list as needed
273  elif flags.Input.TriggerStream == "calibration_ZDCInjCalib" or flags.Input.TriggerStream == "calibration_DcmDummyProcessor":
274  zdcTools = [anaTool] # no trigger / RPD / centroid - either online or offline
275  elif (flags.Common.isOnline): # running online + NOT injector pulse: with RPD + centroid but no trigger validation for now; may add later
276  zdcTools = [anaTool] # expand list as needed
277  if doRPD:
278  zdcTools += [rpdAnaTool,centroidTool]
279  else: # default (not MC, not trigger repoc, not injector pulse, not online)
280  trigTool = acc.popToolsAndMerge(ZdcTrigValToolCfg(flags,config))
281  zdcTools = [anaTool,trigTool] # expand list as needed
282  if doRPD:
283  zdcTools += [rpdAnaTool,centroidTool]
284 
285  if flags.Input.Format is Format.BS:
286  acc.addEventAlgo(CompFactory.ZdcByteStreamLucrodData())
287  acc.addEventAlgo(CompFactory.ZdcRecRun3Decode())
288  if flags.Input.isMC:
289  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
290  acc.merge(PoolReadCfg(flags))
291  acc.addEventAlgo(CompFactory.ZdcMCTruthAlg())
292 
293  zdcAlg = CompFactory.ZdcRecRun3("ZdcRecRun3",ZdcAnalysisTools=zdcTools)
294  acc.addEventAlgo(zdcAlg, primary=True)
295 
296  return acc
297 

◆ ZdcTrigValToolCfg()

def python.ZdcRecConfig.ZdcTrigValToolCfg (   flags,
  config = 'PbPb2023' 
)

Definition at line 139 of file ZdcRecConfig.py.

139 def ZdcTrigValToolCfg(flags, config = 'PbPb2023'):
140  acc = ComponentAccumulator()
141 
142  acc.merge(TrigDecisionToolCfg(flags))
143 
144  trigValTool = CompFactory.ZDC.ZdcTrigValidTool(
145  name = 'ZdcTrigValTool',
146  WriteAux = True,
147  AuxSuffix = '',
148  filepath_LUT = 'TrigT1ZDC/zdc_json_PbPb5.36TeV_2023.json') # changed on Oct 13 to accomodate Zdc 1n peak shift
149 
150  trigValTool.TrigDecisionTool = acc.getPublicTool('TrigDecisionTool')
151 
152  trigValTool.triggerList = [c for c in getL1MenuAccess(flags) if 'L1_ZDC_BIT' in c]
153 
154  acc.setPrivateTools(trigValTool)
155 
156  return acc
157 

Variable Documentation

◆ acc

python.ZdcRecConfig.acc = MainServicesCfg(flags)

Definition at line 561 of file ZdcRecConfig.py.

◆ AODFileName

python.ZdcRecConfig.AODFileName

Definition at line 491 of file ZdcRecConfig.py.

◆ args

python.ZdcRecConfig.args = flags.fillFromArgs(parser=parser)

Definition at line 497 of file ZdcRecConfig.py.

◆ AtlasVersion

python.ZdcRecConfig.AtlasVersion

Definition at line 531 of file ZdcRecConfig.py.

◆ CheckDependencies

python.ZdcRecConfig.CheckDependencies

Definition at line 467 of file ZdcRecConfig.py.

◆ decodeHLT

python.ZdcRecConfig.decodeHLT

Definition at line 480 of file ZdcRecConfig.py.

◆ default

python.ZdcRecConfig.default

Definition at line 496 of file ZdcRecConfig.py.

◆ doCalo

python.ZdcRecConfig.doCalo

Definition at line 483 of file ZdcRecConfig.py.

◆ doMuon

python.ZdcRecConfig.doMuon

Definition at line 482 of file ZdcRecConfig.py.

◆ doTopo

python.ZdcRecConfig.doTopo

Definition at line 484 of file ZdcRecConfig.py.

◆ doWriteAOD

python.ZdcRecConfig.doWriteAOD

Definition at line 493 of file ZdcRecConfig.py.

◆ EDMVersion

python.ZdcRecConfig.EDMVersion

Definition at line 529 of file ZdcRecConfig.py.

◆ enableL1MuonPhase1

python.ZdcRecConfig.enableL1MuonPhase1

Definition at line 481 of file ZdcRecConfig.py.

◆ EnableVerboseViews

python.ZdcRecConfig.EnableVerboseViews

Definition at line 471 of file ZdcRecConfig.py.

◆ EnableZDC_RPD

python.ZdcRecConfig.EnableZDC_RPD

Definition at line 552 of file ZdcRecConfig.py.

◆ flags

python.ZdcRecConfig.flags = initConfigFlags()

Definition at line 465 of file ZdcRecConfig.py.

◆ GeometryAFP

python.ZdcRecConfig.GeometryAFP

Definition at line 474 of file ZdcRecConfig.py.

◆ GeometryALFA

python.ZdcRecConfig.GeometryALFA

Definition at line 475 of file ZdcRecConfig.py.

◆ GeometryLucid

python.ZdcRecConfig.GeometryLucid

Definition at line 476 of file ZdcRecConfig.py.

◆ GeometryMDT

python.ZdcRecConfig.GeometryMDT

Definition at line 477 of file ZdcRecConfig.py.

◆ GeometryMM

python.ZdcRecConfig.GeometryMM

Definition at line 478 of file ZdcRecConfig.py.

◆ GeometryMuon

python.ZdcRecConfig.GeometryMuon

Definition at line 479 of file ZdcRecConfig.py.

◆ GeometryZDC

python.ZdcRecConfig.GeometryZDC

Definition at line 473 of file ZdcRecConfig.py.

◆ GlobalTag

python.ZdcRecConfig.GlobalTag

Definition at line 532 of file ZdcRecConfig.py.

◆ help

python.ZdcRecConfig.help

Definition at line 496 of file ZdcRecConfig.py.

◆ HISTFileName

python.ZdcRecConfig.HISTFileName

Definition at line 492 of file ZdcRecConfig.py.

◆ isCalib

bool python.ZdcRecConfig.isCalib = (flags.Input.TriggerStream == "calibration_ZDCCalib" or flags.Input.TriggerStream == "physics_MinBias" or flags.Input.TriggerStream == "express_express" or flags.Input.TriggerStream == "physics_UCC")

Definition at line 502 of file ZdcRecConfig.py.

◆ isInj

tuple python.ZdcRecConfig.isInj = (flags.Input.TriggerStream == "calibration_ZDCInjCalib")

Definition at line 501 of file ZdcRecConfig.py.

◆ isLED

bool python.ZdcRecConfig.isLED = (flags.Input.TriggerStream == "calibration_ZDCLEDCalib")

Definition at line 500 of file ZdcRecConfig.py.

◆ parser

python.ZdcRecConfig.parser = flags.getArgumentParser()

Definition at line 495 of file ZdcRecConfig.py.

◆ pn

python.ZdcRecConfig.pn = flags.Input.ProjectName

Definition at line 524 of file ZdcRecConfig.py.

◆ ProjectName

python.ZdcRecConfig.ProjectName

Definition at line 521 of file ZdcRecConfig.py.

◆ Run

python.ZdcRecConfig.Run

Definition at line 530 of file ZdcRecConfig.py.

◆ ShowControlFlow

python.ZdcRecConfig.ShowControlFlow

Definition at line 470 of file ZdcRecConfig.py.

◆ ShowDataDeps

python.ZdcRecConfig.ShowDataDeps

Definition at line 468 of file ZdcRecConfig.py.

◆ ShowDataFlow

python.ZdcRecConfig.ShowDataFlow

Definition at line 469 of file ZdcRecConfig.py.

◆ status

python.ZdcRecConfig.status = acc.run()

Definition at line 605 of file ZdcRecConfig.py.

◆ triggerDataAvailable

python.ZdcRecConfig.triggerDataAvailable

Definition at line 556 of file ZdcRecConfig.py.

◆ useTrigger

python.ZdcRecConfig.useTrigger

Definition at line 555 of file ZdcRecConfig.py.

◆ withDetails

python.ZdcRecConfig.withDetails

Definition at line 601 of file ZdcRecConfig.py.

◆ year

python.ZdcRecConfig.year = int(pn.split('_')[0].split('data')[1])

Definition at line 534 of file ZdcRecConfig.py.

◆ zdcConfigMap

dictionary python.ZdcRecConfig.zdcConfigMap = {}

Definition at line 23 of file ZdcRecConfig.py.

◆ zdcMonitorAcc

python.ZdcRecConfig.zdcMonitorAcc = ZdcMonitoringConfig(flags)

Definition at line 586 of file ZdcRecConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.ZdcRecConfig.ZdcRecRun2Cfg
def ZdcRecRun2Cfg(flags)
Definition: ZdcRecConfig.py:178
python.ZdcRecConfig.ZdcNtupleRun2Cfg
def ZdcNtupleRun2Cfg(flags, **kwargs)
Definition: ZdcRecConfig.py:314
python.ZdcRecConfig.ZdcNtupleRun3Cfg
def ZdcNtupleRun3Cfg(flags, **kwargs)
Definition: ZdcRecConfig.py:331
python.ZdcRecConfig.ZdcTrigValToolCfg
def ZdcTrigValToolCfg(flags, config='PbPb2023')
Definition: ZdcRecConfig.py:139
python.ByteStreamConfig.ByteStreamReadCfg
def ByteStreamReadCfg(flags, type_names=None)
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:25
python.ZdcRecConfig.ZdcInjNtupleCfg
def ZdcInjNtupleCfg(flags, **kwargs)
Definition: ZdcRecConfig.py:353
python.ZdcRecConfig.ZdcRecCfg
def ZdcRecCfg(flags)
Definition: ZdcRecConfig.py:431
python.ZdcRecConfig.ZdcRecRun3Cfg
def ZdcRecRun3Cfg(flags)
Definition: ZdcRecConfig.py:218
python.ZdcRecConfig.RpdSubtractCentroidToolCfg
def RpdSubtractCentroidToolCfg(flags, str config)
Definition: ZdcRecConfig.py:168
python.TriggerConfigAccess.getL1MenuAccess
L1MenuAccess getL1MenuAccess(flags=None)
Definition: TriggerConfigAccess.py:129
python.ZdcRecConfig.GenerateConfigTagDict
def GenerateConfigTagDict()
Definition: ZdcRecConfig.py:25
python.TrigDecisionToolConfig.getRun3NavigationContainerFromInput
def getRun3NavigationContainerFromInput(flags)
Definition: TrigDecisionToolConfig.py:63
python.ZdcRecConfig.ZdcLEDRecCfg
def ZdcLEDRecCfg(flags)
Definition: ZdcRecConfig.py:384
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
python.ZdcRecConfig.RPDAnalysisToolCfg
def RPDAnalysisToolCfg(flags, str config)
Definition: ZdcRecConfig.py:158
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
python.ZdcRecConfig.ZdcLEDAnalysisToolCfg
def ZdcLEDAnalysisToolCfg(flags, config='ppPbPb2023', DoFADCCorr=True)
Definition: ZdcRecConfig.py:129
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142
python.ZdcRecConfig.ZdcRecOutputCfg
def ZdcRecOutputCfg(flags)
Definition: ZdcRecConfig.py:90
python.ZdcRecConfig.ZdcLEDNtupleCfg
def ZdcLEDNtupleCfg(flags)
Definition: ZdcRecConfig.py:376
str
Definition: BTagTrackIpAccessor.cxx:11
python.ZdcRecConfig.ZdcLEDTrigCfg
def ZdcLEDTrigCfg(flags)
Definition: ZdcRecConfig.py:418
python.ZdcRecConfig.ZdcNtupleLocalCfg
def ZdcNtupleLocalCfg(flags)
Definition: ZdcRecConfig.py:298
python.ZdcRecConfig.SetConfigTag
def SetConfigTag(flags)
Definition: ZdcRecConfig.py:54
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:222
ZdcNtupleConfig.ZdcNtupleCfg
def ZdcNtupleCfg(flags, name="AnalysisAlg", **kwargs)
Definition: ZdcNtupleConfig.py:7
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69
python.ZdcRecConfig.ZdcAnalysisToolCfg
def ZdcAnalysisToolCfg(flags, run, config="PbPb2023", DoCalib=False, DoFADCCorr=False, DoNonLinCorr=False, DoTimeCalib=False, DoTrigEff=False, ForceCalibRun=-1, ForceCalibLB=814)
Definition: ZdcRecConfig.py:111