ATLAS Offline Software
MuonCalibrationTesterConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def MdtCalibDbAlgTestCfg(flags, name = "MdtCalibDbAlgTest", **kwargs):
7  result = ComponentAccumulator()
8  theAlg = CompFactory.MuonValR4.MdtCalibDbAlgTest(name, **kwargs)
9  result.addEventAlgo(theAlg, primary=True)
10  return result
11 
12 if __name__=="__main__":
13  from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, executeTest,setupHistSvcCfg
14  parser = SetupArgParser()
15  parser.set_defaults(nEvents = -1)
16  parser.set_defaults(outRootFile="MdtCalibDbAlgTest.root")
17  parser.set_defaults(inputFile=["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonGeomRTT/R4SimHits.pool.root"])
18  parser.set_defaults(defaultGeoFile="RUN4")
19  parser.set_defaults(noMM=True)
20  parser.set_defaults(noSTGC=True)
21  parser.set_defaults(noRpc=True)
22  parser.set_defaults(noTgc=True)
23 
24  args = parser.parse_args()
25  from AthenaConfiguration.AllConfigFlags import initConfigFlags
26  flags = initConfigFlags()
27  flags.PerfMon.doFullMonMT = True
28  flags, cfg = setupGeoR4TestCfg(args,flags)
29 
30  from MuonConfig.MuonDataPrepConfig import xAODUncalibMeasPrepCfg
31  cfg.merge(xAODUncalibMeasPrepCfg(flags))
32 
33  cfg.merge(setupHistSvcCfg(flags,outFile=args.outRootFile,
34  outStream="MdtCalibDbAlgTest"))
35 
36 
37  cfg.merge(MdtCalibDbAlgTestCfg(flags))
38  executeTest(cfg)
39 
40 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
testGeoModel.setupHistSvcCfg
def setupHistSvcCfg(flags, outFile="MdtGeoDump.root", outStream="GEOMODELTESTER")
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:55
testGeoModel.executeTest
def executeTest(cfg)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:227
MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
testGeoModel.setupGeoR4TestCfg
def setupGeoR4TestCfg(args, flags=None)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:126
MuonDataPrepConfig.xAODUncalibMeasPrepCfg
def xAODUncalibMeasPrepCfg(flags)
Configuriation snippet to schedule all algorithms providing the Uncalibrated measurements.
Definition: MuonDataPrepConfig.py:29
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
MuonCalibrationTesterConfig.MdtCalibDbAlgTestCfg
def MdtCalibDbAlgTestCfg(flags, name="MdtCalibDbAlgTest", **kwargs)
Definition: MuonCalibrationTesterConfig.py:6