ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondTest
python
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)
Constants
MicroMegaCablingTester.MicroMegaCablingTestAlgCfg
MicroMegaCablingTestAlgCfg(flags, name="MMCablingTestAlg")
Definition
MicroMegaCablingTester.py:3
Generated on
for ATLAS Offline Software by
1.17.0