ATLAS Offline Software
Functions
PatternTestConfig Namespace Reference

Functions

def PatternVisualizationToolCfg (flags, name="PatternVisualizationTool", **kwargs)
 
def MuonRecoChainTesterCfg (flags, name="MuonRecoChainTester", **kwargs)
 
def MuonHoughTransformTesterCfg (flags, name="MuonHoughTransformTester", **kwargs)
 
def LegacyMuonRecoChainCfg (flags)
 
def MuonR4PatternRecoChainCfg (flags)
 
def MuonR4SegmentRecoChainCfg (flags)
 

Function Documentation

◆ LegacyMuonRecoChainCfg()

def PatternTestConfig.LegacyMuonRecoChainCfg (   flags)

Definition at line 36 of file PatternTestConfig.py.

36 def LegacyMuonRecoChainCfg(flags):
37  result = ComponentAccumulator()
38  from MuonConfig.MuonSegmentFindingConfig import MuonLayerHoughAlgCfg, MuonSegmentFinderAlgCfg, MuonSegmentCnvAlgCfg
39 
40  result.merge(MuonLayerHoughAlgCfg(flags))
41  result.merge(MuonSegmentFinderAlgCfg(flags, NSWSegmentCollectionName=""))
42 
43  from MuonConfig.MuonTrackBuildingConfig import MuPatTrackBuilderCfg
44  result.merge(MuPatTrackBuilderCfg(flags))
45  from xAODTrackingCnv.xAODTrackingCnvConfig import MuonStandaloneTrackParticleCnvAlgCfg
46  result.merge(MuonStandaloneTrackParticleCnvAlgCfg(flags))
47 
48  from MuonCombinedConfig.MuonCombinedReconstructionConfig import MuonCombinedMuonCandidateAlgCfg, MuonSegContainerMergerAlgCfg
49  result.merge(MuonCombinedMuonCandidateAlgCfg(flags))
50 
51 
52  result.merge(MuonSegContainerMergerAlgCfg(flags, TagMaps =[], InputSegmentContainers =["TrackMuonSegments"]))
53 
54  result.merge(MuonSegmentCnvAlgCfg(flags,
55  SegmentContainerName="TrkMuonSegments",
56  xAODContainerName="MuonSegments"))
57 
58  result.merge(MuonSegmentCnvAlgCfg(flags,
59  name = "UnAssocMuonSegmentAlg",
60  SegmentContainerName="UnAssocMuonTrkSegments",
61  xAODContainerName="UnAssocMuonSegments"))
62 
63 
64  from MuonCombinedConfig.MuonCombinedReconstructionConfig import MuonCreatorAlgCfg
65  result.merge(MuonCreatorAlgCfg(flags, TagMaps=[], CreateSAmuons = True, MakeClusters= False,
66  ClusterContainerName=""))
67 
68  result.getEventAlgo("MuonCreatorAlg").MuonCreatorTool.RequireMSOEforSA = False
69 
70 
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"))
75 
76 
77  from MuonObjectMarker.ObjectMarkerConfig import SegmentMarkerAlgCfg, MeasurementMarkerAlgCfg
78  result.merge(SegmentMarkerAlgCfg(flags, SelectMuons="passHabemusZ", SegmentKey="MuonSegments"))
79 
80  result.merge(MeasurementMarkerAlgCfg(flags, SelectSegments="passHabemusZ",
81  SegmentKey="MuonSegments", SegmentLinkKey="HabemusZ"))
82 
83  from MuonObjectMarker.ObjectMarkerConfig import MuonSegmentFitParDecorAlgCfg
84  result.merge(MuonSegmentFitParDecorAlgCfg(flags, name="SegmentParDecorAlgMuonSegments",
85  SegmentKey="MuonSegments"))
86  result.merge(MuonSegmentFitParDecorAlgCfg(flags, name="SegmentParDecorAlgUnAssoc",
87  SegmentKey="UnAssocMuonSegments"))
88 
89 
90  from xAODMuonViewAlgs.ViewAlgsConfig import SegmentViewAlgCfg
91  result.merge(SegmentViewAlgCfg(flags,
92  SegmentsKeys=["UnAssocMuonSegments", "MuonSegments"],
93  ViewKey="LegacyChainSegments"))
94 
95  return result
96 

◆ MuonHoughTransformTesterCfg()

def PatternTestConfig.MuonHoughTransformTesterCfg (   flags,
  name = "MuonHoughTransformTester",
**  kwargs 
)

Definition at line 28 of file PatternTestConfig.py.

28 def MuonHoughTransformTesterCfg(flags, name = "MuonHoughTransformTester", **kwargs):
29  result = ComponentAccumulator()
30  if not flags.Input.isMC:
31  kwargs.setdefault("TruthSegmentKey", "")
32  theAlg = CompFactory.MuonValR4.MuonHoughTransformTester(name, **kwargs)
33  result.addEventAlgo(theAlg, primary=True)
34  return result
35 

◆ MuonR4PatternRecoChainCfg()

def PatternTestConfig.MuonR4PatternRecoChainCfg (   flags)

Definition at line 97 of file PatternTestConfig.py.

97 def MuonR4PatternRecoChainCfg(flags):
98  result = ComponentAccumulator()
99  from MuonPatternCnv.MuonPatternCnvConfig import MuonPatternCnvAlgCfg
100  result.merge(MuonPatternCnvAlgCfg(flags,
101  PatternCombiKey="R4HoughPatterns",
102  HoughDataPerSecKey="R4HoughDataPerSec"))
103  from MuonConfig.MuonSegmentFindingConfig import MuonSegmentFinderAlgCfg, MuonSegmentCnvAlgCfg
104  result.merge(MuonSegmentFinderAlgCfg(flags,
105  name="MuonSegmentFinderR4Pattern",
106  MuonLayerHoughCombisKey="R4HoughPatterns",
107  SegmentCollectionName="TrkMuonSegmentsFromHoughR4",
108  NSWSegmentCollectionName=""))
109  result.merge(MuonSegmentCnvAlgCfg(flags, "MuonSegmentCnvAlgFromHoughR4",
110  SegmentContainerName="TrkMuonSegmentsFromHoughR4",
111  xAODContainerName="MuonSegmentsFromHoughR4"))
112 
113  from MuonConfig.MuonTrackBuildingConfig import MuPatTrackBuilderCfg
114 
115  from xAODTrackingCnv.xAODTrackingCnvConfig import MuonStandaloneTrackParticleCnvAlgCfg
116  result.merge(MuPatTrackBuilderCfg(flags, name="TrackBuildingFromHoughR4",
117  MuonSegmentCollection = "TrkMuonSegmentsFromHoughR4",
118  SpectrometerTrackOutputLocation="MuonTracksFromHoughR4"))
119  result.merge(MuonStandaloneTrackParticleCnvAlgCfg(flags,"MuonXAODParticleConvFromHoughR4",
120  TrackContainerName="MuonTracksFromHoughR4",
121  xAODTrackParticlesFromTracksContainerName="MuonSpectrometerTrackParticlesFromHoughR4"))
122 
123 
124  from MuonObjectMarker.ObjectMarkerConfig import MuonSegmentFitParDecorAlgCfg
125  result.merge(MuonSegmentFitParDecorAlgCfg(flags, name="SegmentParDecorAlgHougR4",
126  SegmentKey="MuonSegmentsFromHoughR4"))
127  return result
128 

◆ MuonR4SegmentRecoChainCfg()

def PatternTestConfig.MuonR4SegmentRecoChainCfg (   flags)

Definition at line 129 of file PatternTestConfig.py.

