Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

TrTrack Class Reference

#include <TrTrack.h>

List of all members.

Public Types

enum  TrackType {
  Velotrack, Backward, Long, Upstream,
  Downstream, Ttrack
}
enum  HistoryFlag {
  LongTrack, Seeding, TrKshort, TrMatching,
  VeloTrack, VeloTT
}

Public Methods

 TrTrack (const TrTrack &track)
 TrTrack copy constructor. More...

 TrTrack ()
 Default Constructor. More...

virtual ~TrTrack ()
 Destructor. More...

virtual const CLID & clID () const
 Retrieve pointer to class definition structure. More...

void positionAndMomentum (const double z, const HepPoint3D &pos, const HepVector3D &mom, const HepSymMatrix &cov6D) const
 Retrieve for a track at a given z-position the position and momentum vectors and the corresponding 6D covariance matrix (pos:1->3,mom:4-6). More...

HepPoint3D position (const double z) const
 Retrieve the 3D-position vector of a track at a given z-position. More...

HepVector3D slopes (const double z) const
 Retrieve the slopes (dx/dz,dy/dz,1) of a track at a given z-position. More...

HepSymMatrix posMomCovariance (const double z) const
 Retrieve the 6D covariance matrix (x,y,z,px,py,pz) of a track at a given z-position. More...

std::vector errPosition (const double z) const
 Retrieve the errors on the 3D-position vector of a track at a given z-position. More...

std::vector errSlopes (const double z) const
 Retrieve the errors on the slopes (errors on dx/dz,dy/dz) of a track at a given z-position. More...

double p (const double z) const
 Retrieve the momentum of a track at a given z-position. More...

double pt (const double z) const
 Retrieve the transverse momentum of a track at a given z-position. More...

HepVector3D momentum (const double z) const
 Retrieve the momentum vector of a track at a given z-position. More...

std::vector errMomentum (const double z) const
 Retrieve the errors on the momentum vector of a track at a given z-position. More...

TrackType type ()
 Retrieve the type of the track. More...

bool producedByAlgo (const TrTrack::HistoryFlag &flag)
 Check wether the track was produced by a given algorithm. More...

double chi2PerDoF () const
 Retrieve the Chi^2/nDoF of the track. More...

double chi2 () const
 Retrieve the Chi^2 of the track. More...

void setChi2 (double value)
 Update the Chi^2 of the track. More...

unsigned int nDoF () const
 number of degrees of freedom. More...

void setNDoF (unsigned int value)
 Update the number of degrees of freedom of the track. More...

int errorFlag () const
 Retrieve the error flag of the track. More...

void setErrorFlag (int value)
 Update the error flag of the track. More...

void reset ()
 Clear the track before re-use. More...

void clone (TrTrack *track)
 Clone the track. More...

double charge () const
 Retrieve the track's charge. More...

void setCharge (double value)
 Update the track's charge. More...

virtual StreamBuffer & serialize (StreamBuffer &s) const
 Serialize the object for writing. More...

virtual StreamBuffer & serialize (StreamBuffer &s)
 Serialize the object for reading. More...

virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream. More...


Static Public Methods

const CLID & classID ()

Protected Methods

void setType (const TrTrack::TrackType &value)
 set the track type. More...

unsigned int nStates () const
 number of states on track. More...

TrStateclosestState (double z) const
 Retrieve the pointer to the state closest to the given z-position. More...

const std::vector< TrState * > states () const
 Retrieve container with the pointers to the states on the track. More...

void setStates (const const &std::vector< TrState * >)
 Update the container with the pointers to the states on the track. More...

unsigned int nMeasurements () const
 number of track measurements. More...

const std::vector< TrMeasurement * > measurements () const
 Retrieve container with pointers to the track measurements. More...

void setMeasurements (const const &std::vector< TrState * >)
 Update the container with the pointers to the measurements. More...


Private Attributes

std::vector< TrState * > m_states
 container with pointers to the states. More...

std::vector< TrMeasurement * > m_measurements
 container with pointers to the measurements. More...

double m_chi2
 chi^2 of the track. More...

int m_ndof
 number of degrees of freedom of the track. More...

double m_charge
 the track's charge. More...

int m_errorFlag
 error flag. More...

int m_type
 Retrieve the type of the track. More...


Detailed Description

TrTrack is the base class for offline and online tracks

Author:
Eduardo Rodrigues created Fri Sep 10 19:14:12 2004


Member Enumeration Documentation

enum TrTrack::HistoryFlag
 

Enumeration values:
LongTrack 
Seeding 
TrKshort 
TrMatching 
VeloTrack 
VeloTT 

enum TrTrack::TrackType
 

Enumeration values:
Velotrack 
Backward 
Long 
Upstream 
Downstream 
Ttrack 


Constructor & Destructor Documentation

TrTrack::TrTrack const TrTrack &    track
 

TrTrack copy constructor.

