19 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
20 from AthenaConfiguration.Enums
import Format
23 """defines outputs for ESD and AOD; provides the same information as in ForwardRec/ZDC_Rec_OutputItemList_jobOptions.py"""
24 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
29 if flags.Input.Format
is Format.BS:
31 ZDC_ItemList.append(
"xAOD::ZdcModuleContainer#ZdcModules")
32 ZDC_ItemList.append(
"xAOD::ZdcModuleAuxContainer#ZdcModulesAux.")
34 if flags.Output.doWriteESD:
36 if flags.Output.doWriteAOD:
42 """defines ZDC reconstruction; provides the same setup as used to be in ForwardRec/ForwardRec_jobOptions.py"""
45 if flags.Input.Format
is Format.BS:
46 from AthenaConfiguration.ComponentFactory
import CompFactory
48 acc.addEventAlgo(CompFactory.ZdcByteStreamLucrodData(
"ZdcByteStreamLucrodData"))
49 acc.addEventAlgo(CompFactory.ZdcRecRun3(
"ZdcRecRun3"))
52 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
58 if __name__ ==
"__main__":
60 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
62 flags.Scheduler.CheckDependencies =
True
63 flags.Scheduler.ShowDataDeps =
True
64 flags.Scheduler.ShowDataFlow =
True
65 flags.Scheduler.ShowControlFlow =
True
66 flags.Scheduler.EnableVerboseViews =
True
68 flags.Input.Files = [
"/eos/atlas/atlascerngroupdisk/det-zdc/ZDCRuns/2021/data21_900GeV/main/data21_900GeV.00405396.physics_Main.daq.RAW/data21_900GeV.00405396.physics_Main.daq.RAW._lb0211._SFO-13._0001.data"]
70 flags.Exec.MaxEvents=500
71 flags.Concurrency.NumThreads=4
77 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
79 acc.getEventAlgo(
"SGInputLoader").FailIfNoProxy =
True
82 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
88 acc.foreach_component(
"*ZDC*").OutputLevel=DEBUG
90 acc.printConfig(withDetails=
True, summariseProps=
True)
93 if status.isFailure():