ATLAS Offline Software
run_hypo_mult_ctest.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 
4 if __name__ == '__main__':
5 
6  from AthenaConfiguration.AllConfigFlags import initConfigFlags
7  flags = initConfigFlags()
8  parser = flags.getArgumentParser()
9 
10  parser.add_argument(
11  "-ifex",
12  "--doCaloInput",
13  action="store_true",
14  dest="doCaloInput",
15  help="Decoding L1Calo inputs",
16  default=False,
17  required=False)
18 
19  parser.add_argument(
20  "--dump",
21  action="store_true",
22  help="Write out dumps",
23  default=False)
24 
25  parser.add_argument(
26  "--dumpTerse",
27  action="store_true",
28  help="Write out dumps: tersely",
29  default=False)
30 
31  flags.Concurrency.NumThreads = 1
32  flags.Concurrency.NumConcurrentEvents = 1
33  flags.Trigger.doLVL1 = True
34 
35  flags.Scheduler.ShowDataDeps = True
36  flags.Scheduler.CheckDependencies = True
37  flags.Scheduler.ShowDataFlow = True
38 
39  args = flags.fillFromArgs(parser=parser)
40  flags.lock()
41  flags.dump()
42 
43  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
44  acc = MainServicesCfg(flags)
45 
46  # add in the Algorithm to be run
47  from GlobalSimAlgCfg_hypo_mult_ctest import GlobalSimulationAlgCfg
48  acc.merge(GlobalSimulationAlgCfg(flags, dump=True))
49 
50  if acc.run().isFailure():
51  import sys
52  sys.exit(1)
53 
54 
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:310
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
GlobalSimAlgCfg_Egamma1BDT.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimEgamma1BDTAlg", OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_Egamma1BDT.py:10