PandaRoot
genfit::AbsTrackRep Class Referenceabstract

Abstract base class for a track representation. More...

#include <AbsTrackRep.h>

Inheritance diagram for genfit::AbsTrackRep:
genfit::RKTrackRep

Public Member Functions

 AbsTrackRep ()
 
 AbsTrackRep (int pdgCode, char propDir=0)
 
virtual ~AbsTrackRep ()
 
virtual AbsTrackRepclone () const =0
 Clone the trackRep. More...
 
virtual double extrapolateToPlane (StateOnPlane &state, const genfit::SharedPlanePtr &plane, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state to plane, and returns the extrapolation length and, via reference, the extrapolated state. More...
 
virtual double extrapolateToLine (StateOnPlane &state, const TVector3 &linePoint, const TVector3 &lineDirection, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state to the POCA to a line, and returns the extrapolation length and, via reference, the extrapolated state. More...
 
virtual double extrapolateToLine (StateOnPlane &state, const TVector3 &point1, const TVector3 &point2, TVector3 &poca, TVector3 &dirInPoca, TVector3 &poca_onwire, bool stopAtBoundary=false, bool calcJacobianNoise=false) const
 Resembles the interface of GFAbsTrackRep in old versions of genfit. More...
 
virtual double extrapolateToPoint (StateOnPlane &state, const TVector3 &point, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state to the POCA to a point, and returns the extrapolation length and, via reference, the extrapolated state. More...
 
virtual double extrapolateToPoint (StateOnPlane &state, const TVector3 &point, const TMatrixDSym &G, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state to the POCA to a point in the metric of G, and returns the extrapolation length and, via reference, the extrapolated state. More...
 
virtual double extrapolateToCylinder (StateOnPlane &state, double radius, const TVector3 &linePoint=TVector3(0., 0., 0.), const TVector3 &lineDirection=TVector3(0., 0., 1.), bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state to the cylinder surface, and returns the extrapolation length and, via reference, the extrapolated state. More...
 
virtual double extrapolateToSphere (StateOnPlane &state, double radius, const TVector3 &point=TVector3(0., 0., 0.), bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state to the sphere surface, and returns the extrapolation length and, via reference, the extrapolated state. More...
 
virtual double extrapolateBy (StateOnPlane &state, double step, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
 Extrapolates the state by step (cm) and returns the extrapolation length and, via reference, the extrapolated state. More...
 
double extrapolateToMeasurement (StateOnPlane &state, const AbsMeasurement *measurement, bool stopAtBoundary=false, bool calcJacobianNoise=false) const
 extrapolate to an AbsMeasurement More...
 
virtual unsigned int getDim () const =0
 Get the dimension of the state vector used by the track representation. More...
 
virtual TVector3 getPos (const StateOnPlane &state) const =0
 Get the cartesian position of a state. More...
 
virtual TVector3 getMom (const StateOnPlane &state) const =0
 Get the cartesian momentum vector of a state. More...
 
TVector3 getDir (const StateOnPlane &state) const
 Get the direction vector of a state. More...
 
virtual void getPosMom (const StateOnPlane &state, TVector3 &pos, TVector3 &mom) const =0
 Get cartesian position and momentum vector of a state. More...
 
void getPosDir (const StateOnPlane &state, TVector3 &pos, TVector3 &dir) const
 Get cartesian position and direction vector of a state. More...
 
virtual TVectorD get6DState (const StateOnPlane &state) const
 Get the 6D state vector (x, y, z, p_x, p_y, p_z). More...
 
virtual TMatrixDSym get6DCov (const MeasuredStateOnPlane &state) const =0
 Get the 6D covariance. More...
 
virtual void getPosMomCov (const MeasuredStateOnPlane &state, TVector3 &pos, TVector3 &mom, TMatrixDSym &cov) const =0
 Translates MeasuredStateOnPlane into 3D position, momentum and 6x6 covariance. More...
 
virtual void get6DStateCov (const MeasuredStateOnPlane &state, TVectorD &stateVec, TMatrixDSym &cov) const
 Translates MeasuredStateOnPlane into 6D state vector (x, y, z, p_x, p_y, p_z) and 6x6 covariance. More...
 
virtual double getMomMag (const StateOnPlane &state) const =0
 get the magnitude of the momentum in GeV. More...
 
virtual double getMomVar (const MeasuredStateOnPlane &state) const =0
 get the variance of the absolute value of the momentum . More...
 
int getPDG () const
 Get the pdg code. More...
 
double getPDGCharge () const
 Get the charge of the particle of the pdg code. More...
 
virtual double getCharge (const StateOnPlane &state) const =0
 Get the (fitted) charge of a state. This is not always equal the pdg charge (e.g. if the charge sign was flipped during the fit). More...
 
virtual double getQop (const StateOnPlane &state) const =0
 Get charge over momentum. More...
 
double getMass (const StateOnPlane &state) const
 Get tha particle mass in GeV/c^2. More...
 
char getPropDir () const
 Get propagation direction. (-1, 0, 1) -> (backward, auto, forward). More...
 
virtual void getForwardJacobianAndNoise (TMatrixD &jacobian, TMatrixDSym &noise, TVectorD &deltaState) const =0
 Get the jacobian and noise matrix of the last extrapolation. More...
 
virtual void getBackwardJacobianAndNoise (TMatrixD &jacobian, TMatrixDSym &noise, TVectorD &deltaState) const =0
 Get the jacobian and noise matrix of the last extrapolation if it would have been done in opposite direction. More...
 
virtual std::vector< genfit::MatStepgetSteps () const =0
 Get stepsizes and material properties of crossed materials of the last extrapolation. More...
 
virtual double getRadiationLenght () const =0
 Get the accumulated X/X0 (path / radiation length) of the material crossed in the last extrapolation. More...
 
virtual double getTime (const StateOnPlane &) const =0
 Get the time corresponding to the StateOnPlane. Extrapolation. More...
 
void calcJacobianNumerically (const genfit::StateOnPlane &origState, const genfit::SharedPlanePtr destPlane, TMatrixD &jacobian) const
 Calculate Jacobian of transportation numerically. Slow but accurate. Can be used to validate (semi)analytic calculations. More...
 
bool switchPDGSign ()
 try to multiply pdg code with -1. (Switch from particle to anti-particle and vice versa). More...
 
virtual void setPosMom (StateOnPlane &state, const TVector3 &pos, const TVector3 &mom) const =0
 Set position and momentum of state. More...
 
virtual void setPosMom (StateOnPlane &state, const TVectorD &state6) const =0
 Set position and momentum of state. More...
 
virtual void setPosMomErr (MeasuredStateOnPlane &state, const TVector3 &pos, const TVector3 &mom, const TVector3 &posErr, const TVector3 &momErr) const =0
 Set position and momentum and error of state. More...
 
virtual void setPosMomCov (MeasuredStateOnPlane &state, const TVector3 &pos, const TVector3 &mom, const TMatrixDSym &cov6x6) const =0
 Set position, momentum and covariance of state. More...
 
virtual void setPosMomCov (MeasuredStateOnPlane &state, const TVectorD &state6, const TMatrixDSym &cov6x6) const =0
 Set position, momentum and covariance of state. More...
 
virtual void setChargeSign (StateOnPlane &state, double charge) const =0
 Set the sign of the charge according to charge. More...
 
virtual void setQop (StateOnPlane &state, double qop) const =0
 Set charge/momentum. More...
 
virtual void setTime (StateOnPlane &state, double time) const =0
 Set time at which the state was defined. More...
 
void setPropDir (int dir)
 Set propagation direction. (-1, 0, 1) -> (backward, auto, forward). More...
 
void switchPropDir ()
 Switch propagation direction. Has no effect if propDir_ is set to 0. More...
 
virtual bool isSameType (const AbsTrackRep *other)=0
 check if other is of same type (e.g. RKTrackRep). More...
 
virtual bool isSame (const AbsTrackRep *other)=0
 check if other is of same type (e.g. RKTrackRep) and has same pdg code. More...
 
virtual void setDebugLvl (unsigned int lvl=1)
 
virtual void Print (const Option_t *="") const
 

Protected Member Functions

 AbsTrackRep (const AbsTrackRep &)
 protect from calling copy c'tor from outside the class. Use clone() if you want a copy! More...
 
AbsTrackRepoperator= (const AbsTrackRep &)
 protect from calling assignment operator from outside the class. Use clone() instead! More...
 

Protected Attributes

int pdgCode_
 Particle code. More...
 
char propDir_
 propagation direction (-1, 0, 1) -> (backward, auto, forward) More...
 
unsigned int debugLvl_
 

Detailed Description

Abstract base class for a track representation.

Provides functionality to extrapolate a StateOnPlane to another DetPlane, to the POCA to a line or a point, or a cylinder or sphere. Defines a set of parameters describing the track. StateOnPlane objects are always defined with a track parameterization of a specific AbsTrackRep. The AbsTrackRep provides functionality to translate from the internal representation of a state into cartesian position and momentum (and covariance) and vice versa.

Definition at line 62 of file AbsTrackRep.h.

Constructor & Destructor Documentation

◆ AbsTrackRep() [1/3]

genfit::AbsTrackRep::AbsTrackRep ( )

◆ AbsTrackRep() [2/3]

genfit::AbsTrackRep::AbsTrackRep ( int  pdgCode,
char  propDir = 0 
)

◆ ~AbsTrackRep()

virtual genfit::AbsTrackRep::~AbsTrackRep ( )
inlinevirtual

Definition at line 68 of file AbsTrackRep.h.

68 { ; }

◆ AbsTrackRep() [3/3]

genfit::AbsTrackRep::AbsTrackRep ( const AbsTrackRep )
protected

protect from calling copy c'tor from outside the class. Use clone() if you want a copy!

Member Function Documentation

◆ calcJacobianNumerically()

void genfit::AbsTrackRep::calcJacobianNumerically ( const genfit::StateOnPlane origState,
const genfit::SharedPlanePtr  destPlane,
TMatrixD jacobian 
) const

Calculate Jacobian of transportation numerically. Slow but accurate. Can be used to validate (semi)analytic calculations.

◆ clone()

virtual AbsTrackRep* genfit::AbsTrackRep::clone ( ) const
pure virtual

Clone the trackRep.

Implemented in genfit::RKTrackRep.

◆ extrapolateBy()

virtual double genfit::AbsTrackRep::extrapolateBy ( StateOnPlane state,
double  step,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state by step (cm) and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::extrapolateBy().

◆ extrapolateToCylinder()

virtual double genfit::AbsTrackRep::extrapolateToCylinder ( StateOnPlane state,
double  radius,
const TVector3 &  linePoint = TVector3(0., 0., 0.),
const TVector3 &  lineDirection = TVector3(0., 0., 1.),
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state to the cylinder surface, and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::extrapolateToCylinder().

◆ extrapolateToLine() [1/2]

virtual double genfit::AbsTrackRep::extrapolateToLine ( StateOnPlane state,
const TVector3 &  linePoint,
const TVector3 &  lineDirection,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state to the POCA to a line, and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

Referenced by genfit::RKTrackRep::clone(), and genfit::StateOnPlane::extrapolateToLine().

◆ extrapolateToLine() [2/2]

virtual double genfit::AbsTrackRep::extrapolateToLine ( StateOnPlane state,
const TVector3 &  point1,
const TVector3 &  point2,
TVector3 &  poca,
TVector3 &  dirInPoca,
TVector3 &  poca_onwire,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
inlinevirtual

Resembles the interface of GFAbsTrackRep in old versions of genfit.

This interface to extrapolateToLine is intended to resemble the interface of GFAbsTrackRep in old versions of genfit and is implemented by default via the preceding function.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Definition at line 108 of file AbsTrackRep.h.

110  {
111  TVector3 wireDir(point2 - point1);
112  wireDir.Unit();
113  double retval = this->extrapolateToLine(state, point1, wireDir, stopAtBoundary, calcJacobianNoise);
114  poca = this->getPos(state);
115  dirInPoca = this->getMom(state);
116  dirInPoca.Unit();
117 
118  poca_onwire = point1 + wireDir * ((poca - point1) * wireDir);
119 
120  return retval;
121  }
virtual TVector3 getPos(const StateOnPlane &state) const =0
Get the cartesian position of a state.
virtual TVector3 getMom(const StateOnPlane &state) const =0
Get the cartesian momentum vector of a state.
virtual double extrapolateToLine(StateOnPlane &state, const TVector3 &linePoint, const TVector3 &lineDirection, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
Extrapolates the state to the POCA to a line, and returns the extrapolation length and...

◆ extrapolateToMeasurement()

double genfit::AbsTrackRep::extrapolateToMeasurement ( StateOnPlane state,
const AbsMeasurement measurement,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const

◆ extrapolateToPlane()

virtual double genfit::AbsTrackRep::extrapolateToPlane ( StateOnPlane state,
const genfit::SharedPlanePtr plane,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state to plane, and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::extrapolateToPlane().

◆ extrapolateToPoint() [1/2]

virtual double genfit::AbsTrackRep::extrapolateToPoint ( StateOnPlane state,
const TVector3 &  point,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state to the POCA to a point, and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::extrapolateToPoint().

◆ extrapolateToPoint() [2/2]

virtual double genfit::AbsTrackRep::extrapolateToPoint ( StateOnPlane state,
const TVector3 &  point,
const TMatrixDSym &  G,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state to the POCA to a point in the metric of G, and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

◆ extrapolateToSphere()

virtual double genfit::AbsTrackRep::extrapolateToSphere ( StateOnPlane state,
double  radius,
const TVector3 &  point = TVector3(0., 0., 0.),
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
) const
pure virtual

Extrapolates the state to the sphere surface, and returns the extrapolation length and, via reference, the extrapolated state.

If stopAtBoundary is true, the extrapolation stops as soon as a material boundary is encountered.

If state has a covariance, jacobian and noise matrices will be calculated and the covariance will be propagated. If state has no covariance, jacobian and noise will only be calculated if calcJacobianNoise == true.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::extrapolateToSphere().

◆ get6DCov()

virtual TMatrixDSym genfit::AbsTrackRep::get6DCov ( const MeasuredStateOnPlane state) const
pure virtual

Get the 6D covariance.

Implemented in genfit::RKTrackRep.

Referenced by genfit::MeasuredStateOnPlane::get6DCov().

◆ get6DState()

virtual TVectorD genfit::AbsTrackRep::get6DState ( const StateOnPlane state) const
virtual

Get the 6D state vector (x, y, z, p_x, p_y, p_z).

Referenced by genfit::StateOnPlane::get6DState().

◆ get6DStateCov()

virtual void genfit::AbsTrackRep::get6DStateCov ( const MeasuredStateOnPlane state,
TVectorD &  stateVec,
TMatrixDSym &  cov 
) const
virtual

Translates MeasuredStateOnPlane into 6D state vector (x, y, z, p_x, p_y, p_z) and 6x6 covariance.

Referenced by genfit::MeasuredStateOnPlane::get6DStateCov().

◆ getBackwardJacobianAndNoise()

virtual void genfit::AbsTrackRep::getBackwardJacobianAndNoise ( TMatrixD jacobian,
TMatrixDSym &  noise,
TVectorD &  deltaState 
) const
pure virtual

Get the jacobian and noise matrix of the last extrapolation if it would have been done in opposite direction.

Implemented in genfit::RKTrackRep.

◆ getCharge()

virtual double genfit::AbsTrackRep::getCharge ( const StateOnPlane state) const
pure virtual

Get the (fitted) charge of a state. This is not always equal the pdg charge (e.g. if the charge sign was flipped during the fit).

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getCharge().

◆ getDim()

virtual unsigned int genfit::AbsTrackRep::getDim ( ) const
pure virtual

Get the dimension of the state vector used by the track representation.

Implemented in genfit::RKTrackRep.

Referenced by genfit::MeasuredStateOnPlane::MeasuredStateOnPlane(), and genfit::StateOnPlane::StateOnPlane().

◆ getDir()

TVector3 genfit::AbsTrackRep::getDir ( const StateOnPlane state) const
inline

Get the direction vector of a state.

Definition at line 195 of file AbsTrackRep.h.

Referenced by genfit::StateOnPlane::getDir().

195 { return getMom(state).Unit(); }
virtual TVector3 getMom(const StateOnPlane &state) const =0
Get the cartesian momentum vector of a state.

◆ getForwardJacobianAndNoise()

virtual void genfit::AbsTrackRep::getForwardJacobianAndNoise ( TMatrixD jacobian,
TMatrixDSym &  noise,
TVectorD &  deltaState 
) const
pure virtual

Get the jacobian and noise matrix of the last extrapolation.

Implemented in genfit::RKTrackRep.

◆ getMass()

double genfit::AbsTrackRep::getMass ( const StateOnPlane state) const

Get tha particle mass in GeV/c^2.

Referenced by genfit::StateOnPlane::getMass().

◆ getMom()

virtual TVector3 genfit::AbsTrackRep::getMom ( const StateOnPlane state) const
pure virtual

Get the cartesian momentum vector of a state.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getMom().

◆ getMomMag()

virtual double genfit::AbsTrackRep::getMomMag ( const StateOnPlane state) const
pure virtual

get the magnitude of the momentum in GeV.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getMomMag().

◆ getMomVar()

virtual double genfit::AbsTrackRep::getMomVar ( const MeasuredStateOnPlane state) const
pure virtual

get the variance of the absolute value of the momentum .

Implemented in genfit::RKTrackRep.

Referenced by genfit::MeasuredStateOnPlane::getMomVar().

◆ getPDG()

int genfit::AbsTrackRep::getPDG ( ) const
inline

Get the pdg code.

Definition at line 225 of file AbsTrackRep.h.

Referenced by genfit::StateOnPlane::getPDG().

225 { return pdgCode_; }
int pdgCode_
Particle code.
Definition: AbsTrackRep.h:317

◆ getPDGCharge()

double genfit::AbsTrackRep::getPDGCharge ( ) const

Get the charge of the particle of the pdg code.

◆ getPos()

virtual TVector3 genfit::AbsTrackRep::getPos ( const StateOnPlane state) const
pure virtual

Get the cartesian position of a state.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getPos().

◆ getPosDir()

void genfit::AbsTrackRep::getPosDir ( const StateOnPlane state,
TVector3 &  pos,
TVector3 &  dir 
) const
inline

Get cartesian position and direction vector of a state.

Definition at line 201 of file AbsTrackRep.h.

Referenced by genfit::StateOnPlane::getPosDir().

202  {
203  getPosMom(state, pos, dir);
204  dir.SetMag(1.);
205  }
virtual void getPosMom(const StateOnPlane &state, TVector3 &pos, TVector3 &mom) const =0
Get cartesian position and momentum vector of a state.

◆ getPosMom()

virtual void genfit::AbsTrackRep::getPosMom ( const StateOnPlane state,
TVector3 &  pos,
TVector3 &  mom 
) const
pure virtual

Get cartesian position and momentum vector of a state.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getPosMom().

◆ getPosMomCov()

virtual void genfit::AbsTrackRep::getPosMomCov ( const MeasuredStateOnPlane state,
TVector3 &  pos,
TVector3 &  mom,
TMatrixDSym &  cov 
) const
pure virtual

Translates MeasuredStateOnPlane into 3D position, momentum and 6x6 covariance.

Implemented in genfit::RKTrackRep.

Referenced by genfit::MeasuredStateOnPlane::getPosMomCov().

◆ getPropDir()

char genfit::AbsTrackRep::getPropDir ( ) const
inline

Get propagation direction. (-1, 0, 1) -> (backward, auto, forward).

Definition at line 241 of file AbsTrackRep.h.

241 { return propDir_; }
char propDir_
propagation direction (-1, 0, 1) -> (backward, auto, forward)
Definition: AbsTrackRep.h:319

◆ getQop()

virtual double genfit::AbsTrackRep::getQop ( const StateOnPlane state) const
pure virtual

Get charge over momentum.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getQop().

◆ getRadiationLenght()

virtual double genfit::AbsTrackRep::getRadiationLenght ( ) const
pure virtual

Get the accumulated X/X0 (path / radiation length) of the material crossed in the last extrapolation.

Implemented in genfit::RKTrackRep.

◆ getSteps()

virtual std::vector<genfit::MatStep> genfit::AbsTrackRep::getSteps ( ) const
pure virtual

Get stepsizes and material properties of crossed materials of the last extrapolation.

Implemented in genfit::RKTrackRep.

◆ getTime()

virtual double genfit::AbsTrackRep::getTime ( const StateOnPlane ) const
pure virtual

Get the time corresponding to the StateOnPlane. Extrapolation.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::getTime().

◆ isSame()

virtual bool genfit::AbsTrackRep::isSame ( const AbsTrackRep other)
pure virtual

check if other is of same type (e.g. RKTrackRep) and has same pdg code.

Implemented in genfit::RKTrackRep.

◆ isSameType()

virtual bool genfit::AbsTrackRep::isSameType ( const AbsTrackRep other)
pure virtual

check if other is of same type (e.g. RKTrackRep).

Implemented in genfit::RKTrackRep.

◆ operator=()

AbsTrackRep& genfit::AbsTrackRep::operator= ( const AbsTrackRep )
protected

protect from calling assignment operator from outside the class. Use clone() instead!

◆ Print()

virtual void genfit::AbsTrackRep::Print ( const Option_t *  = "") const
virtual

◆ setChargeSign()

virtual void genfit::AbsTrackRep::setChargeSign ( StateOnPlane state,
double  charge 
) const
pure virtual

Set the sign of the charge according to charge.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::setChargeSign().

◆ setDebugLvl()

virtual void genfit::AbsTrackRep::setDebugLvl ( unsigned int  lvl = 1)
inlinevirtual

Definition at line 306 of file AbsTrackRep.h.

306 { debugLvl_ = lvl; }
unsigned int debugLvl_
Definition: AbsTrackRep.h:321

◆ setPosMom() [1/2]

virtual void genfit::AbsTrackRep::setPosMom ( StateOnPlane state,
const TVector3 &  pos,
const TVector3 &  mom 
) const
pure virtual

Set position and momentum of state.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::setPosMom().

◆ setPosMom() [2/2]

virtual void genfit::AbsTrackRep::setPosMom ( StateOnPlane state,
const TVectorD &  state6 
) const
pure virtual

Set position and momentum of state.

Implemented in genfit::RKTrackRep.

◆ setPosMomCov() [1/2]

virtual void genfit::AbsTrackRep::setPosMomCov ( MeasuredStateOnPlane state,
const TVector3 &  pos,
const TVector3 &  mom,
const TMatrixDSym &  cov6x6 
) const
pure virtual

Set position, momentum and covariance of state.

Implemented in genfit::RKTrackRep.

Referenced by genfit::MeasuredStateOnPlane::setPosMomCov().

◆ setPosMomCov() [2/2]

virtual void genfit::AbsTrackRep::setPosMomCov ( MeasuredStateOnPlane state,
const TVectorD &  state6,
const TMatrixDSym &  cov6x6 
) const
pure virtual

Set position, momentum and covariance of state.

Implemented in genfit::RKTrackRep.

◆ setPosMomErr()

virtual void genfit::AbsTrackRep::setPosMomErr ( MeasuredStateOnPlane state,
const TVector3 &  pos,
const TVector3 &  mom,
const TVector3 &  posErr,
const TVector3 &  momErr 
) const
pure virtual

Set position and momentum and error of state.

Implemented in genfit::RKTrackRep.

Referenced by genfit::MeasuredStateOnPlane::setPosMomErr().

◆ setPropDir()

void genfit::AbsTrackRep::setPropDir ( int  dir)
inline

Set propagation direction. (-1, 0, 1) -> (backward, auto, forward).

Definition at line 287 of file AbsTrackRep.h.

288  {
289  if (dir > 0)
290  propDir_ = 1;
291  else if (dir < 0)
292  propDir_ = -1;
293  else
294  propDir_ = 0;
295  };
char propDir_
propagation direction (-1, 0, 1) -> (backward, auto, forward)
Definition: AbsTrackRep.h:319

◆ setQop()

virtual void genfit::AbsTrackRep::setQop ( StateOnPlane state,
double  qop 
) const
pure virtual

Set charge/momentum.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::setQop().

◆ setTime()

virtual void genfit::AbsTrackRep::setTime ( StateOnPlane state,
double  time 
) const
pure virtual

Set time at which the state was defined.

Implemented in genfit::RKTrackRep.

Referenced by genfit::StateOnPlane::setTime().

◆ switchPDGSign()

bool genfit::AbsTrackRep::switchPDGSign ( )

try to multiply pdg code with -1. (Switch from particle to anti-particle and vice versa).

◆ switchPropDir()

void genfit::AbsTrackRep::switchPropDir ( )
inline

Switch propagation direction. Has no effect if propDir_ is set to 0.

Definition at line 298 of file AbsTrackRep.h.

298 { propDir_ = -1 * propDir_; }
char propDir_
propagation direction (-1, 0, 1) -> (backward, auto, forward)
Definition: AbsTrackRep.h:319

Member Data Documentation

◆ debugLvl_

unsigned int genfit::AbsTrackRep::debugLvl_
protected

Definition at line 321 of file AbsTrackRep.h.

◆ pdgCode_

int genfit::AbsTrackRep::pdgCode_
protected

Particle code.

Definition at line 317 of file AbsTrackRep.h.

◆ propDir_

char genfit::AbsTrackRep::propDir_
protected

propagation direction (-1, 0, 1) -> (backward, auto, forward)

Definition at line 319 of file AbsTrackRep.h.


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