9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from AthenaCommon.CFElements
import parOR
16 from AthenaCommon.CFElements
import seqAND
17 acc.addSequence(
seqAND(
'L1SimSeq'))
19 if flags.Trigger.enableL1CaloLegacy:
20 acc.addSequence(
seqAND(
'L1CaloLegacySimSeq'), parentName=
'L1SimSeq')
21 from TrigT1CaloSim.TrigT1CaloSimRun2Config
import L1CaloLegacySimCfg
24 acc.addSequence(
seqAND(
'L1CaloSimSeq'), parentName=
'L1SimSeq')
26 if flags.Trigger.enableL1CaloPhase1:
27 from L1CaloFEXSim.L1CaloFEXSimCfg
import L1CaloFEXSimCfg
31 if flags.Trigger.enableL1MuonPhase1:
32 acc.addSequence(
seqAND(
'L1MuonSimSeq'), parentName=
'L1SimSeq')
33 from TriggerJobOpts.Lvl1MuonSimulationConfig
import Lvl1MuonSimulationCfg
36 if flags.Trigger.L1.doTopo:
37 acc.addSequence(
seqAND(
'L1TopoSimSeq'), parentName=
'L1SimSeq')
38 from L1TopoSimulation.L1TopoSimulationConfig
import L1TopoSimulationCfg
41 if flags.Trigger.L1.doGlobal:
42 globalSimSeqName =
'L0GlobalSimSeq'
43 acc.addSequence(
parOR(globalSimSeqName), parentName=
'L1SimSeq')
44 from GlobalSimulation.GlobalL1TopoSimulation
import GlobalL1TopoSimulationCfg
47 if flags.Trigger.doZDC:
48 acc.addSequence(
seqAND(
'L1ZDCSimSeq'),parentName=
'L1SimSeq')
49 from TrigT1ZDC.TrigT1ZDCConfig
import L1ZDCSimCfg
50 acc.merge(
L1ZDCSimCfg(flags), sequenceName =
'L1ZDCSimSeq')
52 if flags.Trigger.doTRT:
53 acc.addSequence(
seqAND(
'L1TRTSimSeq'),parentName=
'L1SimSeq')
54 from TrigT1TRT.TrigT1TRTConfig
import L1TRTSimCfg
55 acc.merge(
L1TRTSimCfg(flags), sequenceName =
'L1TRTSimSeq')
58 acc.addSequence(
seqAND(
'L1CTPSimSeq'), parentName=
'L1SimSeq')
59 from TrigT1CTP.CTPSimulationConfig
import CTPSimulationCfg
65 if __name__ ==
'__main__':
67 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
70 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TriggerTest/valid1.601229.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep.recon.RDO.e8514_e8528_s4159_s4114_r14799_tid34171421_00/RDO.34171421._000011.pool.root.1']
71 flags.Exec.MaxEvents = 5
72 flags.Concurrency.NumThreads = 1
73 flags.Trigger.triggerMenuSetup =
'Dev_pp_run3_v1'
74 flags.IOVDb.GlobalTag=
"OFLCOND-MC23-SDR-RUN3-05"
75 flags.Trigger.doHLT =
True
79 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
82 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
85 from TrigConfigSvc.TrigConfigSvcCfg
import generateL1Menu
90 acc.printConfig(withDetails=
True, summariseProps=
True, printDefaults=
True)
91 sys.exit(acc.run().isFailure())