ATLAS Offline Software
Functions | Variables
python.TrackParticleImpactParameters Namespace Reference

Functions

def TrackParticleImpactParameters (TPD3PDObject, prefix='track', beam_suffix='beam', pv_suffix='pv', pvunbiased_suffix='pvunbiased')
 

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ TrackParticleImpactParameters()

def python.TrackParticleImpactParameters.TrackParticleImpactParameters (   TPD3PDObject,
  prefix = 'track',
  beam_suffix = 'beam',
  pv_suffix = 'pv',
  pvunbiased_suffix = 'pvunbiased' 
)
Add to a D3PD object blocks filling in impact parameter information.

TPD3PDObject should be a D3PD object for a TrackParticle
(could be an association).  This will add information for impact
parameters with respect to the beam spot and the primary vertex,
and the unbiased impact parameter with respect to the primary vertex.
The variable names are constructed using the prefix and *_suffix
arguments.

Definition at line 17 of file TrackParticleImpactParameters.py.

17 def TrackParticleImpactParameters (TPD3PDObject,
18  prefix = 'track',
19  beam_suffix = 'beam',
20  pv_suffix = 'pv',
21  pvunbiased_suffix = 'pvunbiased'):
22  """Add to a D3PD object blocks filling in impact parameter information.
23 
24 TPD3PDObject should be a D3PD object for a TrackParticle
25 (could be an association). This will add information for impact
26 parameters with respect to the beam spot and the primary vertex,
27 and the unbiased impact parameter with respect to the primary vertex.
28 The variable names are constructed using the prefix and *_suffix
29 arguments."""
30 
31 
32  #
33  # Beamspot
34  #
35  BSPerigeeAssoc = SimpleAssociation \
36  (TPD3PDObject,
38  blockname = prefix + 'BSPerigeeAssoc',
39  prefix = prefix)
40  def _trackToVertexHook (c, flags, acc, prefix, *args, **kw):
41  from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
42  acc.merge(BeamSpotCondAlgCfg(flags))
43  from TrackToVertex.TrackToVertexConfig import InDetTrackToVertexCfg
44  c.Associator.TrackToVertexTool = acc.popToolsAndMerge (InDetTrackToVertexCfg (flags))
45  return
46  BSPerigeeAssoc.defineHook (_trackToVertexHook)
47  BSPerigeeAssoc.defineBlock (1, prefix + 'Impact' + beam_suffix,
49  FillThetaAndQoverP = False,
50  FillPhi = False,
51  Suffix = beam_suffix,
52  DefaultValue = -9999)
53  BSCovarAssoc = SimpleAssociation \
54  (BSPerigeeAssoc,
56  blockname = prefix + 'BSPerigeeCovarAssoc')
57  BSCovarAssoc.defineBlock (1, prefix + 'ImpactSig' + beam_suffix,
59  Suffix = beam_suffix)
60 
61  #
62  # Primary vertex
63  #
64  PVPerigeeAssoc = SimpleAssociation \
65  (TPD3PDObject,
67  blockname = prefix + 'PVPerigeeAssoc',
68  prefix = prefix)
69  PVPerigeeAssoc.defineHook (_trackToVertexHook)
70  PVPerigeeAssoc.defineBlock (1, prefix + 'Impact' + pv_suffix,
72  FillThetaAndQoverP = False,
73  FillPhi = False,
74  Suffix = pv_suffix,
75  DefaultValue = -9999)
76  PVCovarAssoc = SimpleAssociation \
77  (PVPerigeeAssoc,
79  blockname = prefix + 'PVPerigeeCovarAssoc')
80  PVCovarAssoc.defineBlock (1, prefix + 'ImpactSig' + pv_suffix,
82  Suffix = pv_suffix)
83 

Variable Documentation

◆ D3PD

python.TrackParticleImpactParameters.D3PD = CompFactory.D3PD

Definition at line 14 of file TrackParticleImpactParameters.py.

python.ElectronD3PDObject._trackToVertexHook
def _trackToVertexHook(c, flags, acc, *args, **kw)
Definition: ElectronD3PDObject.py:390
python.BeamSpotConditionsConfig.BeamSpotCondAlgCfg
def BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs)
Definition: BeamSpotConditionsConfig.py:7
D3PD::PerigeeFillerTool
Definition: PerigeeFillerTool.h:15
python.TrackParticleImpactParameters.TrackParticleImpactParameters
def TrackParticleImpactParameters(TPD3PDObject, prefix='track', beam_suffix='beam', pv_suffix='pv', pvunbiased_suffix='pvunbiased')
Definition: TrackParticleImpactParameters.py:17
D3PD::PerigeeCovarianceAssociationTool
Associate from a Perigee to its ErrorMatrix.
Definition: PerigeeCovarianceAssociationTool.h:28
D3PD::TrackParticlePerigeeAtBSAssociationTool
Associate from a VxCandidate to its perigee at the beam spot.
Definition: TrackParticlePerigeeAtBSAssociationTool.h:33
D3PD::ImpactSigmaFillerTool
Fill d0/z0 uncertainties from an ErrorMatrix.
Definition: ImpactSigmaFillerTool.h:37
D3PD::TrackParticlePerigeeAtPVAssociationTool
Associate from a VxCandidate to its perigee at primary vertex.
Definition: TrackParticlePerigeeAtPVAssociationTool.h:33