ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondTest
python
RpcCablingTester.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
def
RpcCablingTestAlgCfg
(flags, name = "RpcCablingTestAlg", JSONFile="",**kwargs):
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
from
MuonConfig.MuonCablingConfig
import
NRPCCablingConfigCfg
7
from
AthenaCommon.Constants
import
DEBUG
8
result = ComponentAccumulator()
9
result.merge(NRPCCablingConfigCfg(flags, JSONFile = JSONFile, OutputLevel = DEBUG ))
10
event_algo = CompFactory.Muon.RpcCablingTestAlg(name, OutputLevel = DEBUG, **kwargs)
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
20
21
parser = SetupArgParser()
22
23
parser.set_defaults(inputFile= defaultTestFiles.ESD_RUN3_MC)
24
args = parser.parse_args()
25
26
flags = initConfigFlags()
27
flags.Muon.enableNRPC =
True
28
flags.Concurrency.NumThreads = 1
29
flags.Exec.MaxEvents = 1
30
flags.Concurrency.NumConcurrentEvents = 1
31
flags.Input.Files = args.inputFile
32
configureCondTag(flags)
33
flags.lock()
34
flags.dump()
35
36
37
cfg = SetupMuonStandaloneCA(flags)
38
39
cfg.merge(
RpcCablingTestAlgCfg
(flags))
40
if
len(args.cablingMap):
41
cfg.getCondAlgo(
"MuonNRPC_CablingAlg"
).JSONFile = args.cablingMap
42
cfg.getService(
"MessageSvc"
).debugLimit = 2147483647
43
cfg.getService(
"MessageSvc"
).verboseLimit = 2147483647
44
cfg.getService(
"MessageSvc"
).infoLimit = 2147483647
45
46
executeTest(cfg)
47
Constants
RpcCablingTester.RpcCablingTestAlgCfg
RpcCablingTestAlgCfg(flags, name="RpcCablingTestAlg", JSONFile="", **kwargs)
Definition
RpcCablingTester.py:3
Generated on
for ATLAS Offline Software by
1.17.0