ATLAS Offline Software
run_Egamma1_LArStrip_Fex.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 add_subsystems import add_subsystems
7 
8  from AthenaConfiguration.AllConfigFlags import initConfigFlags
9  flags = initConfigFlags()
10  parser = flags.getArgumentParser()
11 
12  parser.add_argument(
13  "-ifex",
14  "--doCaloInput",
15  action="store_true",
16  dest="doCaloInput",
17  help="Decoding L1Calo inputs",
18  default=False,
19  required=False)
20 
21  parser.add_argument(
22  "--dump",
23  action="store_true",
24  help="Write out dumps",
25  default=False)
26 
27  parser.add_argument(
28  "--dumpTerse",
29  action="store_true",
30  help="Write out dumps: tersely",
31  default=False)
32 
33 
34  from AthenaConfiguration.TestDefaults import defaultTestFiles
35  flags.Input.Files = defaultTestFiles.RAW_RUN3
36 
37 
38  flags.Output.AODFileName = 'AOD.pool.root'
39  flags.Common.isOnline = not flags.Input.isMC
40  flags.Concurrency.NumThreads = 1
41  flags.Concurrency.NumConcurrentEvents = 1
42  flags.Trigger.doLVL1 = True
43 
44  flags.Scheduler.ShowDataDeps = True
45  flags.Scheduler.CheckDependencies = True
46  flags.Scheduler.ShowDataFlow = True
47  flags.Trigger.EDMVersion = 3
48  flags.Trigger.doLVL1 = True
49  flags.Trigger.enableL1CaloPhase1 = True
50 
51  # Enable only calo for this test
52  from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
53 
54  setupDetectorFlags(flags, ['LAr','Tile','MBTS'], toggle_geometry=True)
55 
56  args = flags.fillFromArgs(parser=parser)
57  flags.lock()
58  flags.dump()
59 
60  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
61  acc = MainServicesCfg(flags)
62 
63 
64  # Generate run3 L1 menu
65  from TrigConfigSvc.TrigConfigSvcCfg import L1ConfigSvcCfg, generateL1Menu
66  acc.merge(L1ConfigSvcCfg(flags))
67  generateL1Menu(flags)
68 
69  from AthenaConfiguration.Enums import Format
70  if flags.Input.Format == Format.POOL:
71  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
72  acc.merge(PoolReadCfg(flags))
73  else:
74  subsystems = ('eFex',)
75  acc.merge(add_subsystems(flags, subsystems, args, OutputLevel=flags.Exec.OutputLevel))
76 
77  from TriggerJobOpts.TriggerByteStreamConfig import ByteStreamReadCfg
78  acc.merge(ByteStreamReadCfg(flags))
79 
80  from TrigCaloRec.TrigCaloRecConfig import hltCaloCellSeedlessMakerCfg
81  acc.merge(hltCaloCellSeedlessMakerCfg(flags, roisKey=''))
82 
83  # add in the Algorithm to be run
84  from Egamma1_LArStrip_FexCfg import Egamma1_LArStrip_FexCfg
85  acc.merge(Egamma1_LArStrip_FexCfg(flags,
86  OutputLevel=flags.Exec.OutputLevel,
87  makeCaloCellContainerChecks=False,
88  dump=args.dump,
89  dumpTerse=args.dumpTerse))
90 
91  if acc.run().isFailure():
92  import sys
93  sys.exit(1)
94 
95 
python.TrigConfigSvcCfg.generateL1Menu
def generateL1Menu(flags)
Definition: TrigConfigSvcCfg.py:184
python.ByteStreamConfig.ByteStreamReadCfg
def ByteStreamReadCfg(flags, type_names=None)
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:25
TrigCaloRecConfig.hltCaloCellSeedlessMakerCfg
def hltCaloCellSeedlessMakerCfg(flags, roisKey='UNSPECIFIED')
Definition: TrigCaloRecConfig.py:102
add_subsystems
Definition: add_subsystems.py:1
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.DetectorConfigFlags.setupDetectorFlags
def setupDetectorFlags(flags, custom_list=None, use_metadata=False, toggle_geometry=False, validate_only=False, keep_beampipe=False)
Definition: DetectorConfigFlags.py:289
Egamma1_LArStrip_FexCfg
Definition: Egamma1_LArStrip_FexCfg.py:1
python.TrigConfigSvcCfg.L1ConfigSvcCfg
def L1ConfigSvcCfg(flags)
Definition: TrigConfigSvcCfg.py:198
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69