7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from ZdcRec.ZdcRecConfig
import ZdcRecRun2Cfg, ZdcRecRun3Cfg,ZdcRecOutputCfg
11 from AthenaConfiguration.ComponentFactory
import CompFactory
13 pn = flags.Input.ProjectName
14 year =
int(pn.split(
'_')[0].
split(
'data')[1])
17 acc.addEventAlgo(CompFactory.LVL1.TrigT1ZDC(filepath_LUT = flags.Trigger.ZdcLUT,
18 EnergyADCScale = 0.4))
21 acc.addEventAlgo(CompFactory.LVL1.TrigT1ZDC(filepath_LUT =
'TrigT1ZDC/zdc_json_PbPb5.36TeV_2023.json',
24 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
29 if __name__ ==
'__main__':
31 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
34 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigP1Test/data15_hi.00287843.physics_EnhancedBias.merge.RAW._lb0226._SFO-2._0001.1']
35 flags.Common.isOnline=
False
36 flags.Exec.MaxEvents=100
37 flags.Concurrency.NumThreads = 1
38 flags.Concurrency.NumConcurrentEvents=1
39 flags.Scheduler.ShowDataDeps=
True
40 flags.Scheduler.CheckDependencies=
True
41 flags.Scheduler.ShowDataFlow=
True
42 flags.Trigger.enableL1MuonPhase1=
True
43 flags.Trigger.triggerMenuSetup=
'Dev_HI_run3_v1'
44 flags.Trigger.EDMVersion=3
45 flags.Trigger.doZDC=
True
46 flags.Trigger.enableL1CaloPhase1 =
False
52 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
55 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
58 from TrigConfigSvc.TrigConfigSvcCfg
import generateL1Menu
61 from TriggerJobOpts.Lvl1SimulationConfig
import Lvl1SimulationCfg
64 acc.getEventAlgo(
"CTPSimulation").OutputLevel=INFO
65 acc.getEventAlgo(
"LVL1::TrigT1ZDC").OutputLevel=DEBUG
68 acc.printConfig(withDetails=
True, summariseProps=
True, printDefaults=
True)
69 with open(
"L1Sim.pkl",
"wb")
as p:
73 sys.exit(acc.run().isFailure())