LCFIVertex  0.7.2
Public Member Functions | List of all members
vertex_lcfi::TrackState Class Reference

Spatial point on a Track. More...

#include <trackstate.h>

Public Member Functions

 ~TrackState ()
 Destructor.
 
 TrackState (Track *Track)
 Construct from a given track. More...
 
 TrackState (const HelixRep &init, const double &cha, const SymMatrix5x5 &cov, Track *tra)
 Construct from track parameters. More...
 
void resetToRef ()
 Reset the track to distance swum = 0.
 
void swimDistance (const double s)
 Swim the track a fixed distance.
 
void swimToStateNearest (const Vector3 &Point)
 Swim to the point of closest approach to Point.
 
void swimToStateNearest (TrackState *const TrackToSwimTo)
 Swim to the point of closest approach to another TrackState.
 
void swimToStateNearestXY (const Vector3 &Point)
 Swim to the point of closest approach in the XY plane to Point.
 
bool sameTrack (TrackState *const Track) const
 Is this the same track as another TrackState?
 
bool sameTrack (Track *const Track) const
 Is this the same track as Track?
 
double distanceTo (const Vector3 &Point) const
 Distance from the TrackStates current position to Point.
 
double distanceTo2 (const Vector3 &Point) const
 Distance squared from the TrackStates current position to Point.
 
double xyDistanceTo (const Vector3 &Point) const
 Distance in the XY plane from the TrackStates current position to Point.
 
double chi2 (const Vector3 &Point)
 Calculate this tracks minimum chi squared to Point.
 
double chi2_nomove (const Vector3 &Point)
 Calculate this tracks chi squared to Point at the TrackStates current position.
 
const Vector3position () const
 Current position of the trackstate.
 
double phi () const
 Current phi of the trackstate.
 
double charge () const
 Charge.
 
bool isNeutral () const
 Is this track neutral.
 
bool isCharged () const
 Is this track charged.
 
const SymMatrix2x2positionCovarMatrix () const
 Current position covariance matrix of the trackstate (d0,z0)
 
const SymMatrix2x2inversePositionCovarMatrix () const
 Current inverse position covariance matrix of the trackstate (d0,z0)
 
const Matrix3x3 vertexErrorContribution (Vector3 point) const
 The error contribution of this trackstate to a vertex at point.
 
const SymMatrix3x3positionCovarMatrixXYZ () const
 Current position covariance matrix of the trackstate (x,y,z)
 
const SymMatrix3x3inversePositionCovarMatrixXYZ () const
 Current inverse position covariance matrix of the trackstate (x,y,z)
 
TrackparentTrack () const
 The Track that this TrackState belongs to, (if any)
 
void debugOut ()
 Print some info to std::cout.
 
 ~TrackState ()
 Destructor.
 
 TrackState (Track *Track)
 Construct from a given track. More...
 
 TrackState (const HelixRep &init, const double &cha, const SymMatrix5x5 &cov, Track *tra)
 Construct from track parameters. More...
 
void resetToRef ()
 Reset the track to distance swum = 0.
 
void swimDistance (const double s)
 Swim the track a fixed distance.
 
void swimToStateNearest (const Vector3 &Point)
 Swim to the point of closest approach to Point.
 
void swimToStateNearest (TrackState *const TrackToSwimTo)
 Swim to the point of closest approach to another TrackState.
 
void swimToStateNearestXY (const Vector3 &Point)
 Swim to the point of closest approach in the XY plane to Point.
 
bool sameTrack (TrackState *const Track) const
 Is this the same track as another TrackState?
 
bool sameTrack (Track *const Track) const
 Is this the same track as Track?
 
double distanceTo (const Vector3 &Point) const
 Distance from the TrackStates current position to Point.
 
double distanceTo2 (const Vector3 &Point) const
 Distance squared from the TrackStates current position to Point.
 
double xyDistanceTo (const Vector3 &Point) const
 Distance in the XY plane from the TrackStates current position to Point.
 
double chi2 (const Vector3 &Point)
 Calculate this tracks minimum chi squared to Point.
 
double chi2_nomove (const Vector3 &Point)
 Calculate this tracks chi squared to Point at the TrackStates current position.
 
const Vector3position () const
 Current position of the trackstate.
 
double phi () const
 Current phi of the trackstate.
 
double charge () const
 Charge.
 
bool isNeutral () const
 Is this track neutral.
 
bool isCharged () const
 Is this track charged.
 
const SymMatrix2x2positionCovarMatrix () const
 Current position covariance matrix of the trackstate (d0,z0)
 
const SymMatrix2x2inversePositionCovarMatrix () const
 Current inverse position covariance matrix of the trackstate (d0,z0)
 
const Matrix3x3 vertexErrorContribution (Vector3 point) const
 The error contribution of this trackstate to a vertex at point.
 
const SymMatrix3x3positionCovarMatrixXYZ () const
 Current position covariance matrix of the trackstate (x,y,z)
 
const SymMatrix3x3inversePositionCovarMatrixXYZ () const
 Current inverse position covariance matrix of the trackstate (x,y,z)
 
TrackparentTrack () const
 The Track that this TrackState belongs to, (if any)
 
void debugOut ()
 Print some info to std::cout.
 

Detailed Description

Spatial point on a Track.

Tracks in detector space have one Track object, but many TrackState objects.
TrackState objects define a point in space on the track, movement along the path of the track is performed by the swimming methods of TrackState. For details of the parameterisation see Track

Author
Ben Jeffery (b.jef.nosp@m.fery.nosp@m.1@phy.nosp@m.sics.nosp@m..ox.a.nosp@m.c.uk)
Version
0.2
Date
20/09/05

Definition at line 25 of file include/vertex_lcfi/inc/trackstate.h.

Constructor & Destructor Documentation

vertex_lcfi::TrackState::TrackState ( Track Track)

Construct from a given track.

Constructs a track state with parameters from the given Track, inital position distance swum=0 (usually the perigee to the ref point)

Definition at line 17 of file trackstate.cpp.

References resetToRef().

vertex_lcfi::TrackState::TrackState ( const HelixRep init,
const double &  cha,
const SymMatrix5x5 cov,
Track tra 
)

Construct from track parameters.

Constructs a track state given parameters, with inital position distance swum=0 (usually the perigee to the ref point)

Definition at line 30 of file trackstate.cpp.

vertex_lcfi::TrackState::TrackState ( Track Track)

Construct from a given track.

Constructs a track state with parameters from the given Track, inital position distance swum=0 (usually the perigee to the ref point)

vertex_lcfi::TrackState::TrackState ( const HelixRep init,
const double &  cha,
const SymMatrix5x5 cov,
Track tra 
)

Construct from track parameters.

Constructs a track state given parameters, with inital position distance swum=0 (usually the perigee to the ref point)


The documentation for this class was generated from the following files: