ATLAS Offline Software
Loading...
Searching...
No Matches
muonSPIdDump.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 MuonSPIdDumpCfg(flags, name="MuonSPIdMaker", **kwargs):
7 result = ComponentAccumulator()
8 from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
9 result.merge(MuonSpacePointFormationCfg(flags))
10 kwargs.setdefault("isMC", flags.Input.isMC)
11 from MuonInference.InferenceConfig import GraphBucketFilterToolCfg
12 kwargs.setdefault("GraphFilterTool", result.popToolsAndMerge(GraphBucketFilterToolCfg(flags)))
13 the_alg = CompFactory.MuonR4.SPIdDumperAlg(name=name, **kwargs)
14 result.addEventAlgo(the_alg, primary = True)
15 return result
16
17
18def main(args):
19 from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg
20 from MuonConfig.MuonConfigUtils import executeTest, setupHistSvcCfg
21 from AthenaConfiguration.AllConfigFlags import initConfigFlags
22 flags = initConfigFlags()
23 flags.PerfMon.doFullMonMT = True
24
25 flags, cfg = setupGeoR4TestCfg(args,flags)
26
27 cfg.merge(setupHistSvcCfg(flags,outFile=args.outRootFile, outStream="MuonSPId"))
28
29 from MuonConfig.MuonDataPrepConfig import xAODUncalibMeasPrepCfg
30 cfg.merge(xAODUncalibMeasPrepCfg(flags))
31
32 from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
33 cfg.merge(MuonSpacePointFormationCfg(flags))
34
35 from MuonPatternRecognitionAlgs.MuonPatternRecognitionConfig import MuonPatternRecognitionCfg
36 cfg.merge(MuonPatternRecognitionCfg(flags))
37
38
39 cfg.merge(MuonSPIdDumpCfg(flags))
40 #cfg.getService("MessageSvc").setVerbose= [ "MuonSPIdMaker"]
41 executeTest(cfg)
42
43
44if __name__=="__main__":
45 from MuonGeoModelTestR4.testGeoModel import SetupArgParser, MuonPhaseIITestDefaults
46 parser = SetupArgParser()
47 parser.set_defaults(nEvents = -1)
48 parser.set_defaults(outRootFile="MuonSPId_R3SimHits.root")
49 parser.set_defaults(inputFile=MuonPhaseIITestDefaults.HITS_PG_R3)
50 args = parser.parse_args()
51 main(args)
52
int main()
Definition hello.cxx:18
MuonSPIdDumpCfg(flags, name="MuonSPIdMaker", **kwargs)