7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from ZdcRec.ZdcRecConfig
import ZdcRecRun2Cfg, ZdcRecRun3Cfg,ZdcRecOutputCfg
11 from AthenaConfiguration.ComponentFactory
import CompFactory
14 pn = flags.Input.ProjectName
15 year =
int(pn.split(
'_')[0].
split(
'data')[1])
18 acc.addEventAlgo(CompFactory.LVL1.TrigT1ZDC(filepath_LUT = flags.Trigger.ZdcLUT,
19 EnergyADCScale = 0.4))
22 acc.addEventAlgo(CompFactory.LVL1.TrigT1Run3ZDC(filepath_LUT =
'TrigT1ZDC/zdc_json_PbPb5.36TeV_2024_TriggerSim.json',
25 NegHG2ndDerivThresh = 45,
26 NegLG2ndDerivThresh = 15,
30 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
35 if __name__ ==
'__main__':
37 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
38 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
42 flags.Input.Files = [
'/eos/atlas/atlascerngroupdisk/phys-hi/trig-heavyion/data18_hi.00367273.physics_EnhancedBias.merge.RAW/data18_hi.00367273.physics_EnhancedBias.merge.RAW._lb0251._SFO-7._0002.1']
43 flags.Common.isOnline=
False
44 flags.Exec.MaxEvents=100
45 flags.Concurrency.NumThreads = 1
46 flags.Concurrency.NumConcurrentEvents=1
47 flags.Scheduler.ShowDataDeps=
True
48 flags.Scheduler.CheckDependencies=
True
49 flags.Scheduler.ShowDataFlow=
True
50 flags.Trigger.enableL1MuonPhase1=
True
51 flags.Trigger.triggerMenuSetup=
'PhysicsP1_HI_run3_v1'
52 flags.Trigger.EDMVersion=3
53 flags.Trigger.doZDC=
True
54 flags.Trigger.enableL1CaloPhase1 =
False
55 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
61 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
64 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
67 from TrigConfigSvc.TrigConfigSvcCfg
import generateL1Menu
70 from TriggerJobOpts.Lvl1SimulationConfig
import Lvl1SimulationCfg
73 acc.getEventAlgo(
"CTPSimulation").OutputLevel=INFO
74 acc.getEventAlgo(
"LVL1::TrigT1ZDC").OutputLevel=DEBUG
77 acc.printConfig(withDetails=
True, summariseProps=
True, printDefaults=
True)
78 with open(
"L1Sim.pkl",
"wb")
as p:
82 sys.exit(acc.run().isFailure())