3 if __name__==
"__main__":
4 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, executeTest,setupHistSvcCfg
6 parser.add_argument(
"--noMonitorPlots", help=
"If set to true, there're no monitoring plots", default =
False,
8 parser.set_defaults(nEvents = -1)
11 parser.set_defaults(outRootFile=
"HoughTransformTester.root")
13 parser.set_defaults(inputFile=[
15 "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/R3SimHits.pool.root"
17 parser.set_defaults(eventPrintoutLevel = 500)
19 args = parser.parse_args()
20 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
22 flags.PerfMon.doFullMonMT =
True
23 flags.Muon.doFastMMDigitization =
False
29 outStream=
"MuonEtaHoughTransformTest"))
31 from MuonConfig.MuonDataPrepConfig
import xAODUncalibMeasPrepCfg
34 from MuonSpacePointFormation.SpacePointFormationConfig
import MuonSpacePointFormationCfg
37 from MuonPatternRecognitionAlgs.MuonHoughTransformAlgConfig
import MuonPatternRecognitionCfg, MuonSegmentFittingAlgCfg
38 from MuonPatternRecognitionTest.PatternTestConfig
import MuonHoughTransformTesterCfg, PatternVisualizationToolCfg
47 from IOVDbSvc.IOVDbSvcConfig
import addOverride
48 cfg.merge(
addOverride(flags,
"/MDT/TWINMAPPING",
"MDTTwinMapping_compactFormat_Run123"))
52 if not args.noMonitorPlots:
54 CanvasPreFix=
"EtaHoughPlotValid",
55 AllCanvasName=
"AllEtaHoughiDiPuffPlots", displayTruthOnly =
True,
56 saveSinglePDFs =
True, saveSummaryPDF=
True))
58 CanvasPreFix=
"PhiHoughPlotValid",
59 AllCanvasName=
"AllPhiHoughiDiPuffPlots", displayTruthOnly =
True,
60 saveSinglePDFs =
False, saveSummaryPDF=
False))
62 CanvasPreFix=
"SegmentPlotValid",
63 AllCanvasName=
"AllSegmentFitPlots", displayTruthOnly =
True,
64 saveSinglePDFs =
True, saveSummaryPDF=
False))