Project
Loading...
Searching...
No Matches
o2::mch::TrackParam Class Reference

track parameters for internal use More...

#include <TrackParam.h>

Public Member Functions

 TrackParam ()=default
 
 TrackParam (Double_t z, const Double_t param[5])
 
 TrackParam (Double_t z, const Double_t param[5], const Double_t cov[15])
 
 ~TrackParam ()=default
 
 TrackParam (const TrackParam &tp)
 
TrackParamoperator= (const TrackParam &tp)
 
 TrackParam (TrackParam &&)=delete
 
TrackParamoperator= (TrackParam &&)=delete
 
Double_t getZ () const
 return Z coordinate (cm)
 
void setZ (Double_t z)
 set Z coordinate (cm)
 
Double_t getNonBendingCoor () const
 return non bending coordinate (cm)
 
void setNonBendingCoor (Double_t nonBendingCoor)
 set non bending coordinate (cm)
 
Double_t getNonBendingSlope () const
 return non bending slope (cm ** -1)
 
void setNonBendingSlope (Double_t nonBendingSlope)
 set non bending slope (cm ** -1)
 
Double_t getBendingCoor () const
 return bending coordinate (cm)
 
void setBendingCoor (Double_t bendingCoor)
 set bending coordinate (cm)
 
Double_t getBendingSlope () const
 return bending slope (cm ** -1)
 
void setBendingSlope (Double_t bendingSlope)
 set bending slope (cm ** -1)
 
Double_t getInverseBendingMomentum () const
 return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
 
void setInverseBendingMomentum (Double_t inverseBendingMomentum)
 set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
 
Double_t getCharge () const
 return the charge (assumed forward motion)
 
void setCharge (Double_t charge)
 set the charge (assumed forward motion)
 
const TMatrixD & getParameters () const
 return track parameters
 
void setParameters (const TMatrixD &parameters)
 set track parameters
 
void setParameters (const Double_t parameters[5])
 set track parameters from the array
 
void addParameters (const TMatrixD &parameters)
 add track parameters
 
Double_t px () const
 
Double_t py () const
 
Double_t pz () const
 
Double_t p () const
 
Bool_t hasCovariances () const
 return kTRUE if the covariance matrix exist, kFALSE if not
 
const TMatrixD & getCovariances () const
 
void setCovariances (const TMatrixD &covariances)
 
void setCovariances (const Double_t covariances[15])
 
void setVariances (const Double_t covariances[15])
 
void deleteCovariances ()
 
const TMatrixD & getPropagator () const
 
void resetPropagator ()
 
void updatePropagator (const TMatrixD &propagator)
 
const TMatrixD & getExtrapParameters () const
 
void setExtrapParameters (const TMatrixD &parameters)
 
const TMatrixD & getExtrapCovariances () const
 
void setExtrapCovariances (const TMatrixD &covariances)
 
const TMatrixD & getSmoothParameters () const
 
void setSmoothParameters (const TMatrixD &parameters)
 
const TMatrixD & getSmoothCovariances () const
 
void setSmoothCovariances (const TMatrixD &covariances)
 
const ClustergetClusterPtr () const
 get pointer to associated cluster
 
void setClusterPtr (const Cluster *cluster)
 set pointer to associated cluster
 
Bool_t isRemovable () const
 return true if the associated cluster can be removed from the track it belongs to
 
void setRemovable (Bool_t removable)
 set the flag telling whether the associated cluster can be removed from the track it belongs to or not
 
Double_t getTrackChi2 () const
 return the chi2 of the track when the associated cluster was attached
 
void setTrackChi2 (Double_t chi2)
 set the chi2 of the track when the associated cluster was attached
 
Double_t getLocalChi2 () const
 return the local chi2 of the associated cluster with respect to the track
 
void setLocalChi2 (Double_t chi2)
 set the local chi2 of the associated cluster with respect to the track
 
TrackParamStruct getTrackParamStruct () const
 
Bool_t isCompatibleTrackParam (const TrackParam &trackParam, Double_t sigma2Cut, Double_t &normChi2) const
 
void print () const
 
void clear ()
 

Detailed Description

track parameters for internal use

Definition at line 33 of file TrackParam.h.

Constructor & Destructor Documentation

◆ TrackParam() [1/5]

