7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from ZdcRec.ZdcRecConfig
import ZdcRecRun3Cfg, ZdcRecOutputCfg
11 from AthenaConfiguration.ComponentFactory
import CompFactory
14 acc.addEventAlgo(CompFactory.LVL1.TrigT1Run3ZDC(filepath_LUT =
'TrigT1ZDC/zdc_json_PbPb5.36TeV_2024_TriggerSim.json',
17 NegHG2ndDerivThresh = 45,
18 NegLG2ndDerivThresh = 15,
22 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
27 if __name__ ==
'__main__':
29 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
30 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
34 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']
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=
'PhysicsP1_HI_run3_v1'
44 flags.Trigger.EDMVersion=3
45 flags.Trigger.doZDC=
True
46 flags.Trigger.enableL1CaloPhase1 =
False
47 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
53 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
56 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
59 from TrigConfigSvc.TrigConfigSvcCfg
import generateL1Menu
62 from TriggerJobOpts.Lvl1SimulationConfig
import Lvl1SimulationCfg
65 acc.printConfig(withDetails=
True, summariseProps=
True, printDefaults=
True)
66 with open(
"L1Sim.pkl",
"wb")
as p:
70 sys.exit(acc.run().isFailure())