ATLAS Offline Software
TesterTreeConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def TesterTreeAlgCfg(flags, name = "TesterTreeAlg", **kwargs):
7  result = ComponentAccumulator()
8  the_alg = CompFactory.MuonVal.MuonTester.TreeTestAlg(name, **kwargs)
9  result.addEventAlgo(the_alg, primary = True)
10  return result
11 
12 if __name__ == "__main__":
13  from MuonGeoModelTest.testGeoModel import SetupArgParser
14  from AthenaConfiguration.AllConfigFlags import initConfigFlags
15  parser = SetupArgParser()
16  parser.set_defaults(outRootFile="TesterTreeFile.root")
17 
19 
20  flags = initConfigFlags()
21  flags.Concurrency.NumThreads = args.threads
22  flags.Concurrency.NumConcurrentEvents = args.threads # Might change this later, but good enough for the moment.
23  flags.Input.Files = args.inputFile
24  flags.GeoModel.AtlasVersion = args.geoTag
25  flags.IOVDb.GlobalTag = args.condTag
26  flags.Scheduler.ShowDataDeps = True
27  flags.Scheduler.ShowDataFlow = True
28  flags.Exec.MaxEvents = 1
29  flags.lock()
30  from MuonCondTest.MdtCablingTester import setupServicesCfg
31  cfg = setupServicesCfg(flags)
32  from MuonGeoModelTestR4.testGeoModel import setupHistSvcCfg, executeTest
33  cfg.merge(setupHistSvcCfg(flags, outStream="TestStream", outFile = args.outRootFile))
34  cfg.merge(TesterTreeAlgCfg(flags))
35 
36  executeTest(cfg)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MdtCablingTester.setupServicesCfg
def setupServicesCfg(flags)
Definition: MdtCablingTester.py:17
TesterTreeConfig.TesterTreeAlgCfg
def TesterTreeAlgCfg(flags, name="TesterTreeAlg", **kwargs)
Definition: TesterTreeConfig.py:6
python.MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
python.testGeoModel.setupHistSvcCfg
def setupHistSvcCfg(flags, outFile="MdtGeoDump.root", outStream="GEOMODELTESTER")
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:58
python.testGeoModel.executeTest
def executeTest(cfg)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:192
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
confTool.parse_args
def parse_args()
Definition: confTool.py:35