ATLAS Offline Software
Functions
python.TrkGlobalChi2FitterConfig Namespace Reference

Functions

def InDetGlobalChi2FitterBaseCfg (flags, name='GlobalChi2FitterBase', **kwargs)
 InDet configs. More...
 
def InDetGlobalChi2FitterCfg (flags, name='InDetGlobalChi2Fitter', **kwargs)
 
def InDetGlobalChi2FitterTRTCfg (flags, name='InDetGlobalChi2FitterTRT', **kwargs)
 
def InDetGlobalChi2FitterLowPtCfg (flags, name='InDetGlobalChi2FitterLowPt', **kwargs)
 
def InDetGlobalChi2FitterBTCfg (flags, name='InDetGlobalChi2FitterBT', **kwargs)
 
def MuonChi2TrackFitterCfg (flags, name='MuonChi2TrackFitter', **kwargs)
 Muon configs. More...
 
def MCTBFitterCfg (flags, name='MCTBFitter', **kwargs)
 
def MCTBFitterMaterialFromTrackCfg (flags, name='MCTBFitterMaterialFromTrack', **kwargs)
 
def MCTBSLFitterCfg (flags, name='MCTBSLFitter', **kwargs)
 
def MCTBSLFitterMaterialFromTrackCfg (flags, name='MCTBSLFitterMaterialFromTrack', **kwargs)
 
def MuonCombinedTrackFitterCfg (flags, name="MuonCombinedTrackFitter", **kwargs)
 
def InDetTrigGlobalChi2FitterCfg (flags, name='InDetTrigTrackFitter', **kwargs)
 InDet trigger config. More...
 
def InDetTrigGlobalChi2FitterCosmicsCfg (flags, name='InDetTrigTrackFitterCosmics', **kwargs)
 
def ITkGlobalChi2FitterBaseCfg (flags, name='ITkGlobalChi2FitterBase', **kwargs)
 ITk configs. More...
 
def ITkGlobalChi2FitterCfg (flags, name='ITkGlobalChi2Fitter', **kwargs)
 

Function Documentation

◆ InDetGlobalChi2FitterBaseCfg()

def python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterBaseCfg (   flags,
  name = 'GlobalChi2FitterBase',
**  kwargs 
)

InDet configs.

Definition at line 24 of file TrkGlobalChi2FitterConfig.py.