TrTrack::TrTrack   [inline]
 

Default Constructor.

virtual TrTrack::~TrTrack   [inline, virtual]
 

Destructor.


Member Function Documentation

double TrTrack::charge   const [inline]
 

Retrieve the track's charge.

double TrTrack::chi2   const
 

Retrieve the Chi^2 of the track.

double TrTrack::chi2PerDoF   const [inline]
 

Retrieve the Chi^2/nDoF of the track.

const CLID & TrTrack::classID   [inline, static]
 

const CLID & TrTrack::clID   const [inline, virtual]
 

Retrieve pointer to class definition structure.

void TrTrack::clone TrTrack *    track
 

Clone the track.

TrState* TrTrack::closestState double    z const [protected]
 

Retrieve the pointer to the state closest to the given z-position.

std::vector TrTrack::errMomentum const double    z const
 

Retrieve the errors on the momentum vector of a track at a given z-position.

int TrTrack::errorFlag   const
 

Retrieve the error flag of the track.

std::vector TrTrack::errPosition const double    z const
 

Retrieve the errors on the 3D-position vector of a track at a given z-position.

std::vector TrTrack::errSlopes const double    z const
 

Retrieve the errors on the slopes (errors on dx/dz,dy/dz) of a track at a given z-position.

std::ostream & TrTrack::fillStream std::ostream &    s const [inline, virtual]
 

Fill the ASCII output stream.

const std::vector<TrMeasurement*> TrTrack::measurements   const [protected]
 

Retrieve container with pointers to the track measurements.

HepVector3D TrTrack::momentum const double    z const
 

Retrieve the momentum vector of a track at a given z-position.

unsigned int TrTrack::nDoF   const
 

number of degrees of freedom.

unsigned int TrTrack::nMeasurements   const [protected]
 

number of track measurements.

unsigned int TrTrack::nStates   const [protected]
 

number of states on track.

double TrTrack::p const double    z const
 

Retrieve the momentum of a track at a given z-position.

HepPoint3D TrTrack::position const double    z const
 

Retrieve the 3D-position vector of a track at a given z-position.

void TrTrack::positionAndMomentum const double    z,
const HepPoint3D &    pos,
const HepVector3D &    mom,
const HepSymMatrix &    cov6D
const
 

Retrieve for a track at a given z-position the position and momentum vectors and the corresponding 6D covariance matrix (pos:1->3,mom:4-6).

HepSymMatrix TrTrack::posMomCovariance const double    z const
 

Retrieve the 6D covariance matrix (x,y,z,px,py,pz) of a track at a given z-position.

bool TrTrack::producedByAlgo const TrTrack::HistoryFlag   flag
 

Check wether the track was produced by a given algorithm.

double TrTrack::pt const double    z const
 

Retrieve the transverse momentum of a track at a given z-position.

void TrTrack::reset   [inline]
 

Clear the track before re-use.

StreamBuffer & TrTrack::serialize StreamBuffer &    s [inline, virtual]
 

Serialize the object for reading.

StreamBuffer & TrTrack::serialize StreamBuffer &    s const [inline, virtual]
 

Serialize the object for writing.

void TrTrack::setCharge double    value [inline]
 

Update the track's charge.

void TrTrack::setChi2 double    value
 

Update the Chi^2 of the track.

void TrTrack::setErrorFlag int    value
 

Update the error flag of the track.

void TrTrack::setMeasurements const const &std::vector< TrState * >    [protected]
 

Update the container with the pointers to the measurements.

void TrTrack::setNDoF unsigned int    value
 

Update the number of degrees of freedom of the track.

void TrTrack::setStates const const &std::vector< TrState * >    [protected]
 

Update the container with the pointers to the states on the track.

void TrTrack::setType const TrTrack::TrackType   value [protected]
 

set the track type.

HepVector3D TrTrack::slopes const double    z const
 

Retrieve the slopes (dx/dz,dy/dz,1) of a track at a given z-position.

const std::vector<TrState*> TrTrack::states   const [protected]
 

Retrieve container with the pointers to the states on the track.

TrackType TrTrack::type  
 

Retrieve the type of the track.


Member Data Documentation

double TrTrack::m_charge [private]
 

the track's charge.

double TrTrack::m_chi2 [private]
 

chi^2 of the track.

int TrTrack::m_errorFlag [private]
 

error flag.

std::vector<TrMeasurement*> TrTrack::m_measurements [private]
 

container with pointers to the measurements.

int TrTrack::m_ndof [private]
 

number of degrees of freedom of the track.

std::vector<TrState*> TrTrack::m_states [private]
 

container with pointers to the states.

int TrTrack::m_type [private]
 

Retrieve the type of the track.


The documentation for this class was generated from the following file:
Generated on Fri Sep 10 19:14:13 2004 for New Track Event Model by doxygen 1.2.14 written by Dimitri van Heesch, © 1997-2002