129 def MuonR4SegmentRecoChainCfg(flags):
130  result = ComponentAccumulator()
131 
132 
133  from MuonSegmentCnv.MuonSegmentCnvConfig import MuonR4SegmentCnvAlgCfg
134  result.merge(MuonR4SegmentCnvAlgCfg(flags))
135 
136  from MuonConfig.MuonSegmentFindingConfig import MuonSegmentCnvAlgCfg
137  result.merge(MuonSegmentCnvAlgCfg(flags, "MuonSegmentCnvAlgR4Chain",
138  SegmentContainerName="TrackMuonSegmentsR4",
139  xAODContainerName="MuonSegmentsFromR4"))
140 
141  from MuonConfig.MuonTrackBuildingConfig import MuPatTrackBuilderCfg
142 
143  result.merge(MuPatTrackBuilderCfg(flags, name="TrackBuildingFromR4Segments",
144  MuonSegmentCollection = "TrackMuonSegmentsR4",
145  SpectrometerTrackOutputLocation="MuonTracksR4"))
146  from xAODTrackingCnv.xAODTrackingCnvConfig import MuonStandaloneTrackParticleCnvAlgCfg
147 
148  result.merge(MuonStandaloneTrackParticleCnvAlgCfg(flags,name="MuonXAODParticleConvR4",
149  TrackContainerName="MuonTracksR4",
150  xAODTrackParticlesFromTracksContainerName="MuonSpectrometerTrackParticlesR4"))
151 
152  from MuonObjectMarker.ObjectMarkerConfig import MuonSegmentFitParDecorAlgCfg
153 
154  result.merge(MuonSegmentFitParDecorAlgCfg(flags, name="SegmentParDecorAlgFromR4",
155  SegmentKey="MuonSegmentsFromR4"))
156 
157 
158  return result

◆ MuonRecoChainTesterCfg()

def PatternTestConfig.MuonRecoChainTesterCfg (   flags,
  name = "MuonRecoChainTester",
**  kwargs 
)

Definition at line 21 of file PatternTestConfig.py.

21 def MuonRecoChainTesterCfg(flags,name="MuonRecoChainTester", **kwargs):
22  result = ComponentAccumulator()
23  kwargs.setdefault("isMC", flags.Input.isMC)
24  theAlg = CompFactory.MuonValR4.MuonRecoChainTester(name, **kwargs)
25  result.addEventAlgo(theAlg, primary = True)
26  return result
27 

◆ PatternVisualizationToolCfg()

def PatternTestConfig.PatternVisualizationToolCfg (   flags,
  name = "PatternVisualizationTool",
**  kwargs 
)

Definition at line 7 of file PatternTestConfig.py.