o2::mch::TrackParam::TrackParam ( )
default

◆ TrackParam() [2/5]

o2::mch::TrackParam::TrackParam ( Double_t  z,
const Double_t  param[5] 
)

constructor with given parameters

Definition at line 36 of file TrackParam.cxx.

◆ TrackParam() [3/5]

o2::mch::TrackParam::TrackParam ( Double_t  z,
const Double_t  param[5],
const Double_t  cov[15] 
)

constructor with given parameters and covariances

Definition at line 43 of file TrackParam.cxx.

◆ ~TrackParam()

o2::mch::TrackParam::~TrackParam ( )
default

◆ TrackParam() [4/5]

o2::mch::TrackParam::TrackParam ( const TrackParam tp)

Copy constructor

Definition at line 51 of file TrackParam.cxx.

◆ TrackParam() [5/5]

o2::mch::TrackParam::TrackParam ( TrackParam &&  )
delete

Member Function Documentation

◆ addParameters()

void o2::mch::TrackParam::addParameters ( const TMatrixD &  parameters)
inline

add track parameters

Definition at line 87 of file TrackParam.h.

◆ clear()

void o2::mch::TrackParam::clear ( )

clear memory

Definition at line 163 of file TrackParam.cxx.

◆ deleteCovariances()

void o2::mch::TrackParam::deleteCovariances ( )

Delete the covariance matrix

Definition at line 288 of file TrackParam.cxx.

◆ getBendingCoor()

Double_t o2::mch::TrackParam::getBendingCoor ( ) const
inline

return bending coordinate (cm)

Definition at line 59 of file TrackParam.h.

◆ getBendingSlope()

Double_t o2::mch::TrackParam::getBendingSlope ( ) const
inline

return bending slope (cm ** -1)

Definition at line 63 of file TrackParam.h.

◆ getCharge()

Double_t o2::mch::TrackParam::getCharge ( ) const
inline

return the charge (assumed forward motion)

Definition at line 71 of file TrackParam.h.

◆ getClusterPtr()

const Cluster * o2::mch::TrackParam::getClusterPtr ( ) const
inline

get pointer to associated cluster

Definition at line 120 of file TrackParam.h.

◆ getCovariances()

const TMatrixD & o2::mch::TrackParam::getCovariances ( ) const

Return the covariance matrix (create it before if needed)

Definition at line 228 of file TrackParam.cxx.

◆ getExtrapCovariances()

const TMatrixD & o2::mch::TrackParam::getExtrapCovariances ( ) const

Return the extrapolated covariance matrix (create it before if needed)

Definition at line 348 of file TrackParam.cxx.

◆ getExtrapParameters()

const TMatrixD & o2::mch::TrackParam::getExtrapParameters ( ) const

Return extrapolated parameters (create it before if needed)

Definition at line 326 of file TrackParam.cxx.

◆ getInverseBendingMomentum()

Double_t o2::mch::TrackParam::getInverseBendingMomentum ( ) const
inline

return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)

Definition at line 67 of file TrackParam.h.

◆ getLocalChi2()

Double_t o2::mch::TrackParam::getLocalChi2 ( ) const
inline

return the local chi2 of the associated cluster with respect to the track

Definition at line 134 of file TrackParam.h.

◆ getNonBendingCoor()

Double_t o2::mch::TrackParam::getNonBendingCoor ( ) const
inline

return non bending coordinate (cm)

Definition at line 51 of file TrackParam.h.

◆ getNonBendingSlope()

Double_t o2::mch::TrackParam::getNonBendingSlope ( ) const
inline

return non bending slope (cm ** -1)

Definition at line 55 of file TrackParam.h.

◆ getParameters()

const TMatrixD & o2::mch::TrackParam::getParameters ( ) const
inline

return track parameters

Definition at line 81 of file TrackParam.h.

◆ getPropagator()

const TMatrixD & o2::mch::TrackParam::getPropagator ( ) const

Return the propagator (create it before if needed)

Definition at line 295 of file TrackParam.cxx.

◆ getSmoothCovariances()

const TMatrixD & o2::mch::TrackParam::getSmoothCovariances ( ) const

Return the smoothed covariance matrix (create it before if needed)

Definition at line 392 of file TrackParam.cxx.

◆ getSmoothParameters()

