3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from MuonConfig.MuonDataPrepConfig
import PrimaryMeasContNamesCfg
12 from MuonObjectMarker.ObjectMarkerConfig
import TruthMeasMarkerAlgCfg
14 kwargs.setdefault(
"TruthSegDecors", [markerAlg.SegmentLinkKey])
15 kwargs[
"TruthSegDecors"] += [markerAlg.SegmentLinkKey]
16 the_tool = CompFactory.MuonValR4.PatternVisualizationTool(name, **kwargs)
17 result.setPrivateTools(the_tool)
23 kwargs.setdefault(
"isMC", flags.Input.isMC)
24 theAlg = CompFactory.MuonValR4.MuonRecoChainTester(name, **kwargs)
25 result.addEventAlgo(theAlg, primary =
True)
30 if not flags.Input.isMC:
31 kwargs.setdefault(
"TruthSegmentKey",
"")
32 theAlg = CompFactory.MuonValR4.MuonHoughTransformTester(name, **kwargs)
33 result.addEventAlgo(theAlg, primary=
True)
38 from MuonConfig.MuonSegmentFindingConfig
import MuonLayerHoughAlgCfg, MuonSegmentFinderAlgCfg, MuonSegmentCnvAlgCfg
43 from MuonConfig.MuonTrackBuildingConfig
import MuPatTrackBuilderCfg
45 from xAODTrackingCnv.xAODTrackingCnvConfig
import MuonStandaloneTrackParticleCnvAlgCfg
48 from MuonCombinedConfig.MuonCombinedReconstructionConfig
import MuonCombinedMuonCandidateAlgCfg, MuonSegContainerMergerAlgCfg
55 SegmentContainerName=
"TrkMuonSegments",
56 xAODContainerName=
"MuonSegments"))
59 name =
"UnAssocMuonSegmentAlg",
60 SegmentContainerName=
"UnAssocMuonTrkSegments",
61 xAODContainerName=
"UnAssocMuonSegments"))
64 from MuonCombinedConfig.MuonCombinedReconstructionConfig
import MuonCreatorAlgCfg
65 result.merge(
MuonCreatorAlgCfg(flags, TagMaps=[], CreateSAmuons =
True, MakeClusters=
False,
66 ClusterContainerName=
""))
68 result.getEventAlgo(
"MuonCreatorAlg").MuonCreatorTool.RequireMSOEforSA =
False
71 from DerivationFrameworkMuons.MuonsToolsConfig
import DiMuonTaggingAlgCfg
72 result.merge(
DiMuonTaggingAlgCfg(flags, applyTrigger=
False, Mu1RequireQual =
False, Mu2RequireQual =
False,
73 UseTrackProbe =
False, InvariantMassLow=60. * 1000.,
74 TrackContainerKey =
"MuonSpectrometerTrackParticles", BranchPrefix=
"HabemusZ"))
77 from MuonObjectMarker.ObjectMarkerConfig
import SegmentMarkerAlgCfg, MeasurementMarkerAlgCfg
78 result.merge(
SegmentMarkerAlgCfg(flags, SelectMuons=
"passHabemusZ", SegmentKey=
"MuonSegments"))
81 SegmentKey=
"MuonSegments", SegmentLinkKey=
"HabemusZ"))
83 from MuonObjectMarker.ObjectMarkerConfig
import MuonSegmentFitParDecorAlgCfg
85 SegmentKey=
"MuonSegments"))
87 SegmentKey=
"UnAssocMuonSegments"))
90 from xAODMuonViewAlgs.ViewAlgsConfig
import SegmentViewAlgCfg
92 SegmentsKeys=[
"UnAssocMuonSegments",
"MuonSegments"],
93 ViewKey=
"LegacyChainSegments"))
99 from MuonPatternCnv.MuonPatternCnvConfig
import MuonPatternCnvAlgCfg
101 PatternCombiKey=
"R4HoughPatterns",
102 HoughDataPerSecKey=
"R4HoughDataPerSec"))
103 from MuonConfig.MuonSegmentFindingConfig
import MuonSegmentFinderAlgCfg, MuonSegmentCnvAlgCfg
105 name=
"MuonSegmentFinderR4Pattern",
106 MuonLayerHoughCombisKey=
"R4HoughPatterns",
107 SegmentCollectionName=
"TrkMuonSegmentsFromHoughR4",
108 NSWSegmentCollectionName=
""))
110 SegmentContainerName=
"TrkMuonSegmentsFromHoughR4",
111 xAODContainerName=
"MuonSegmentsFromHoughR4"))
113 from MuonConfig.MuonTrackBuildingConfig
import MuPatTrackBuilderCfg
115 from xAODTrackingCnv.xAODTrackingCnvConfig
import MuonStandaloneTrackParticleCnvAlgCfg
117 MuonSegmentCollection =
"TrkMuonSegmentsFromHoughR4",
118 SpectrometerTrackOutputLocation=
"MuonTracksFromHoughR4"))
120 TrackContainerName=
"MuonTracksFromHoughR4",
121 xAODTrackParticlesFromTracksContainerName=
"MuonSpectrometerTrackParticlesFromHoughR4"))
124 from MuonObjectMarker.ObjectMarkerConfig
import MuonSegmentFitParDecorAlgCfg
126 SegmentKey=
"MuonSegmentsFromHoughR4"))
133 from MuonSegmentCnv.MuonSegmentCnvConfig
import MuonR4SegmentCnvAlgCfg
136 from MuonConfig.MuonSegmentFindingConfig
import MuonSegmentCnvAlgCfg
138 SegmentContainerName=
"TrackMuonSegmentsR4",
139 xAODContainerName=
"MuonSegmentsFromR4"))
141 from MuonConfig.MuonTrackBuildingConfig
import MuPatTrackBuilderCfg
144 MuonSegmentCollection =
"TrackMuonSegmentsR4",
145 SpectrometerTrackOutputLocation=
"MuonTracksR4"))
146 from xAODTrackingCnv.xAODTrackingCnvConfig
import MuonStandaloneTrackParticleCnvAlgCfg
149 TrackContainerName=
"MuonTracksR4",
150 xAODTrackParticlesFromTracksContainerName=
"MuonSpectrometerTrackParticlesR4"))
152 from MuonObjectMarker.ObjectMarkerConfig
import MuonSegmentFitParDecorAlgCfg
155 SegmentKey=
"MuonSegmentsFromR4"))