LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::TrackStateImpl Class Reference

Implementation of the LCIO TrackState class. More...

#include <TrackStateImpl.h>

+ Inheritance diagram for IMPL::TrackStateImpl:

Public Member Functions

 TrackStateImpl ()
 Default constructor, initializes values to 0. More...
 
 TrackStateImpl (int location, float d0, float phi, float omega, float z0, float tanLambda, const float *covMatrix, const float *reference)
 
 TrackStateImpl (int location, float d0, float phi, float omega, float z0, float tanLambda, const EVENT::FloatVec &covMatrix, const float *reference)
 
 TrackStateImpl (const EVENT::TrackState &p)
 Copy constructor which takes as an argument an EVENT::TrackState reference. More...
 
virtual ~TrackStateImpl ()
 Destructor. More...
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
virtual int getLocation () const
 The location of the track state. More...
 
virtual float getD0 () const
 Impact paramter of the track in (r-phi). More...
 
virtual float getPhi () const
 Phi of the track at reference point. More...
 
virtual float getOmega () const
 Omega is the signed curvature of the track in [1/mm]. More...
 
virtual float getZ0 () const
 Impact paramter of the track in (r-z). More...
 
virtual float getTanLambda () const
 Lambda is the dip angle of the track in r-z at the reference point. More...
 
virtual const EVENT::FloatVecgetCovMatrix () const
 Covariance matrix of the track parameters. More...
 
virtual const float * getReferencePoint () const
 Reference point of the track parameters, e.g. More...
 
virtual void setLocation (int location)
 
virtual void setD0 (float d0)
 
virtual void setPhi (float phi)
 
virtual void setOmega (float omega)
 
virtual void setZ0 (float z0)
 
virtual void setTanLambda (float tanLambda)
 
virtual void setCovMatrix (const float *cov)
 
virtual void setCovMatrix (const EVENT::FloatVec &cov)
 
virtual void setReferencePoint (const float *rPnt)
 
- Public Member Functions inherited from EVENT::TrackState
virtual ~TrackState ()
 Destructor. More...
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor. More...
 
virtual LCObjectclone () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
- Public Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ext_type ext ()
 Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More...
 
template<class V >
const V::ext_type ext () const
 Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More...
 
template<class V >
V::rel_type rel ()
 Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. More...
 
- Public Member Functions inherited from IMPL::AccessChecked
 AccessChecked ()
 
virtual ~AccessChecked ()
 
virtual int simpleUID () const
 

Protected Attributes

int _location {}
 
float _d0
 
float _phi
 
float _omega
 
float _z0
 
float _tanLambda
 
EVENT::FloatVec _covMatrix
 
float _reference [TRKSTATENREFSIZE] {}
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::TrackState
typedef TrackState lcobject_type
 Useful typedef for template programming with LCIO. More...
 
- Public Types inherited from lcrtrel::LCRTRelations
typedef std::type_index ext_index
 
typedef std::shared_ptr< void > ext_type
 
typedef std::map< ext_index,
ext_type
ext_map
 
- Static Public Attributes inherited from EVENT::TrackState
static const int AtOther = 0
 
static const int AtIP = 1
 
static const int AtFirstHit = 2
 
static const int AtLastHit = 3
 
static const int AtCalorimeter = 4
 
static const int AtVertex = 5
 
static const int LastLocation = AtVertex
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess ()
 
void checkAccess (const char *what)
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Implementation of the LCIO TrackState class.

See Also
TrackState
Author
gaede, engels
Version
$Id:$

Definition at line 23 of file TrackStateImpl.h.

Constructor & Destructor Documentation

IMPL::TrackStateImpl::TrackStateImpl ( )

Default constructor, initializes values to 0.

Definition at line 21 of file TrackStateImpl.cc.

References _reference, and TRKSTATENREFSIZE.

IMPL::TrackStateImpl::TrackStateImpl ( int  location,
float  d0,
float  phi,
float  omega,
float  z0,
float  tanLambda,
const float *  covMatrix,
const float *  reference 
)

Definition at line 36 of file TrackStateImpl.cc.

References _covMatrix, setLocation(), setReferencePoint(), and TRKSTATENCOVMATRIX.

IMPL::TrackStateImpl::TrackStateImpl ( int  location,
float  d0,
float  phi,
float  omega,
float  z0,
float  tanLambda,
const EVENT::FloatVec covMatrix,
const float *  reference 
)

Definition at line 55 of file TrackStateImpl.cc.

References setLocation(), and setReferencePoint().

IMPL::TrackStateImpl::TrackStateImpl ( const EVENT::TrackState p)

Copy constructor which takes as an argument an EVENT::TrackState reference.

Definition at line 69 of file TrackStateImpl.cc.

References EVENT::TrackState::getLocation(), EVENT::TrackState::getReferencePoint(), setLocation(), and setReferencePoint().

IMPL::TrackStateImpl::~TrackStateImpl ( )
virtual

Destructor.

Definition at line 87 of file TrackStateImpl.cc.

Member Function Documentation

const FloatVec & IMPL::TrackStateImpl::getCovMatrix ( ) const
virtual

Covariance matrix of the track parameters.

Stored as lower triangle matrix where the order of parameters is: d0, phi, omega, z0, tan(lambda). So we have cov(d0,d0), cov( phi, d0 ), cov( phi, phi), ...

Implements EVENT::TrackState.

Definition at line 96 of file TrackStateImpl.cc.

References _covMatrix.

Referenced by IMPL::TrackImpl::getCovMatrix().

float IMPL::TrackStateImpl::getD0 ( ) const
virtual

Impact paramter of the track in (r-phi).

Implements EVENT::TrackState.

Definition at line 90 of file TrackStateImpl.cc.

References _d0.

int IMPL::TrackStateImpl::getLocation ( ) const
virtual

The location of the track state.

Location can be set to: AtIP, AtFirstHit, AtLastHit, AtCalorimeter, AtVertex, AtOther

Implements EVENT::TrackState.

Definition at line 89 of file TrackStateImpl.cc.

References _location.

float IMPL::TrackStateImpl::getOmega ( ) const
virtual

Omega is the signed curvature of the track in [1/mm].

The sign is that of the particle's charge.

Implements EVENT::TrackState.

Definition at line 92 of file TrackStateImpl.cc.

References _omega.

float IMPL::TrackStateImpl::getPhi ( ) const
virtual

Phi of the track at reference point.

Implements EVENT::TrackState.

Definition at line 91 of file TrackStateImpl.cc.

References _phi.

const float * IMPL::TrackStateImpl::getReferencePoint ( ) const
virtual

Reference point of the track parameters, e.g.

the origin at the IP, or the position of the first/last hits or the entry point into the calorimeter.

Implements EVENT::TrackState.

Definition at line 97 of file TrackStateImpl.cc.

References _reference.

Referenced by IMPL::TrackImpl::getReferencePoint().

float IMPL::TrackStateImpl::getTanLambda ( ) const
virtual

Lambda is the dip angle of the track in r-z at the reference point.

Implements EVENT::TrackState.

Definition at line 94 of file TrackStateImpl.cc.

References _tanLambda.

float IMPL::TrackStateImpl::getZ0 ( ) const
virtual

Impact paramter of the track in (r-z).

Implements EVENT::TrackState.

Definition at line 93 of file TrackStateImpl.cc.

References _z0.

virtual int IMPL::TrackStateImpl::id ( ) const
inlinevirtual

Returns an object id for internal (debugging) use in LCIO.

Implements EVENT::LCObject.

Definition at line 41 of file TrackStateImpl.h.

References IMPL::AccessChecked::simpleUID().

void IMPL::TrackStateImpl::setCovMatrix ( const float *  cov)
virtual
void IMPL::TrackStateImpl::setCovMatrix ( const EVENT::FloatVec cov)
virtual
void IMPL::TrackStateImpl::setD0 ( float  d0)
virtual

Definition at line 109 of file TrackStateImpl.cc.

References _d0, and IMPL::AccessChecked::checkAccess().

void IMPL::TrackStateImpl::setLocation ( int  location)
virtual

Definition at line 100 of file TrackStateImpl.cc.

References _location, and IMPL::AccessChecked::checkAccess().

Referenced by TrackStateImpl().

void IMPL::TrackStateImpl::setOmega ( float  omega)
virtual

Definition at line 117 of file TrackStateImpl.cc.

References _omega, and IMPL::AccessChecked::checkAccess().

void IMPL::TrackStateImpl::setPhi ( float  phi)
virtual

Definition at line 113 of file TrackStateImpl.cc.

References _phi, and IMPL::AccessChecked::checkAccess().

void IMPL::TrackStateImpl::setReferencePoint ( const float *  rPnt)
virtual

Definition at line 142 of file TrackStateImpl.cc.

References _reference, IMPL::AccessChecked::checkAccess(), and TRKSTATENREFSIZE.

Referenced by TrackStateImpl().

void IMPL::TrackStateImpl::setTanLambda ( float  tanLambda)
virtual

Definition at line 125 of file TrackStateImpl.cc.

References _tanLambda, and IMPL::AccessChecked::checkAccess().

void IMPL::TrackStateImpl::setZ0 ( float  z0)
virtual

Definition at line 121 of file TrackStateImpl.cc.

References _z0, and IMPL::AccessChecked::checkAccess().

Member Data Documentation

EVENT::FloatVec IMPL::TrackStateImpl::_covMatrix
protected

Definition at line 107 of file TrackStateImpl.h.

Referenced by getCovMatrix(), setCovMatrix(), and TrackStateImpl().

float IMPL::TrackStateImpl::_d0
protected

Definition at line 101 of file TrackStateImpl.h.

Referenced by getD0(), and setD0().

int IMPL::TrackStateImpl::_location {}
protected

Definition at line 100 of file TrackStateImpl.h.

Referenced by getLocation(), and setLocation().

float IMPL::TrackStateImpl::_omega
protected

Definition at line 103 of file TrackStateImpl.h.

Referenced by getOmega(), and setOmega().

float IMPL::TrackStateImpl::_phi
protected

Definition at line 102 of file TrackStateImpl.h.

Referenced by getPhi(), and setPhi().

float IMPL::TrackStateImpl::_reference[TRKSTATENREFSIZE] {}
protected

Definition at line 108 of file TrackStateImpl.h.

Referenced by getReferencePoint(), setReferencePoint(), and TrackStateImpl().

float IMPL::TrackStateImpl::_tanLambda
protected

Definition at line 105 of file TrackStateImpl.h.

Referenced by getTanLambda(), and setTanLambda().

float IMPL::TrackStateImpl::_z0
protected

Definition at line 104 of file TrackStateImpl.h.

Referenced by getZ0(), and setZ0().


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