2from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory
import CompFactory
7 outFile="MuonSpacePoints.root", **kwargs):
8 result = ComponentAccumulator()
9 if not flags.Muon.setupTruthAlgorithms:
11 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg
12 result.merge(setupHistSvcCfg(flags, outFile=outFile,
13 outStream=
"ActsMuonTruthDump"))
15 the_alg = CompFactory.MuonValR4.TruthSegmentWriter(name, **kwargs)
16 result.addEventAlgo(the_alg, primary =
True)
21 result = ComponentAccumulator()
22 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg
23 result.merge(setupHistSvcCfg(flags, outFile=outFile,
24 outStream=
"ActsMuonSpacePointDump"))
25 the_alg = CompFactory.MuonValR4.SpacePointWriter(name, **kwargs)
26 result.addEventAlgo(the_alg, primary =
True)
30if __name__==
"__main__":
31 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, MuonPhaseIITestDefaults
32 from MuonConfig.MuonConfigUtils
import executeTest
33 parser = SetupArgParser()
34 parser.set_defaults(nEvents = -1)
35 parser.set_defaults(inputFile=MuonPhaseIITestDefaults.RDO_R3)
37 args = parser.parse_args()
38 flags, cfg = setupGeoR4TestCfg(args)
40 from ActsConfig.ActsGeometryConfig
import ActsWriteTrackingGeometryCfg
41 from MuonConfig.MuonDataPrepConfig
import xAODUncalibMeasPrepCfg
42 from MuonSpacePointFormation.SpacePointFormationConfig
import MuonSpacePointFormationCfg
43 cfg.merge(xAODUncalibMeasPrepCfg(flags))
44 cfg.merge(MuonSpacePointFormationCfg(flags))
46 cfg.merge(ActsWriteTrackingGeometryCfg(flags))
SpacePointWriterCfg(flags, name="SpacePointWriter", outFile="MuonSpacePoints.root", **kwargs)
TruthSegmentWriterCfg(flags, name="TruthSegmentWriter", outFile="MuonSpacePoints.root", **kwargs)