ATLAS Offline Software
MicroMegaCablingTester.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 def MicroMegaCablingTestAlgCfg(flags, name = "MMCablingTestAlg"):
4  from AthenaConfiguration.ComponentFactory import CompFactory
5  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6  from MuonConfig.MuonCablingConfig import MmCablingCfg
7  from AthenaCommon.Constants import DEBUG
8  result = ComponentAccumulator()
9  result.merge(MmCablingCfg(flags, JSONFile = "MMGZebraShift.json", OutputLevel = DEBUG ))
10  event_algo = CompFactory.MMCablingTestAlg(name, OutputLevel = DEBUG)
11  result.addEventAlgo(event_algo, primary = True)
12  return result
13 
14 if __name__ == "__main__":
15  from AthenaConfiguration.AllConfigFlags import initConfigFlags
16  from MuonCondTest.MdtCablingTester import SetupArgParser
17  from AthenaConfiguration.TestDefaults import defaultTestFiles
18  from MuonConfig.MuonConfigUtils import executeTest, SetupMuonStandaloneCA, configureCondTag
19  parser = SetupArgParser()
20  args = parser.parse_args()
21 
22  flags = initConfigFlags()
23  flags.Concurrency.NumThreads = 1
24  flags.Concurrency.NumConcurrentEvents = 1
25  flags.Exec.MaxEvents = 1
26  flags.Input.Files = defaultTestFiles.ESD_RUN3_DATA22
27  configureCondTag(flags)
28  flags.lock()
29 
30  cfg = SetupMuonStandaloneCA(flags)
31  cfg.merge(MicroMegaCablingTestAlgCfg(flags))
32  flags.dump()
33 
34  executeTest(cfg)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
MuonCablingConfig.MmCablingCfg
def MmCablingCfg(flags, name="MuonMm_CablingAlg", **kwargs)
Definition: MuonCablingConfig.py:176
Constants
some useful constants -------------------------------------------------—
MuonConfigUtils.executeTest
def executeTest(cfg)
Definition: MuonConfigUtils.py:15
MuonConfigUtils.configureCondTag
def configureCondTag(flags)
Definition: MuonConfigUtils.py:19
MuonConfigUtils.SetupMuonStandaloneCA
def SetupMuonStandaloneCA(flags)
Definition: MuonConfigUtils.py:79
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
MicroMegaCablingTester.MicroMegaCablingTestAlgCfg
def MicroMegaCablingTestAlgCfg(flags, name="MMCablingTestAlg")
Definition: MicroMegaCablingTester.py:3