Skip to content
Snippets Groups Projects

Progress towards a working ZDC CA configuration (both calibration and reco)

Merged Peter Alan Steinberg requested to merge steinber/athena:23.0-zdc-catrf into 23.0
1 file
+ 18
2
Compare changes
  • Side-by-side
  • Inline
@@ -7,6 +7,8 @@ from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.Enums import Format
from AthenaConfiguration.Enums import LHCPeriod
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
from OutputStreamAthenaPool.OutputStreamConfig import addToAOD
from OutputStreamAthenaPool.OutputStreamConfig import addToESD
@@ -48,7+50,7 @@
if flags.Input.ProjectName == "data15_hi":
config = "PbPb2015"
doCalib = True
doTimeCalib = True
doTrigEff = True
elif flags.Input.ProjectName == "data17_13TeV":
@@ -87,7+89,7 @@
if flags.Input.ProjectName == "data22_13p6TeV":
config = "LHCf2022"
elif flags.Input.ProjectName == "data23_hi":
config = "PbPb20223"
config = "PbPb2023"
acc.addEventAlgo(CompFactory.ZdcByteStreamLucrodData())
anaTool = acc.popToolsAndMerge(ZdcAnalysisToolCfg(flags,3,config,doCalib,doTimeCalib,doTrigEff))
@@ -105,6 +106,10 @@ def ZdcRecCfg(flags):
if flags.Input.Format is Format.BS:
run = flags.GeoModel.Run
# debugging message since the metadata isn't working for calibration files yet
print ("ZdcRecConfig.py: run = "+run.name)
if (run == LHCPeriod.Run2):
acc.merge(ZdcRecRun2Cfg(flags))
elif (run == LHCPeriod.Run3):
@@ -116,10 +121,14 @@ def ZdcRecCfg(flags):
return acc
if __name__ == '__main__':
""" This is selftest & Zdc analysis transform at the same time"""
from AthenaConfiguration.AllConfigFlags import initConfigFlags
from AthenaConfiguration.MainServicesConfig import MainServicesCfg
# This appears to be needed for calibration data (standalone), but is not working at present
GeoModelSvc.AtlasVersion = "ATLAS-R3S-2021-03-00-00"
flags = initConfigFlags()
flags.Detector.GeometryZDC=True
@@ -131,12 +140,19 @@ if __name__ == '__main__':
flags.Trigger.L1.doMuon=False
flags.Trigger.L1.doCalo=False
flags.Trigger.L1.doTopo=False
# This does not work in this context
# run = flags.GeoModel.Run
# The EDM Version should be auto configured, but is not working at the moment, so is set by hand
flags.Trigger.EDMVersion=2
flags.Output.AODFileName="calibAOD.pool.root"
flags.Output.doWriteAOD=True
flags.fillFromArgs()
flags.lock()
acc=MainServicesCfg(flags)
Loading