25  flags, name='GlobalChi2FitterBase', **kwargs):
26  acc = ComponentAccumulator()
27 
28  if 'TrackingGeometryReadKey' not in kwargs:
29  from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig import (
30  TrackingGeometryCondAlgCfg)
31  cond_alg = TrackingGeometryCondAlgCfg(flags)
32  acc.merge(cond_alg)
33  kwargs.setdefault("TrackingGeometryReadKey",
34  cond_alg.getPrimary().TrackingGeometryWriteKey)
35 
36  from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
37  kwargs.setdefault("ExtrapolationTool", acc.popToolsAndMerge(
38  InDetExtrapolatorCfg(flags)))
39 
40  from TrkConfig.AtlasExtrapolatorToolsConfig import (
41  AtlasNavigatorCfg, AtlasEnergyLossUpdatorCfg,
42  InDetMaterialEffectsUpdatorCfg, InDetMultipleScatteringUpdatorCfg)
43  kwargs.setdefault("NavigatorTool", acc.popToolsAndMerge(
44  AtlasNavigatorCfg(flags, name="InDetNavigator")))
45  kwargs.setdefault("EnergyLossTool", acc.popToolsAndMerge(
47  kwargs.setdefault("MaterialUpdateTool", acc.popToolsAndMerge(
49  kwargs.setdefault("MultipleScatteringTool", acc.popToolsAndMerge(
51 
52  from TrkConfig.TrkExRungeKuttaPropagatorConfig import InDetPropagatorCfg
53  kwargs.setdefault("PropagatorTool", acc.popToolsAndMerge(
54  InDetPropagatorCfg(flags)))
55 
56  from TrkConfig.TrkMeasurementUpdatorConfig import InDetUpdatorCfg
57  kwargs.setdefault("MeasurementUpdateTool", acc.popToolsAndMerge(
58  InDetUpdatorCfg(flags)))
59 
60  from TrkConfig.TrkResidualPullCalculatorConfig import ResidualPullCalculatorCfg
61  kwargs.setdefault("ResidualPullCalculatorTool", acc.popToolsAndMerge(
63 
64  kwargs.setdefault("StraightLine", not flags.BField.solenoidOn)
65  kwargs.setdefault("OutlierCut", 4)
66  kwargs.setdefault("SignedDriftRadius", True)
67  kwargs.setdefault("ReintegrateOutliers", True)
68  kwargs.setdefault("RecalibrateSilicon", True)
69  kwargs.setdefault("RecalibrateTRT", True)
70  kwargs.setdefault("TRTTubeHitCut", 1.75)
71  kwargs.setdefault("MaxIterations", 40)
72  kwargs.setdefault("Acceleration", True)
73  kwargs.setdefault("RecalculateDerivatives",
74  flags.Tracking.doMinBias or
75  flags.Beam.Type is BeamType.Cosmics or
76  flags.Tracking.doBeamGas)
77  kwargs.setdefault("TRTExtensionCuts", True)
78  kwargs.setdefault("TrackChi2PerNDFCut", 7)
79 
80  acc.setPrivateTools(CompFactory.Trk.GlobalChi2Fitter(name, **kwargs))
81  return acc
82 
83 

◆ InDetGlobalChi2FitterBTCfg()

def python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterBTCfg (   flags,
  name = 'InDetGlobalChi2FitterBT',
**  kwargs 
)
Global Chi2 Fitter for backtracking

Definition at line 180 of file TrkGlobalChi2FitterConfig.py.

181  flags, name='InDetGlobalChi2FitterBT', **kwargs):
182  '''
183  Global Chi2 Fitter for backtracking
184  '''
185  kwargs.setdefault("MinPHFCut", 0.)
186  return InDetGlobalChi2FitterCfg(flags, name, **kwargs)
187 
188 

◆ InDetGlobalChi2FitterCfg()

def python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterCfg (   flags,
  name = 'InDetGlobalChi2Fitter',
**  kwargs 
)

Definition at line 84 of file TrkGlobalChi2FitterConfig.py.

84 def InDetGlobalChi2FitterCfg(flags, name='InDetGlobalChi2Fitter', **kwargs):
85  acc = ComponentAccumulator()
86 
87  if 'RotCreatorTool' not in kwargs:
88  from TrkConfig.TrkRIO_OnTrackCreatorConfig import InDetRotCreatorCfg
89  kwargs.setdefault('RotCreatorTool', acc.popToolsAndMerge(
90  InDetRotCreatorCfg(flags)))
91  if 'BroadRotCreatorTool' not in kwargs:
92  from TrkConfig.TrkRIO_OnTrackCreatorConfig import (
93  InDetBroadRotCreatorCfg)
94  kwargs.setdefault('BroadRotCreatorTool', acc.popToolsAndMerge(
96 
97  # PHF cut during fit iterations to save CPU time
98  kwargs.setdefault('MinPHFCut', flags.Tracking.ActiveConfig.minTRTPrecFrac)
99 
100  if (flags.Tracking.useBroadPixClusterErrors or
101  flags.Tracking.useBroadSCTClusterErrors):
102  kwargs.setdefault('RecalibrateSilicon', False)
103 
104  if flags.Beam.Type is BeamType.Cosmics:
105  kwargs.setdefault('MaxOutliers', 99)
106 
107  if (flags.Beam.Type is BeamType.Cosmics or
108  flags.Tracking.doBeamGas):
109  kwargs.setdefault('Acceleration', False)
110 
111  if flags.Tracking.materialInteractions and not flags.BField.solenoidOn:
112  kwargs.setdefault('Momentum', 1000.*Units.MeV)
113 
114  acc.setPrivateTools(acc.popToolsAndMerge(
115  InDetGlobalChi2FitterBaseCfg(flags, name, **kwargs)))
116  return acc
117 
118 

◆ InDetGlobalChi2FitterLowPtCfg()

def python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterLowPtCfg (   flags,
  name = 'InDetGlobalChi2FitterLowPt',
**  kwargs 
)

Definition at line 156 of file TrkGlobalChi2FitterConfig.py.

157  flags, name='InDetGlobalChi2FitterLowPt', **kwargs):
158  acc = ComponentAccumulator()
159 
160  if 'RotCreatorTool' not in kwargs:
161  from TrkConfig.TrkRIO_OnTrackCreatorConfig import InDetRotCreatorCfg
162  kwargs.setdefault('RotCreatorTool', acc.popToolsAndMerge(
163  InDetRotCreatorCfg(flags)))
164  if 'BroadRotCreatorTool' not in kwargs:
165  from TrkConfig.TrkRIO_OnTrackCreatorConfig import (
166  InDetBroadRotCreatorCfg)
167  kwargs.setdefault('BroadRotCreatorTool', acc.popToolsAndMerge(
168  InDetBroadRotCreatorCfg(flags)))
169 
170  kwargs.setdefault('OutlierCut', 5.0)
171  kwargs.setdefault('Acceleration', False)
172  kwargs.setdefault('RecalculateDerivatives', True)
173  kwargs.setdefault('TrackChi2PerNDFCut', 10)
174 
175  acc.setPrivateTools(acc.popToolsAndMerge(
176  InDetGlobalChi2FitterBaseCfg(flags, name, **kwargs)))
177  return acc
178 
179 

◆ InDetGlobalChi2FitterTRTCfg()

def python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterTRTCfg (   flags,
  name = 'InDetGlobalChi2FitterTRT',
**  kwargs 
)

Definition at line 119 of file TrkGlobalChi2FitterConfig.py.

120  flags, name='InDetGlobalChi2FitterTRT', **kwargs):
121  acc = ComponentAccumulator()
122  '''
123  Global Chi2 Fitter for TRT segments with different settings
124  '''
125 
126  if 'RotCreatorTool' not in kwargs:
127  from TrkConfig.TrkRIO_OnTrackCreatorConfig import (
128  InDetRefitRotCreatorCfg)
129  kwargs.setdefault("RotCreatorTool", acc.popToolsAndMerge(
130  InDetRefitRotCreatorCfg(flags)))
131 
132  kwargs.setdefault("MaterialUpdateTool", '')
133  kwargs.setdefault("SignedDriftRadius", True)
134  kwargs.setdefault("RecalibrateSilicon", False)
135  kwargs.setdefault("RecalibrateTRT", False)
136  kwargs.setdefault("TRTTubeHitCut", 2.5)
137  kwargs.setdefault("MaxIterations", 10)
138  kwargs.setdefault("Acceleration", False)
139  kwargs.setdefault("RecalculateDerivatives", False)
140  kwargs.setdefault("TRTExtensionCuts", True)
141  kwargs.setdefault("TrackChi2PerNDFCut", 999999)
142 
143  if flags.Tracking.materialInteractions and not flags.BField.solenoidOn:
144  kwargs.setdefault('Momentum', 1000.*Units.MeV)
145 
146  kwargs.setdefault("OutlierCut", 5)
147  kwargs.setdefault("MaxOutliers",
148  99 if flags.Beam.Type is BeamType.Cosmics else 10)
149  kwargs.setdefault("ReintegrateOutliers", False)
150 
151  acc.setPrivateTools(acc.popToolsAndMerge(
152  InDetGlobalChi2FitterBaseCfg(flags, name, **kwargs)))
153  return acc
154 
155 

◆ InDetTrigGlobalChi2FitterCfg()

def python.TrkGlobalChi2FitterConfig.InDetTrigGlobalChi2FitterCfg (   flags,
  name = 'InDetTrigTrackFitter',
**  kwargs 
)

InDet trigger config.

Definition at line 338 of file TrkGlobalChi2FitterConfig.py.

338 def InDetTrigGlobalChi2FitterCfg(flags, name='InDetTrigTrackFitter', **kwargs):
339  acc = ComponentAccumulator()
340 
341  if 'TrackingGeometryReadKey' not in kwargs:
342  from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig import (
343  TrackingGeometryCondAlgCfg)
344  cond_alg = TrackingGeometryCondAlgCfg(flags)
345  acc.merge(cond_alg)
346  kwargs.setdefault("TrackingGeometryReadKey",
347  cond_alg.getPrimary().TrackingGeometryWriteKey)
348 
349  from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
350  kwargs.setdefault("ExtrapolationTool", acc.popToolsAndMerge(
351  InDetExtrapolatorCfg(flags, name="InDetTrigExtrapolator")))
352  from TrkConfig.AtlasExtrapolatorToolsConfig import (
353  AtlasNavigatorCfg, AtlasEnergyLossUpdatorCfg,
354  AtlasMaterialEffectsUpdatorCfg)
355  kwargs.setdefault("NavigatorTool", acc.popToolsAndMerge(
356  AtlasNavigatorCfg(flags, name="InDetTrigNavigator")))
357  kwargs.setdefault("EnergyLossTool", acc.popToolsAndMerge(
359  kwargs.setdefault("MaterialUpdateTool", acc.popToolsAndMerge(
361  name="InDetTrigMaterialEffectsUpdator")))
362 
363  from TrkConfig.TrkExRungeKuttaPropagatorConfig import (
364  RungeKuttaPropagatorCfg)
365  kwargs.setdefault("PropagatorTool", acc.popToolsAndMerge(
366  RungeKuttaPropagatorCfg(flags, name="InDetTrigRKPropagator",
367  # revisit after mc23a
368  AccuracyParameter=0.0001,
369  MaxStraightLineStep=0.004)))
370 
371  from TrkConfig.TrkMeasurementUpdatorConfig import KalmanUpdatorCfg
372  kwargs.setdefault("MeasurementUpdateTool", acc.popToolsAndMerge(
373  KalmanUpdatorCfg(flags, name="InDetTrigUpdator")))
374 
375  from TrkConfig.TrkRIO_OnTrackCreatorConfig import TrigRotCreatorCfg
376  kwargs.setdefault("RotCreatorTool", acc.popToolsAndMerge(
377  TrigRotCreatorCfg(flags)))
378  # InDetTrigBroadInDetRotCreator, #TODO, we have function to configure it
379  kwargs.setdefault("BroadRotCreatorTool", None)
380 
381  kwargs.setdefault("StraightLine", not flags.BField.solenoidOn)
382  kwargs.setdefault("OutlierCut", 4)
383  kwargs.setdefault("SignedDriftRadius", True)
384  kwargs.setdefault("TrackChi2PerNDFCut", 9)
385  kwargs.setdefault("TRTExtensionCuts", True)
386  kwargs.setdefault("MaxIterations", 40)
387  kwargs.setdefault("Acceleration", True)
388  kwargs.setdefault("MaxOutliers", 10)
389 
390  acc.setPrivateTools(CompFactory.Trk.GlobalChi2Fitter(name, **kwargs))
391  return acc
392 
393 

◆ InDetTrigGlobalChi2FitterCosmicsCfg()

def python.TrkGlobalChi2FitterConfig.InDetTrigGlobalChi2FitterCosmicsCfg (   flags,
  name = 'InDetTrigTrackFitterCosmics',
**  kwargs 
)

Definition at line 394 of file TrkGlobalChi2FitterConfig.py.

395  flags, name='InDetTrigTrackFitterCosmics', **kwargs):
396 
397  kwargs.setdefault("Acceleration", False)
398  kwargs.setdefault("OutlierCut", 10)
399  kwargs.setdefault("TrackChi2PerNDFCut", 20)
400  kwargs.setdefault("MaxOutliers", 99)
401  kwargs.setdefault("TRTExtensionCuts", False)
402 
403  return InDetTrigGlobalChi2FitterCfg(flags, name, **kwargs)
404 
405 

◆ ITkGlobalChi2FitterBaseCfg()

def python.TrkGlobalChi2FitterConfig.ITkGlobalChi2FitterBaseCfg (   flags,
  name = 'ITkGlobalChi2FitterBase',
**  kwargs 
)

ITk configs.

Definition at line 409 of file TrkGlobalChi2FitterConfig.py.

409 def ITkGlobalChi2FitterBaseCfg(flags, name='ITkGlobalChi2FitterBase', **kwargs):
410  acc = ComponentAccumulator()
411 
412  if 'TrackingGeometryReadKey' not in kwargs:
413  from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig import (
414  TrackingGeometryCondAlgCfg)
415  geom_cond = TrackingGeometryCondAlgCfg(flags)
416  acc.merge(geom_cond)
417  kwargs.setdefault("TrackingGeometryReadKey",
418  geom_cond.getPrimary().TrackingGeometryWriteKey)
419 
420  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
421  kwargs.setdefault("ExtrapolationTool", acc.popToolsAndMerge(
422  AtlasExtrapolatorCfg(flags)))
423 
424  from TrkConfig.AtlasExtrapolatorToolsConfig import (
425  AtlasNavigatorCfg, AtlasEnergyLossUpdatorCfg,
426  ITkMaterialEffectsUpdatorCfg, ITkMultipleScatteringUpdatorCfg)
427  kwargs.setdefault("NavigatorTool", acc.popToolsAndMerge(
428  AtlasNavigatorCfg(flags)))
429  kwargs.setdefault("EnergyLossTool", acc.popToolsAndMerge(
431  kwargs.setdefault("MaterialUpdateTool", acc.popToolsAndMerge(
433  kwargs.setdefault("MultipleScatteringTool", acc.popToolsAndMerge(
435 
436  from TrkConfig.TrkExRungeKuttaPropagatorConfig import ITkPropagatorCfg
437  kwargs.setdefault("PropagatorTool", acc.popToolsAndMerge(
438  ITkPropagatorCfg(flags)))
439  from TrkConfig.TrkMeasurementUpdatorConfig import ITkUpdatorCfg
440  kwargs.setdefault("MeasurementUpdateTool", acc.popToolsAndMerge(
441  ITkUpdatorCfg(flags)))
442 
443  kwargs.setdefault("StraightLine", not flags.BField.solenoidOn)
444  kwargs.setdefault("OutlierCut", 4)
445  kwargs.setdefault("SignedDriftRadius", True)
446  kwargs.setdefault("ReintegrateOutliers", True)
447  kwargs.setdefault("RecalibrateSilicon", True)
448  kwargs.setdefault("MaxIterations", 40)
449  kwargs.setdefault("Acceleration", True)
450  kwargs.setdefault("RecalculateDerivatives",
451  flags.Beam.Type is BeamType.Cosmics)
452  kwargs.setdefault("TrackChi2PerNDFCut", 7)
453 
454  acc.setPrivateTools(CompFactory.Trk.GlobalChi2Fitter(name, **kwargs))
455  return acc
456 
457 

◆ ITkGlobalChi2FitterCfg()

def python.TrkGlobalChi2FitterConfig.ITkGlobalChi2FitterCfg (   flags,
  name = 'ITkGlobalChi2Fitter',
**  kwargs 
)

Definition at line 458 of file TrkGlobalChi2FitterConfig.py.

458 def ITkGlobalChi2FitterCfg(flags, name='ITkGlobalChi2Fitter', **kwargs):
459  acc = ComponentAccumulator()
460 
461  if 'RotCreatorTool' not in kwargs:
462  from TrkConfig.TrkRIO_OnTrackCreatorConfig import ITkRotCreatorCfg
463  kwargs.setdefault('RotCreatorTool', acc.popToolsAndMerge(
464  ITkRotCreatorCfg(flags)))
465 
466  if 'BroadRotCreatorTool' not in kwargs:
467  from TrkConfig.TrkRIO_OnTrackCreatorConfig import ITkBroadRotCreatorCfg
468  kwargs.setdefault('BroadRotCreatorTool', acc.popToolsAndMerge(
469  ITkBroadRotCreatorCfg(flags)))
470 
471  if flags.Beam.Type is BeamType.Cosmics:
472  kwargs.setdefault('MaxOutliers', 99)
473  kwargs.setdefault('Acceleration', False)
474 
475  if flags.Tracking.materialInteractions and not flags.BField.solenoidOn:
476  kwargs.setdefault('Momentum', 1000.*Units.MeV)
477 
478  acc.setPrivateTools(acc.popToolsAndMerge(
479  ITkGlobalChi2FitterBaseCfg(flags, name, **kwargs)))
480  return acc

◆ MCTBFitterCfg()

def python.TrkGlobalChi2FitterConfig.MCTBFitterCfg (   flags,
  name = 'MCTBFitter',
**  kwargs 
)

Definition at line 238 of file TrkGlobalChi2FitterConfig.py.

238 def MCTBFitterCfg(flags, name='MCTBFitter', **kwargs):
239  from TrkConfig.AtlasExtrapolatorConfig import MCTBExtrapolatorCfg
240  result = MCTBExtrapolatorCfg(flags)
241  kwargs.setdefault("GetMaterialFromTrack", True)
242  kwargs.setdefault("ExtrapolationTool", result.popPrivateTools())
243  result.setPrivateTools(result.popToolsAndMerge(
244  MuonChi2TrackFitterCfg(flags, name, **kwargs)))
245  return result
246 
247 

◆ MCTBFitterMaterialFromTrackCfg()

def python.TrkGlobalChi2FitterConfig.MCTBFitterMaterialFromTrackCfg (   flags,
  name = 'MCTBFitterMaterialFromTrack',
**  kwargs 
)

Definition at line 248 of file TrkGlobalChi2FitterConfig.py.

249  flags, name='MCTBFitterMaterialFromTrack', **kwargs):
250  return MCTBFitterCfg(flags, name, GetMaterialFromTrack=True, **kwargs)
251 
252 

◆ MCTBSLFitterCfg()

def python.TrkGlobalChi2FitterConfig.MCTBSLFitterCfg (   flags,
  name = 'MCTBSLFitter',
**  kwargs 
)

Definition at line 253 of file TrkGlobalChi2FitterConfig.py.

253 def MCTBSLFitterCfg(flags, name='MCTBSLFitter', **kwargs):
254  kwargs["StraightLine"] = True # always set
255  kwargs.setdefault("Momentum", flags.Muon.straightLineFitMomentum)
256  return MCTBFitterCfg(flags, name, **kwargs)
257 
258 

◆ MCTBSLFitterMaterialFromTrackCfg()

def python.TrkGlobalChi2FitterConfig.MCTBSLFitterMaterialFromTrackCfg (   flags,
  name = 'MCTBSLFitterMaterialFromTrack',
**  kwargs 
)

Definition at line 259 of file TrkGlobalChi2FitterConfig.py.

260  flags, name='MCTBSLFitterMaterialFromTrack', **kwargs):
261  result = ComponentAccumulator()
262  kwargs["GetMaterialFromTrack"] = True # always set
263  from TrkConfig.AtlasExtrapolatorConfig import (
264  MuonStraightLineExtrapolatorCfg)
265  kwargs.setdefault("ExtrapolationTool", result.popToolsAndMerge(
267 
268  from TrkConfig.TrkExRungeKuttaPropagatorConfig import (
269  RungeKuttaPropagatorCfg)
270  kwargs["PropagatorTool"] = result.popToolsAndMerge(
271  RungeKuttaPropagatorCfg(flags, name="MuonRK_Propagator"))
272 
273  result.setPrivateTools(result.popToolsAndMerge(
274  MCTBSLFitterCfg(flags, name, **kwargs)))
275  return result
276 
277 
278 # Unused

◆ MuonChi2TrackFitterCfg()

def python.TrkGlobalChi2FitterConfig.MuonChi2TrackFitterCfg (   flags,
  name = 'MuonChi2TrackFitter',
**  kwargs 
)

Muon configs.

Definition at line 192 of file TrkGlobalChi2FitterConfig.py.

192 def MuonChi2TrackFitterCfg(flags, name='MuonChi2TrackFitter', **kwargs):
193  result = ComponentAccumulator()
194 
195  from TrkConfig.TrkRIO_OnTrackCreatorConfig import MuonRotCreatorCfg
196  kwargs.setdefault("RotCreatorTool", result.popToolsAndMerge(
197  MuonRotCreatorCfg(flags)))
198 
199  from TrkConfig.TrkMeasurementUpdatorConfig import KalmanUpdatorCfg
200  kwargs.setdefault("MeasurementUpdateTool", result.popToolsAndMerge(
201  KalmanUpdatorCfg(flags, name='MuonMeasUpdator')))
202 
203  if 'ExtrapolationTool' not in kwargs:
204  from TrkConfig.AtlasExtrapolatorConfig import MuonExtrapolatorCfg
205  kwargs.setdefault("ExtrapolationTool", result.popToolsAndMerge(
206  MuonExtrapolatorCfg(flags)))
207 
208  from TrkConfig.AtlasExtrapolatorToolsConfig import (
209  AtlasMultipleScatteringUpdatorCfg)
210  kwargs.setdefault("MultipleScatteringTool", result.popToolsAndMerge(
211  AtlasMultipleScatteringUpdatorCfg(flags, UseTrkUtils=True)))
212 
213  kwargs.setdefault("StraightLine", False)
214  kwargs.setdefault("OutlierCut", 3.0)
215  kwargs.setdefault("GetMaterialFromTrack", False)
216  kwargs.setdefault("RejectLargeNScat", True)
217 
218  # take propagator and navigator from the extrapolator
219  extrapolator = kwargs['ExtrapolationTool']
220  kwargs.setdefault("PropagatorTool",
221  extrapolator.Propagators[0]
222  if len(extrapolator.Propagators) > 0
223  else "")
224  kwargs.setdefault("NavigatorTool", extrapolator.Navigator)
225  kwargs.setdefault("EnergyLossTool", extrapolator.EnergyLossUpdater)
226 
227  # We need to include the tracking geometry conditions
228  from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig import (
229  TrackingGeometryCondAlgCfg)
230  geom_cond_key = result.getPrimaryAndMerge(
231  TrackingGeometryCondAlgCfg(flags)).TrackingGeometryWriteKey
232  kwargs.setdefault("TrackingGeometryReadKey", geom_cond_key)
233 
234  result.setPrivateTools(CompFactory.Trk.GlobalChi2Fitter(name, **kwargs))
235  return result
236 
237 

◆ MuonCombinedTrackFitterCfg()

def python.TrkGlobalChi2FitterConfig.MuonCombinedTrackFitterCfg (   flags,
  name = "MuonCombinedTrackFitter",
**  kwargs 
)

Definition at line 279 of file TrkGlobalChi2FitterConfig.py.

280  flags, name="MuonCombinedTrackFitter", **kwargs):
281  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
282  from TrkConfig.AtlasExtrapolatorToolsConfig import (
283  AtlasNavigatorCfg, AtlasEnergyLossUpdatorCfg)
284  from TrkConfig.TrkRIO_OnTrackCreatorConfig import MuonRotCreatorCfg
285  from TrkConfig.TrkExRungeKuttaPropagatorConfig import (
286  MuonCombinedPropagatorCfg)
287  from TrkConfig.TrkMeasurementUpdatorConfig import KalmanUpdatorCfg
288 
289  result = AtlasExtrapolatorCfg(flags)
290  kwargs.setdefault("ExtrapolationTool", result.popPrivateTools())
291  kwargs.setdefault("NavigatorTool", result.popToolsAndMerge(
292  AtlasNavigatorCfg(flags)))
293  kwargs.setdefault("PropagatorTool", result.popToolsAndMerge(
295  kwargs.setdefault("RotCreatorTool", result.popToolsAndMerge(
296  MuonRotCreatorCfg(flags)))
297  kwargs.setdefault("EnergyLossTool", result.popToolsAndMerge(
299  kwargs.setdefault("MeasurementUpdateTool", result.popToolsAndMerge(
300  KalmanUpdatorCfg(flags, name="MuonMeasUpdator")))
301 
302  from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig import (
303  TrackingGeometryCondAlgCfg)
304  result.merge(TrackingGeometryCondAlgCfg(flags))
305  kwargs.setdefault("TrackingGeometryReadKey", "AtlasTrackingGeometry")
306 
307  kwargs.setdefault("ExtrapolatorMaterial", True)
308 
309  from MuonCombinedConfig.MuonCombinedRecToolsConfig import (
310  MuidMaterialEffectsOnTrackProviderCfg)
311  kwargs.setdefault("MuidTool", result.popToolsAndMerge(
313  kwargs.setdefault("MuidToolParam", None)
314 
315  if flags.Beam.Type is BeamType.Cosmics:
316  from MuonCombinedConfig.MuonCombinedRecToolsConfig import (
317  MuidMaterialEffectsOnTrackProviderParamCfg)
318  kwargs.setdefault("MuidToolParam", result.popToolsAndMerge(
320 
321  kwargs.setdefault("MuidMat", True)
322  kwargs.setdefault("StraightLine", flags.Beam.Type is BeamType.Cosmics)
323  # ^ Was: not jobproperties.BField.solenoidOn() and not jobproperties.BField.allToroidOn()
324  kwargs.setdefault("MaxIterations", 50)
325  kwargs.setdefault("GetMaterialFromTrack",
326  flags.Beam.Type is not BeamType.Cosmics)
327  # ^ Was: jobproperties.BField.solenoidOn() and jobproperties.BField.allToroidOn()
328  kwargs.setdefault("RecalculateDerivatives", False)
329  kwargs.setdefault("UseCaloTG", True)
330 
331  result.setPrivateTools(CompFactory.Trk.GlobalChi2Fitter(name, **kwargs))
332  return result
333 
334 
python.TrkMeasurementUpdatorConfig.ITkUpdatorCfg
def ITkUpdatorCfg(flags, name='ITkUpdator', **kwargs)
Definition: TrkMeasurementUpdatorConfig.py:44
python.TrkRIO_OnTrackCreatorConfig.ITkRotCreatorCfg
def ITkRotCreatorCfg(flags, name='ITkRotCreator', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:134
python.TrkRIO_OnTrackCreatorConfig.InDetBroadRotCreatorCfg
def InDetBroadRotCreatorCfg(flags, name='InDetBroadInDetRotCreator', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:58
python.TrkRIO_OnTrackCreatorConfig.TrigRotCreatorCfg
def TrigRotCreatorCfg(flags, name='InDetTrigRotCreator', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:113
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkRIO_OnTrackCreatorConfig.InDetRotCreatorCfg
def InDetRotCreatorCfg(flags, name='InDetRotCreator', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:13
python.AtlasExtrapolatorToolsConfig.AtlasEnergyLossUpdatorCfg
def AtlasEnergyLossUpdatorCfg(flags, name='AtlasEnergyLossUpdator', **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:12
python.TrkGlobalChi2FitterConfig.ITkGlobalChi2FitterBaseCfg
def ITkGlobalChi2FitterBaseCfg(flags, name='ITkGlobalChi2FitterBase', **kwargs)
ITk configs.
Definition: TrkGlobalChi2FitterConfig.py:409
AtlasTrackingGeometryCondAlgConfig.TrackingGeometryCondAlgCfg
def TrackingGeometryCondAlgCfg(flags, name='AtlasTrackingGeometryCondAlg', doMaterialValidation=False, **kwargs)
Definition: AtlasTrackingGeometryCondAlgConfig.py:131
python.TrkGlobalChi2FitterConfig.MCTBSLFitterCfg
def MCTBSLFitterCfg(flags, name='MCTBSLFitter', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:253
python.AtlasExtrapolatorToolsConfig.AtlasMultipleScatteringUpdatorCfg
def AtlasMultipleScatteringUpdatorCfg(flags, name="AtlasMultipleScatteringUpdator", **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:115
python.TrkRIO_OnTrackCreatorConfig.InDetRefitRotCreatorCfg
def InDetRefitRotCreatorCfg(flags, name='InDetRefitRotCreator', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:84
python.TrkMeasurementUpdatorConfig.KalmanUpdatorCfg
def KalmanUpdatorCfg(flags, name='KalmanUpdator', **kwargs)
Definition: TrkMeasurementUpdatorConfig.py:20
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
python.TrkExRungeKuttaPropagatorConfig.RungeKuttaPropagatorCfg
def RungeKuttaPropagatorCfg(flags, name='AtlasRungeKuttaPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:9
python.TrkMeasurementUpdatorConfig.InDetUpdatorCfg
def InDetUpdatorCfg(flags, name='InDetUpdator', **kwargs)
Definition: TrkMeasurementUpdatorConfig.py:26
python.TrkGlobalChi2FitterConfig.ITkGlobalChi2FitterCfg
def ITkGlobalChi2FitterCfg(flags, name='ITkGlobalChi2Fitter', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:458
python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterBTCfg
def InDetGlobalChi2FitterBTCfg(flags, name='InDetGlobalChi2FitterBT', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:180
python.AtlasExtrapolatorToolsConfig.ITkMultipleScatteringUpdatorCfg
def ITkMultipleScatteringUpdatorCfg(flags, name="ITkMultipleScatteringUpdator", **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:142
python.TrkGlobalChi2FitterConfig.InDetTrigGlobalChi2FitterCfg
def InDetTrigGlobalChi2FitterCfg(flags, name='InDetTrigTrackFitter', **kwargs)
InDet trigger config.
Definition: TrkGlobalChi2FitterConfig.py:338
python.AtlasExtrapolatorToolsConfig.InDetMultipleScatteringUpdatorCfg
def InDetMultipleScatteringUpdatorCfg(flags, name="InDetMultipleScatteringUpdator", **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:132
python.TrkGlobalChi2FitterConfig.MuonChi2TrackFitterCfg
def MuonChi2TrackFitterCfg(flags, name='MuonChi2TrackFitter', **kwargs)
Muon configs.
Definition: TrkGlobalChi2FitterConfig.py:192
python.TrkGlobalChi2FitterConfig.MCTBFitterMaterialFromTrackCfg
def MCTBFitterMaterialFromTrackCfg(flags, name='MCTBFitterMaterialFromTrack', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:248
python.AtlasExtrapolatorToolsConfig.AtlasNavigatorCfg
def AtlasNavigatorCfg(flags, name='AtlasNavigator', **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:71
python.TrkExRungeKuttaPropagatorConfig.MuonCombinedPropagatorCfg
def MuonCombinedPropagatorCfg(flags, name='MuonCombinedPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:31
python.TrkExRungeKuttaPropagatorConfig.ITkPropagatorCfg
def ITkPropagatorCfg(flags, name='ITkPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:40
python.AtlasExtrapolatorToolsConfig.ITkMaterialEffectsUpdatorCfg
def ITkMaterialEffectsUpdatorCfg(flags, name="ITkMaterialEffectsUpdator", **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:61
python.AtlasExtrapolatorConfig.MuonExtrapolatorCfg
def MuonExtrapolatorCfg(flags, name="MuonExtrapolator", **kwargs)
Definition: AtlasExtrapolatorConfig.py:376
python.TrkGlobalChi2FitterConfig.MuonCombinedTrackFitterCfg
def MuonCombinedTrackFitterCfg(flags, name="MuonCombinedTrackFitter", **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:279
python.MuonCombinedRecToolsConfig.MuidMaterialEffectsOnTrackProviderCfg
def MuidMaterialEffectsOnTrackProviderCfg(flags, name='MuidMaterialEffectsOnTrackProvider', **kwargs)
Definition: MuonCombinedRecToolsConfig.py:578
python.AtlasExtrapolatorToolsConfig.AtlasMaterialEffectsUpdatorCfg
def AtlasMaterialEffectsUpdatorCfg(flags, name='AtlasMaterialEffectsUpdator', **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:23
python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterCfg
def InDetGlobalChi2FitterCfg(flags, name='InDetGlobalChi2Fitter', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:84
python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterTRTCfg
def InDetGlobalChi2FitterTRTCfg(flags, name='InDetGlobalChi2FitterTRT', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:119
python.TrkGlobalChi2FitterConfig.MCTBFitterCfg
def MCTBFitterCfg(flags, name='MCTBFitter', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:238
python.TrkGlobalChi2FitterConfig.MCTBSLFitterMaterialFromTrackCfg
def MCTBSLFitterMaterialFromTrackCfg(flags, name='MCTBSLFitterMaterialFromTrack', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:259
python.AtlasExtrapolatorToolsConfig.InDetMaterialEffectsUpdatorCfg
def InDetMaterialEffectsUpdatorCfg(flags, name="InDetMaterialEffectsUpdator", **kwargs)
Definition: AtlasExtrapolatorToolsConfig.py:50
python.TrkExRungeKuttaPropagatorConfig.InDetPropagatorCfg
def InDetPropagatorCfg(flags, name='InDetPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:20
python.TrkRIO_OnTrackCreatorConfig.MuonRotCreatorCfg
def MuonRotCreatorCfg(flags, name="MuonRotCreator", **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:176
python.MuonCombinedRecToolsConfig.MuidMaterialEffectsOnTrackProviderParamCfg
def MuidMaterialEffectsOnTrackProviderParamCfg(flags, name='MuidMaterialEffectsOnTrackProviderParam', **kwargs)
Definition: MuonCombinedRecToolsConfig.py:590
python.TrkGlobalChi2FitterConfig.InDetTrigGlobalChi2FitterCosmicsCfg
def InDetTrigGlobalChi2FitterCosmicsCfg(flags, name='InDetTrigTrackFitterCosmics', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:394
python.AtlasExtrapolatorConfig.InDetExtrapolatorCfg
def InDetExtrapolatorCfg(flags, name='InDetExtrapolator', **kwargs)
Definition: AtlasExtrapolatorConfig.py:315
python.AtlasExtrapolatorConfig.MCTBExtrapolatorCfg
def MCTBExtrapolatorCfg(flags, name='MCTBExtrapolator', **kwargs)
Definition: AtlasExtrapolatorConfig.py:447
python.TrkResidualPullCalculatorConfig.ResidualPullCalculatorCfg
def ResidualPullCalculatorCfg(flags, name='ResidualPullCalculator', **kwargs)
Definition: TrkResidualPullCalculatorConfig.py:6
python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterBaseCfg
def InDetGlobalChi2FitterBaseCfg(flags, name='GlobalChi2FitterBase', **kwargs)
InDet configs.
Definition: TrkGlobalChi2FitterConfig.py:24
python.TrkGlobalChi2FitterConfig.InDetGlobalChi2FitterLowPtCfg
def InDetGlobalChi2FitterLowPtCfg(flags, name='InDetGlobalChi2FitterLowPt', **kwargs)
Definition: TrkGlobalChi2FitterConfig.py:156
python.AtlasExtrapolatorConfig.MuonStraightLineExtrapolatorCfg
def MuonStraightLineExtrapolatorCfg(flags, name="MuonStraightLineExtrapolator", **kwargs)
Definition: AtlasExtrapolatorConfig.py:422
python.TrkRIO_OnTrackCreatorConfig.ITkBroadRotCreatorCfg
def ITkBroadRotCreatorCfg(flags, name='ITkBroadRotCreator', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:156