GENFIT  Rev:NoNumberAvailable
Public Member Functions | Protected Attributes | Private Attributes | List of all members
genfit::StateOnPlane Class Reference

A state with arbitrary dimension defined in a DetPlane. More...

#include <StateOnPlane.h>

Inheritance diagram for genfit::StateOnPlane:
Inheritance graph
Collaboration diagram for genfit::StateOnPlane:
Collaboration graph

Public Member Functions

 StateOnPlane (const AbsTrackRep *rep=NULL)
 
 StateOnPlane (const TVectorD &state, const SharedPlanePtr &plane, const AbsTrackRep *rep)
 state is defined by the TrackReps parameterization More...
 
 StateOnPlane (const TVectorD &state, const SharedPlanePtr &plane, const AbsTrackRep *rep, const TVectorD &auxInfo)
 
StateOnPlaneoperator= (StateOnPlane other)
 
void swap (StateOnPlane &other)
 
virtual ~StateOnPlane ()
 
virtual StateOnPlaneclone () const
 
const TVectorD & getState () const
 
TVectorD & getState ()
 
const TVectorD & getAuxInfo () const
 
TVectorD & getAuxInfo ()
 
const SharedPlanePtrgetPlane () const
 
const AbsTrackRepgetRep () const
 
void setState (const TVectorD &state)
 
void setPlane (const SharedPlanePtr &plane)
 
void setStatePlane (const TVectorD &state, const SharedPlanePtr &plane)
 
void setAuxInfo (const TVectorD &auxInfo)
 
void setRep (const AbsTrackRep *rep)
 