7 def PatternVisualizationToolCfg(flags, name="PatternVisualizationTool", **kwargs):
8  result = ComponentAccumulator()
9  from MuonConfig.MuonDataPrepConfig import PrimaryMeasContNamesCfg
10  kwargs.setdefault("PrdContainer", PrimaryMeasContNamesCfg(flags))
11  if flags.Input.isMC:
12  from MuonObjectMarker.ObjectMarkerConfig import TruthMeasMarkerAlgCfg
13  markerAlg = result.getPrimaryAndMerge(TruthMeasMarkerAlgCfg(flags))
14  kwargs.setdefault("TruthSegDecors", [markerAlg.SegmentLinkKey])
15  kwargs["TruthSegDecors"] += [markerAlg.SegmentLinkKey]
16  the_tool = CompFactory.MuonValR4.PatternVisualizationTool(name, **kwargs)
17  result.setPrivateTools(the_tool)
18  return result
19 
20 
PatternTestConfig.MuonRecoChainTesterCfg
def MuonRecoChainTesterCfg(flags, name="MuonRecoChainTester", **kwargs)
Definition: PatternTestConfig.py:21
python.MuonCombinedReconstructionConfig.MuonCreatorAlgCfg
def MuonCreatorAlgCfg(flags, name="MuonCreatorAlg", **kwargs)
Definition: MuonCombinedReconstructionConfig.py:270
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
PatternTestConfig.PatternVisualizationToolCfg
def PatternVisualizationToolCfg(flags, name="PatternVisualizationTool", **kwargs)
Definition: PatternTestConfig.py:7
python.MuonCombinedReconstructionConfig.MuonSegContainerMergerAlgCfg
def MuonSegContainerMergerAlgCfg(flags, name="MuonSegContainerMergerAlg", **kwargs)
Definition: MuonCombinedReconstructionConfig.py:374
ObjectMarkerConfig.TruthMeasMarkerAlgCfg
def TruthMeasMarkerAlgCfg(flags, name="TruthMeasMarkerAlg", **kwargs)
Definition: ObjectMarkerConfig.py:19
ObjectMarkerConfig.MuonSegmentFitParDecorAlgCfg
def MuonSegmentFitParDecorAlgCfg(flags, name="MuonSegmentFitParDecorAlg", **kwargs)
Definition: ObjectMarkerConfig.py:28
xAODTrackingCnvConfig.MuonStandaloneTrackParticleCnvAlgCfg
def MuonStandaloneTrackParticleCnvAlgCfg(flags, name="MuonStandaloneTrackParticleCnvAlg", **kwargs)
Definition: xAODTrackingCnvConfig.py:331
MuonSegmentCnvConfig.MuonR4SegmentCnvAlgCfg
def MuonR4SegmentCnvAlgCfg(flags, name="MuonR4SegmentCnvAlg", **kwargs)
Definition: MuonSegmentCnvConfig.py:6
ObjectMarkerConfig.SegmentMarkerAlgCfg
def SegmentMarkerAlgCfg(flags, name="SegmentMarkerAlg", **kwargs)
Definition: ObjectMarkerConfig.py:5
python.MuonCombinedReconstructionConfig.MuonCombinedMuonCandidateAlgCfg
def MuonCombinedMuonCandidateAlgCfg(flags, name="MuonCombinedMuonCandidateAlg", **kwargs)
Definition: MuonCombinedReconstructionConfig.py:102
python.MuonTrackBuildingConfig.MuPatTrackBuilderCfg
def MuPatTrackBuilderCfg(flags, name="MuPatTrackBuilder", **kwargs)
Definition: MuonTrackBuildingConfig.py:484
python.MuonsToolsConfig.DiMuonTaggingAlgCfg
def DiMuonTaggingAlgCfg(ConfigFlags, name="DiMuonTaggingTool", **kwargs)
Di-muon tagging tool, for T&P studies.
Definition: MuonsToolsConfig.py:42
PatternTestConfig.MuonHoughTransformTesterCfg
def MuonHoughTransformTesterCfg(flags, name="MuonHoughTransformTester", **kwargs)
Definition: PatternTestConfig.py:28
ViewAlgsConfig.SegmentViewAlgCfg
def SegmentViewAlgCfg(flags, name="SegmentViewAlg", **kwargs)
Definition: ViewAlgsConfig.py:30
ObjectMarkerConfig.MeasurementMarkerAlgCfg
def MeasurementMarkerAlgCfg(flags, name="MeasurementMarkerAlg", **kwargs)
Definition: ObjectMarkerConfig.py:11
python.MuonSegmentFindingConfig.MuonLayerHoughAlgCfg
def MuonLayerHoughAlgCfg(flags, name="MuonLayerHoughAlg", **kwargs)
Definition: MuonSegmentFindingConfig.py:402
python.MuonSegmentFindingConfig.MuonSegmentCnvAlgCfg
def MuonSegmentCnvAlgCfg(flags, name="MuonSegmentCnvAlg", **kwargs)
Definition: MuonSegmentFindingConfig.py:567
PatternTestConfig.LegacyMuonRecoChainCfg
def LegacyMuonRecoChainCfg(flags)
Definition: PatternTestConfig.py:36
PatternTestConfig.MuonR4PatternRecoChainCfg
def MuonR4PatternRecoChainCfg(flags)
Definition: PatternTestConfig.py:97
python.MuonDataPrepConfig.PrimaryMeasContNamesCfg
def PrimaryMeasContNamesCfg(flags)
Definition: MuonDataPrepConfig.py:6
MuonPatternCnvConfig.MuonPatternCnvAlgCfg
def MuonPatternCnvAlgCfg(flags, name="MuonPatternCnvAlg", **kwargs)
Definition: MuonPatternCnvConfig.py:6
python.MuonSegmentFindingConfig.MuonSegmentFinderAlgCfg
def MuonSegmentFinderAlgCfg(flags, name="MuonSegmentMaker", **kwargs)
Definition: MuonSegmentFindingConfig.py:519
PatternTestConfig.MuonR4SegmentRecoChainCfg
def MuonR4SegmentRecoChainCfg(flags)
Definition: PatternTestConfig.py:129