const TMatrixD & o2::mch::TrackParam::getSmoothParameters ( ) const

Return the smoothed parameters (create it before if needed)

Definition at line 370 of file TrackParam.cxx.

◆ getTrackChi2()

Double_t o2::mch::TrackParam::getTrackChi2 ( ) const
inline

return the chi2 of the track when the associated cluster was attached

Definition at line 130 of file TrackParam.h.

◆ getTrackParamStruct()

TrackParamStruct o2::mch::TrackParam::getTrackParamStruct ( ) const

return track parameters in the flat structure

Definition at line 473 of file TrackParam.cxx.

◆ getZ()

Double_t o2::mch::TrackParam::getZ ( ) const
inline

return Z coordinate (cm)

Definition at line 47 of file TrackParam.h.

◆ hasCovariances()

Bool_t o2::mch::TrackParam::hasCovariances ( ) const
inline

return kTRUE if the covariance matrix exist, kFALSE if not

Definition at line 95 of file TrackParam.h.

◆ isCompatibleTrackParam()

Bool_t o2::mch::TrackParam::isCompatibleTrackParam ( const TrackParam trackParam,
Double_t  sigma2Cut,
Double_t &  normChi2 
) const

Return kTRUE if the two set of track parameters are compatible within sigma2Cut Set chi2 to the compatible chi2 value Note that parameter covariances must exist for at least one set of parameters Note also that if parameters are not given at the same Z, results will be meaningless

Definition at line 414 of file TrackParam.cxx.

◆ isRemovable()

Bool_t o2::mch::TrackParam::isRemovable ( ) const
inline

return true if the associated cluster can be removed from the track it belongs to

Definition at line 125 of file TrackParam.h.

◆ operator=() [1/2]

TrackParam & o2::mch::TrackParam::operator= ( const TrackParam tp)

Assignment operator

Definition at line 81 of file TrackParam.cxx.

◆ operator=() [2/2]

TrackParam & o2::mch::TrackParam::operator= ( TrackParam &&  )
delete

◆ p()

Double_t o2::mch::TrackParam::p ( ) const

return p from track parameters

Definition at line 215 of file TrackParam.cxx.

◆ print()

void o2::mch::TrackParam::print ( ) const

Printing TrackParam informations

Definition at line 491 of file TrackParam.cxx.

◆ px()

Double_t o2::mch::TrackParam::px ( ) const

return p_x from track parameters

Definition at line 175 of file TrackParam.cxx.

◆ py()

Double_t o2::mch::TrackParam::py ( ) const

return p_y from track parameters

Definition at line 189 of file TrackParam.cxx.

◆ pz()

Double_t o2::mch::TrackParam::pz ( ) const

return p_z from track parameters

Definition at line 203 of file TrackParam.cxx.

◆ resetPropagator()

void o2::mch::TrackParam::resetPropagator ( )

Reset the propagator

Definition at line 306 of file TrackParam.cxx.

◆ setBendingCoor()

void o2::mch::TrackParam::setBendingCoor ( Double_t  bendingCoor)
inline

set bending coordinate (cm)

Definition at line 61 of file TrackParam.h.

◆ setBendingSlope()

void o2::mch::TrackParam::setBendingSlope ( Double_t  bendingSlope)
inline

set bending slope (cm ** -1)

Definition at line 65 of file TrackParam.h.

◆ setCharge()

void o2::mch::TrackParam::setCharge ( Double_t  charge)
inline

set the charge (assumed forward motion)

Definition at line 73 of file TrackParam.h.

◆ setClusterPtr()

void o2::mch::TrackParam::setClusterPtr ( const Cluster cluster)
inline

set pointer to associated cluster

Definition at line 122 of file TrackParam.h.

◆ setCovariances() [1/2]

void o2::mch::TrackParam::setCovariances ( const Double_t  covariances[15])

Set the covariance matrix from the reduced matrix formated as follow:

[0] = <X,X>
[1] = <SlopeX,X>  [2] = <SlopeX,SlopeX>
[3] = <Y,X>       [4] = <Y,SlopeX>       [5] = <Y,Y>
[6] = <SlopeY,X>  [7] = <SlopeY,SlopeX>  [8] = <SlopeY,Y>  [9] = <SlopeY,SlopeY>
[10]= <q/pYZ,X>   [11]= <q/pYZ,SlopeX>   [12]= <q/pYZ,Y>   [13]= <q/pYZ,SlopeY>   [14]= <q/pYZ,q/pYZ> 

