ATLAS Offline Software
RpcCablingTesterR4.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 if __name__ == "__main__":
4  from MuonCondTest.RpcCablingTester import RpcCablingTestAlgCfg
5  from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, executeTest, geoModelFileDefault
6  parser = SetupArgParser()
7  parser.add_argument("--JSONFile", help="External cabling JSON file", default="")
8  parser.add_argument("--setupRun4", default=False, action="store_true")
9  parser.set_defaults(nEvents = 1)
10  parser.set_defaults(noMM=True)
11  parser.set_defaults(noSTGC=True)
12  parser.set_defaults(noMdt=True)
13  parser.set_defaults(noTgc=True)
14 
15  args = parser.parse_args()
16  args.geoModelFile = geoModelFileDefault(args.setupRun4)
17  flags, cfg = setupGeoR4TestCfg(args)
18  cfg.merge(RpcCablingTestAlgCfg(flags, TestStations = [], JSONFile = args.JSONFile))
19  cfg.getService("MessageSvc").debugLimit = 2147483647
20  cfg.getService("MessageSvc").verboseLimit = 2147483647
21  cfg.getService("MessageSvc").infoLimit = 2147483647
22 
23  executeTest(cfg)
24 
25 
26 
python.MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
python.testGeoModel.geoModelFileDefault
def geoModelFileDefault(useR4Layout=False)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:5
python.testGeoModel.executeTest
def executeTest(cfg)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:192
python.testGeoModel.setupGeoR4TestCfg
def setupGeoR4TestCfg(args, flags=None)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:103
python.RpcCablingTester.RpcCablingTestAlgCfg
def RpcCablingTestAlgCfg(flags, name="RpcCablingTestAlg", JSONFile="", **kwargs)
Definition: RpcCablingTester.py:3