Skip to content
Snippets Groups Projects
Commit a1190d0d authored by Dylan Remberto Van Arneman's avatar Dylan Remberto Van Arneman
Browse files

Merge branch 'l1simtest' into '24.0'

TriggerJobOpts: cleanup Lvl1 sim tests

See merge request !71794
parents cc21fe70 bc3f6ccf
No related branches found
No related tags found
2 merge requests!718572024-05-31: merge of 24.0 into main,!71794TriggerJobOpts: cleanup Lvl1 sim tests
...@@ -424,15 +424,10 @@ if __name__ == "__main__": ...@@ -424,15 +424,10 @@ if __name__ == "__main__":
from AthenaConfiguration.AllConfigFlags import initConfigFlags from AthenaConfiguration.AllConfigFlags import initConfigFlags
flags = initConfigFlags() flags = initConfigFlags()
flags.Input.Files = ['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TriggerTest/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.merge.RDO.e4993_s3214_r11315/RDO.17533168._000001.pool.root.1'] flags.Input.Files = ['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TriggerTest/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.merge.RDO.e4993_s3214_r11315/RDO.17533168._000001.pool.root.1']
flags.Common.isOnline=False flags.Exec.MaxEvents = 5
flags.Exec.MaxEvents=25
flags.Concurrency.NumThreads = 1 flags.Concurrency.NumThreads = 1
flags.Concurrency.NumConcurrentEvents=1 flags.Trigger.enableL1MuonPhase1 = True
flags.Scheduler.ShowDataDeps=True flags.Trigger.triggerMenuSetup = 'Dev_pp_run3_v1'
flags.Scheduler.CheckDependencies=True
flags.Scheduler.ShowDataFlow=True
flags.Trigger.enableL1MuonPhase1=True
flags.Trigger.triggerMenuSetup='Dev_pp_run3_v1'
flags.fillFromArgs() flags.fillFromArgs()
flags.lock() flags.lock()
...@@ -448,5 +443,4 @@ if __name__ == "__main__": ...@@ -448,5 +443,4 @@ if __name__ == "__main__":
acc.merge(Lvl1MuonSimulationCfg(flags)) acc.merge(Lvl1MuonSimulationCfg(flags))
acc.printConfig(withDetails=True, summariseProps=True, printDefaults=True) acc.printConfig(withDetails=True, summariseProps=True, printDefaults=True)
sys.exit(acc.run().isFailure()) sys.exit(acc.run().isFailure())
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
## @brief this function sets up the top L1 simulation sequence ## @brief this function sets up the top L1 simulation sequence
## ##
...@@ -67,17 +67,12 @@ if __name__ == '__main__': ...@@ -67,17 +67,12 @@ if __name__ == '__main__':
flags = initConfigFlags() flags = initConfigFlags()
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'] 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']
flags.Common.isOnline=False flags.Exec.MaxEvents = 5
flags.Exec.MaxEvents=25
flags.Concurrency.NumThreads = 1 flags.Concurrency.NumThreads = 1
flags.Concurrency.NumConcurrentEvents=1 flags.Trigger.triggerMenuSetup = 'Dev_pp_run3_v1'
flags.Scheduler.ShowDataDeps=True flags.Trigger.enableL1MuonPhase1 = True
flags.Scheduler.CheckDependencies=True
flags.Scheduler.ShowDataFlow=True
flags.Trigger.enableL1MuonPhase1=True
flags.Trigger.triggerMenuSetup='Dev_pp_run3_v1'
flags.Trigger.enableL1CaloPhase1 = True flags.Trigger.enableL1CaloPhase1 = True
flags.Trigger.doHLT= True # this is necessary so that the simulation of L1Calo (if running on MC) gets output with keys that Topo sim expects flags.Trigger.doHLT = True # this is necessary so that the simulation of L1Calo (if running on MC) gets output with keys that Topo sim expects
flags.fillFromArgs() flags.fillFromArgs()
flags.lock() flags.lock()
...@@ -91,12 +86,6 @@ if __name__ == '__main__': ...@@ -91,12 +86,6 @@ if __name__ == '__main__':
generateL1Menu(flags) generateL1Menu(flags)
acc.merge(Lvl1SimulationCfg(flags)) acc.merge(Lvl1SimulationCfg(flags))
from AthenaCommon.Constants import DEBUG
acc.getEventAlgo("CTPSimulation").OutputLevel=DEBUG # noqa: ATL900
acc.printConfig(withDetails=True, summariseProps=True, printDefaults=True) acc.printConfig(withDetails=True, summariseProps=True, printDefaults=True)
with open("L1Sim.pkl", "wb") as p:
acc.store(p)
p.close()
sys.exit(acc.run().isFailure()) sys.exit(acc.run().isFailure())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment