ATLAS Offline Software
testFastMdtDigi.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 # Small CA snippet to run the MDT fast-digi test on an xAOD file containing sim hits.
4 # Will schedule fast digitisation and subsequently dump the validation NTuple.
5 if __name__=="__main__":
6  from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, executeTest,setupHistSvcCfg
7  parser = SetupArgParser()
8  parser.set_defaults(nEvents = -1)
9  parser.set_defaults(inputFile=["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/R4SimHits.pool.root"])
10  parser.set_defaults(eventPrintoutLevel = 500)
11 
12  args = parser.parse_args()
13  flags, cfg = setupGeoR4TestCfg(args)
14 
15  from xAODMuonSimHitCnv.MuonSimHitCnvCfg import xAODSimHitToMdtMeasCnvAlgCfg
16  from MuonFastDigiTest.MuonFastDigiTesterConfig import MDTFastDigiTesterCfg
17 
18  cfg.merge(setupHistSvcCfg(flags,out_file=args.outRootFile,out_stream="MuonFastDigiTest"))
19  cfg.merge(xAODSimHitToMdtMeasCnvAlgCfg(flags))
20  cfg.merge(MDTFastDigiTesterCfg(flags))
21 
22  executeTest(cfg, args.nEvents)
python.testGeoModel.executeTest
def executeTest(cfg, num_events=1)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:188
python.MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
python.testGeoModel.setupGeoR4TestCfg
def setupGeoR4TestCfg(args, setupSimJob=False)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:99
python.testGeoModel.setupHistSvcCfg
def setupHistSvcCfg(flags, out_file="MdtGeoDump.root", out_stream="GEOMODELTESTER")
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:54
MuonFastDigiTesterConfig.MDTFastDigiTesterCfg
def MDTFastDigiTesterCfg(flags, name="MDTFastDigiTester", **kwargs)
Definition: MuonFastDigiTesterConfig.py:7
MuonSimHitCnvCfg.xAODSimHitToMdtMeasCnvAlgCfg
def xAODSimHitToMdtMeasCnvAlgCfg(flags, name="SimHitToMdtMeasurementCnvAlg", **kwargs)
Definition: MuonSimHitCnvCfg.py:6