ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibrationTesterConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def 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
12if __name__=="__main__":
13 from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, MuonPhaseIITestDefaults
14 from MuonConfig.MuonConfigUtils import executeTest, setupHistSvcCfg
15 parser = SetupArgParser()
16 parser.set_defaults(nEvents = -1)
17 parser.set_defaults(outRootFile="MdtCalibDbAlgTest.root")
18 parser.set_defaults(inputFile=MuonPhaseIITestDefaults.HITS_PG_R4)
19 parser.set_defaults(defaultGeoFile="RUN4")
20 parser.set_defaults(noMM=True)
21 parser.set_defaults(noSTGC=True)
22 parser.set_defaults(noRpc=True)
23 parser.set_defaults(noTgc=True)
24
25 args = parser.parse_args()
26 from AthenaConfiguration.AllConfigFlags import initConfigFlags
27 flags = initConfigFlags()
28 flags.PerfMon.doFullMonMT = True
29 flags, cfg = setupGeoR4TestCfg(args,flags)
30
31 from MuonConfig.MuonDataPrepConfig import xAODUncalibMeasPrepCfg
32 cfg.merge(xAODUncalibMeasPrepCfg(flags))
33
34 cfg.merge(setupHistSvcCfg(flags,outFile=args.outRootFile,
35 outStream="MdtCalibDbAlgTest"))
36
37
38 cfg.merge(MdtCalibDbAlgTestCfg(flags))
39 executeTest(cfg)
40
41
MdtCalibDbAlgTestCfg(flags, name="MdtCalibDbAlgTest", **kwargs)