double extrapolateToPlane (const SharedPlanePtr &plane, bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToLine (const TVector3 &linePoint, const TVector3 &lineDirection, bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToPoint (const TVector3 &point, bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToPoint (const TVector3 &point, const TMatrixDSym &G, bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToCylinder (double radius, const TVector3 &linePoint=TVector3(0., 0., 0.), const TVector3 &lineDirection=TVector3(0., 0., 1.), bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToCone (double openingAngle, const TVector3 &conePoint=TVector3(0., 0., 0.), const TVector3 &coneDirection=TVector3(0., 0., 1.), bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToSphere (double radius, const TVector3 &point=TVector3(0., 0., 0.), bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateBy (double step, bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
double extrapolateToMeasurement (const AbsMeasurement *measurement, bool stopAtBoundary=false, bool calcJacobianNoise=false)
 
TVector3 getPos () const
 
TVector3 getMom () const
 
TVector3 getDir () const
 
void getPosMom (TVector3 &pos, TVector3 &mom) const
 
void getPosDir (TVector3 &pos, TVector3 &dir) const
 
TVectorD get6DState () const
 
double getMomMag () const
 
int getPDG () const
 
double getCharge () const
 
double getQop () const
 
double getMass () const
 
double getTime () const
 
void setPosMom (const TVector3 &pos, const TVector3 &mom)
 
void setPosMom (const TVectorD &state6)
 
void setChargeSign (double charge)
 
void setQop (double qop)
 
void setTime (double time)
 
virtual void Print (Option_t *option="") const
 

Protected Attributes

TVectorD state_
 
TVectorD auxInfo_
 
SharedPlanePtr sharedPlane_
 

Private Attributes

const AbsTrackReprep_
 Shared ownership. '!' in order to silence ROOT, custom streamer writes and reads this. More...
 

Detailed Description

A state with arbitrary dimension defined in a DetPlane.

The dimension and meaning of the state_ vector are defined by the track parameterization of the rep_. sharedPlane_ is a shared_pointer, the ownership over that plane is shared between all StateOnPlane objects defined in that plane. The definition of the state is bound to the TrackRep rep_. Therefore, the StateOnPlane contains a pointer to a AbsTrackRep. It will provide functionality to extrapolate it and translate the state it into cartesian coordinates. Shortcuts to all functions of the AbsTrackRep which use this StateOnPlane are also provided here.

Definition at line 45 of file StateOnPlane.h.

Constructor & Destructor Documentation

◆ StateOnPlane() [1/3]

genfit::StateOnPlane::StateOnPlane ( const AbsTrackRep rep = NULL)
inline

Definition at line 153 of file StateOnPlane.h.

References genfit::AbsTrackRep::getDim(), and state_.

Referenced by clone().

◆ StateOnPlane() [2/3]

genfit::StateOnPlane::StateOnPlane ( const TVectorD &  state,
const SharedPlanePtr plane,
const AbsTrackRep rep 
)
inline

state is defined by the TrackReps parameterization

Definition at line 161 of file StateOnPlane.h.

References sharedPlane_.

◆ StateOnPlane() [3/3]

genfit::StateOnPlane::StateOnPlane ( const TVectorD &  state,
const SharedPlanePtr plane,
const AbsTrackRep rep,
const TVectorD &  auxInfo 
)
inline

Definition at line 168 of file StateOnPlane.h.

References sharedPlane_.

◆ ~StateOnPlane()

virtual genfit::StateOnPlane::~StateOnPlane ( )
inlinevirtual

Definition at line 58 of file StateOnPlane.h.

Member Function Documentation

◆ clone()

virtual StateOnPlane* genfit::StateOnPlane::clone ( ) const
inlinevirtual

Reimplemented in genfit::MeasuredStateOnPlane.

Definition at line 59 of file StateOnPlane.h.

References StateOnPlane().

◆ extrapolateBy()

double genfit::StateOnPlane::extrapolateBy ( double  step,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
)
inline

Definition at line 103 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateBy(), and rep_.

◆ extrapolateToCone()

double genfit::StateOnPlane::extrapolateToCone ( double  openingAngle,
const TVector3 &  conePoint = TVector3(0.,0.,0.),
const TVector3 &  coneDirection = TVector3(0.,0.,1.),
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
)
inline

Definition at line 94 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateToCone(), and rep_.

◆ extrapolateToCylinder()

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

Definition at line 89 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateToCylinder(), and rep_.

◆ extrapolateToLine()

double genfit::StateOnPlane::extrapolateToLine ( const TVector3 &  linePoint,
const TVector3 &  lineDirection,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
)
inline

Definition at line 78 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateToLine(), and rep_.

◆ extrapolateToMeasurement()

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

Definition at line 106 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateToMeasurement(), and rep_.

◆ extrapolateToPlane()

double genfit::StateOnPlane::extrapolateToPlane ( const SharedPlanePtr plane,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
)
inline

◆ extrapolateToPoint() [1/2]

double genfit::StateOnPlane::extrapolateToPoint ( const TVector3 &  point,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
)
inline

◆ extrapolateToPoint() [2/2]

double genfit::StateOnPlane::extrapolateToPoint ( const TVector3 &  point,
const TMatrixDSym &  G,
bool  stopAtBoundary = false,
bool  calcJacobianNoise = false 
)
inline

Definition at line 85 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateToPoint(), and rep_.

◆ extrapolateToSphere()

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

Definition at line 99 of file StateOnPlane.h.

References genfit::AbsTrackRep::extrapolateToSphere(), and rep_.

◆ get6DState()

TVectorD genfit::StateOnPlane::get6DState ( ) const
inline

Definition at line 116 of file StateOnPlane.h.

References genfit::AbsTrackRep::get6DState(), and rep_.

Referenced by genfit::Track::udpateSeed().

◆ getAuxInfo() [1/2]

TVectorD& genfit::StateOnPlane::getAuxInfo ( )
inline

Definition at line 64 of file StateOnPlane.h.

References auxInfo_.

◆ getAuxInfo() [2/2]

const TVectorD& genfit::StateOnPlane::getAuxInfo ( ) const
inline

◆ getCharge()

double genfit::StateOnPlane::getCharge ( ) const
inline

◆ getDir()

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

Definition at line 113 of file StateOnPlane.h.

References genfit::AbsTrackRep::getDir(), and rep_.

Referenced by genfit::GblFitterInfo::constructGblPoint().

◆ getMass()

double genfit::StateOnPlane::getMass ( ) const
inline

Definition at line 121 of file StateOnPlane.h.

References genfit::AbsTrackRep::getMass(), and rep_.

◆ getMom()

TVector3 genfit::StateOnPlane::getMom ( ) const
inline

Definition at line 112 of file StateOnPlane.h.

References genfit::AbsTrackRep::getMom(), and rep_.

◆ getMomMag()

double genfit::StateOnPlane::getMomMag ( ) const
inline

Definition at line 117 of file StateOnPlane.h.

References genfit::AbsTrackRep::getMomMag(), and rep_.

◆ getPDG()

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

Definition at line 118 of file StateOnPlane.h.

References genfit::AbsTrackRep::getPDG(), and rep_.

◆ getPlane()

const SharedPlanePtr& genfit::StateOnPlane::getPlane ( ) const
inline

Definition at line 65 of file StateOnPlane.h.

References sharedPlane_.

Referenced by genfit::KalmanFitterInfo::addMeasurementOnPlane(), genfit::calcAverageState(), genfit::RKTrackRep::checkCache(), genfit::GblFitter::constructGblInfo(), genfit::GblFitterInfo::constructGblPoint(), genfit::FullMeasurement::constructMeasurementsOnPlane(), genfit::PlanarMeasurement::constructMeasurementsOnPlane(), genfit::WirePointMeasurement::constructMeasurementsOnPlane(), genfit::SpacepointMeasurement::constructMeasurementsOnPlane(), genfit::WireMeasurement::constructMeasurementsOnPlane(), genfit::WireMeasurementNew::constructMeasurementsOnPlane(), genfit::SpacepointMeasurement::constructPlane(), genfit::RKTrackRep::extrapolateBy(), genfit::RKTrackRep::extrapolateToCone(), genfit::RKTrackRep::extrapolateToCylinder(), genfit::RKTrackRep::extrapolateToLine(), genfit::RKTrackRep::extrapolateToPlane(), genfit::RKTrackRep::extrapolateToSphere(), genfit::RKTrackRep::extrapToPoint(), genfit::KalmanFitterInfo::getResidual(), genfit::RKTrackRep::getState5(), genfit::RKTrackRep::getState7(), genfit::Track::getTrackLen(), genfit::KalmanFitterRefTrack::prepareTrack(), genfit::KalmanFitterRefTrack::processTrackPoint(), genfit::KalmanFitterRefTrack::processTrackPointSqrt(), genfit::RKTrackRep::setPosMom(), genfit::RKTrackRep::setPosMomErr(), genfit::RKTrackRep::transformM6P(), genfit::RKTrackRep::transformM7P(), genfit::RKTrackRep::transformPM6(), genfit::RKTrackRep::transformPM7(), and genfit::GblFitterInfo::updateMeasurementAndPlane().

◆ getPos()

TVector3 genfit::StateOnPlane::getPos ( ) const
inline

Definition at line 111 of file StateOnPlane.h.

References genfit::AbsTrackRep::getPos(), and rep_.

Referenced by genfit::GblFitter::constructGblInfo().

◆ getPosDir()

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

Definition at line 115 of file StateOnPlane.h.

References genfit::AbsTrackRep::getPosDir(), and rep_.

◆ getPosMom()

void genfit::StateOnPlane::getPosMom ( TVector3 &  pos,
TVector3 &  mom 
) const
inline

Definition at line 114 of file StateOnPlane.h.

References genfit::AbsTrackRep::getPosMom(), and rep_.

◆ getQop()

double genfit::StateOnPlane::getQop ( ) const
inline

Definition at line 120 of file StateOnPlane.h.

References genfit::AbsTrackRep::getQop(), and rep_.

◆ getRep()

const AbsTrackRep* genfit::StateOnPlane::getRep ( ) const
inline

◆ getState() [1/2]

TVectorD& genfit::StateOnPlane::getState ( )
inline

Definition at line 62 of file StateOnPlane.h.

References state_.

◆ getState() [2/2]

const TVectorD& genfit::StateOnPlane::getState ( ) const
inline

◆ getTime()

double genfit::StateOnPlane::getTime ( ) const
inline

Definition at line 122 of file StateOnPlane.h.

References genfit::AbsTrackRep::getTime(), and rep_.

Referenced by genfit::Track::udpateSeed().

◆ operator=()

StateOnPlane & genfit::StateOnPlane::operator= ( StateOnPlane  other)
inline

Definition at line 175 of file StateOnPlane.h.

References swap().

◆ Print()

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

◆ setAuxInfo()

void genfit::StateOnPlane::setAuxInfo ( const TVectorD &  auxInfo)
inline

◆ setChargeSign()

void genfit::StateOnPlane::setChargeSign ( double  charge)
inline

Definition at line 126 of file StateOnPlane.h.

References rep_, and genfit::AbsTrackRep::setChargeSign().

◆ setPlane()

void genfit::StateOnPlane::setPlane ( const SharedPlanePtr plane)
inline

◆ setPosMom() [1/2]

void genfit::StateOnPlane::setPosMom ( const TVector3 &  pos,
const TVector3 &  mom 
)
inline

Definition at line 124 of file StateOnPlane.h.

References rep_, and genfit::AbsTrackRep::setPosMom().

◆ setPosMom() [2/2]

void genfit::StateOnPlane::setPosMom ( const TVectorD &  state6)
inline

Definition at line 125 of file StateOnPlane.h.

References rep_, and genfit::AbsTrackRep::setPosMom().

◆ setQop()

void genfit::StateOnPlane::setQop ( double  qop)
inline

Definition at line 127 of file StateOnPlane.h.

References rep_, and genfit::AbsTrackRep::setQop().

◆ setRep()

void genfit::StateOnPlane::setRep ( const AbsTrackRep rep)
inline

Definition at line 72 of file StateOnPlane.h.

References rep_.

◆ setState()

void genfit::StateOnPlane::setState ( const TVectorD &  state)
inline

Definition at line 68 of file StateOnPlane.h.

References state_.

Referenced by genfit::calcAverageState(), and genfit::MeasuredStateOnPlane::setStateCov().

◆ setStatePlane()

void genfit::StateOnPlane::setStatePlane ( const TVectorD &  state,
const SharedPlanePtr plane 
)
inline

◆ setTime()

void genfit::StateOnPlane::setTime ( double  time)
inline

Definition at line 128 of file StateOnPlane.h.

References rep_, and genfit::AbsTrackRep::setTime().

◆ swap()

void genfit::StateOnPlane::swap ( StateOnPlane other)
inline

Member Data Documentation

◆ auxInfo_

TVectorD genfit::StateOnPlane::auxInfo_
protected

Definition at line 136 of file StateOnPlane.h.

Referenced by getAuxInfo(), setAuxInfo(), and swap().

◆ rep_

const AbsTrackRep* genfit::StateOnPlane::rep_
private

◆ sharedPlane_

SharedPlanePtr genfit::StateOnPlane::sharedPlane_
protected

◆ state_

TVectorD genfit::StateOnPlane::state_
protected

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