Definition at line 250 of file TrackParam.cxx.

◆ setCovariances() [2/2]

void o2::mch::TrackParam::setCovariances ( const TMatrixD &  covariances)

Set the covariance matrix

Definition at line 239 of file TrackParam.cxx.

◆ setExtrapCovariances()

void o2::mch::TrackParam::setExtrapCovariances ( const TMatrixD &  covariances)

Set the extrapolated covariance matrix

Definition at line 359 of file TrackParam.cxx.

◆ setExtrapParameters()

void o2::mch::TrackParam::setExtrapParameters ( const TMatrixD &  parameters)

Set extrapolated parameters

Definition at line 337 of file TrackParam.cxx.

◆ setInverseBendingMomentum()

void o2::mch::TrackParam::setInverseBendingMomentum ( Double_t  inverseBendingMomentum)
inline

set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)

Definition at line 69 of file TrackParam.h.

◆ setLocalChi2()

void o2::mch::TrackParam::setLocalChi2 ( Double_t  chi2)
inline

set the local chi2 of the associated cluster with respect to the track

Definition at line 136 of file TrackParam.h.

◆ setNonBendingCoor()

void o2::mch::TrackParam::setNonBendingCoor ( Double_t  nonBendingCoor)
inline

set non bending coordinate (cm)

Definition at line 53 of file TrackParam.h.

◆ setNonBendingSlope()

void o2::mch::TrackParam::setNonBendingSlope ( Double_t  nonBendingSlope)
inline

set non bending slope (cm ** -1)

Definition at line 57 of file TrackParam.h.

◆ setParameters() [1/2]

void o2::mch::TrackParam::setParameters ( const Double_t  parameters[5])
inline

set track parameters from the array

Definition at line 85 of file TrackParam.h.

◆ setParameters() [2/2]

void o2::mch::TrackParam::setParameters ( const TMatrixD &  parameters)
inline

set track parameters

Definition at line 83 of file TrackParam.h.

◆ setRemovable()

void o2::mch::TrackParam::setRemovable ( Bool_t  removable)
inline

set the flag telling whether the associated cluster can be removed from the track it belongs to or not

Definition at line 127 of file TrackParam.h.

◆ setSmoothCovariances()

void o2::mch::TrackParam::setSmoothCovariances ( const TMatrixD &  covariances)

Set the smoothed covariance matrix

Definition at line 403 of file TrackParam.cxx.

◆ setSmoothParameters()

void o2::mch::TrackParam::setSmoothParameters ( const TMatrixD &  parameters)

Set the smoothed parameters

Definition at line 381 of file TrackParam.cxx.

◆ setTrackChi2()

void o2::mch::TrackParam::setTrackChi2 ( Double_t  chi2)
inline

set the chi2 of the track when the associated cluster was attached

Definition at line 132 of file TrackParam.h.

◆ setVariances()

void o2::mch::TrackParam::setVariances ( const Double_t  covariances[15])

Set the diagonal terms of the covariance matrix (variances) from the reduced matrix formated as follow:

[0] = <X,X>
[1] = <SlopeX,X>  [2] = <SlopeX,SlopeX>
[3] = <Y,X>       [4] = <Y,SlopeX>       [5] = <Y,Y>
[6] = <SlopeY,X>  [7] = <SlopeY,SlopeX>  [8] = <SlopeY,Y>  [9] = <SlopeY,SlopeY>
[10]= <q/pYZ,X>   [11]= <q/pYZ,SlopeX>   [12]= <q/pYZ,Y>   [13]= <q/pYZ,SlopeY>   [14]= <q/pYZ,q/pYZ> 

Definition at line 269 of file TrackParam.cxx.

◆ setZ()

void o2::mch::TrackParam::setZ ( Double_t  z)
inline

set Z coordinate (cm)

Definition at line 49 of file TrackParam.h.

◆ updatePropagator()

void o2::mch::TrackParam::updatePropagator ( const TMatrixD &  propagator)

Update the propagator

Definition at line 315 of file TrackParam.cxx.


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