GENFIT Rev: NoNumberAvailable
Loading...
Searching...
No Matches
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 genfit::StateOnPlane &)=default
 
 StateOnPlane (const AbsTrackRep *rep=nullptr)
 
 StateOnPlane (const TVectorD &state, const SharedPlanePtr &plane, const AbsTrackRep *rep)
 state is defined by the TrackReps parameterization
 
 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.
 

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 47 of file StateOnPlane.h.

Constructor & Destructor Documentation

◆ StateOnPlane() [1/4]

◆ StateOnPlane() [2/4]

genfit::StateOnPlane::StateOnPlane ( const AbsTrackRep * rep = nullptr)
inline

Definition at line 156 of file StateOnPlane.h.

References auxInfo_, genfit::AbsTrackRep::getDim(), rep_, sharedPlane_, and state_.

◆ StateOnPlane() [3/4]

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

state is defined by the TrackReps parameterization

Definition at line 164 of file StateOnPlane.h.

References auxInfo_, rep_, sharedPlane_, and state_.

◆ StateOnPlane() [4/4]

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

Definition at line 171 of file StateOnPlane.h.

References auxInfo_, rep_, sharedPlane_, and state_.

◆ ~StateOnPlane()

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

Definition at line 61 of file StateOnPlane.h.

Member Function Documentation

◆ clone()

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

Reimplemented in genfit::MeasuredStateOnPlane.

Definition at line 62 of file StateOnPlane.h.

References StateOnPlane().

◆ extrapolateBy()

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

Definition at line 106 of file StateOnPlane.h.

References rep_.

Referenced by genfit::EventDisplay::drawEvent().

◆ 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 97 of file StateOnPlane.h.

References 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 92 of file StateOnPlane.h.

References rep_.

◆ extrapolateToLine()

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

Definition at line 81 of file StateOnPlane.h.

References rep_.

◆ extrapolateToMeasurement()

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

Definition at line 109 of file StateOnPlane.h.

References rep_.

◆ extrapolateToPlane()

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

Definition at line 78 of file StateOnPlane.h.

References rep_.

Referenced by genfit::GblFitter::constructGblInfo(), and genfit::GblFitter::sortHits().

◆ extrapolateToPoint() [1/2]

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

Definition at line 85 of file StateOnPlane.h.

References rep_.

Referenced by genfit::SpacepointMeasurement::constructPlane().

◆ extrapolateToPoint() [2/2]

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

Definition at line 88 of file StateOnPlane.h.

References 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 102 of file StateOnPlane.h.

References rep_.

◆ get6DState()

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

Definition at line 119 of file StateOnPlane.h.

References rep_.

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

◆ getAuxInfo() [1/2]

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

Definition at line 67 of file StateOnPlane.h.

References auxInfo_.

◆ getAuxInfo() [2/2]

◆ getCharge()

◆ getDir()

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

Definition at line 116 of file StateOnPlane.h.

References rep_.

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

◆ getMass()

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

Definition at line 124 of file StateOnPlane.h.

References rep_.

◆ getMom()

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

Definition at line 115 of file StateOnPlane.h.

References rep_.

◆ getMomMag()

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

Definition at line 120 of file StateOnPlane.h.

References rep_.

◆ getPDG()

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

Definition at line 121 of file StateOnPlane.h.

References rep_.

◆ getPlane()

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

Definition at line 68 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::SpacepointMeasurement::constructMeasurementsOnPlane(), genfit::WireMeasurement::constructMeasurementsOnPlane(), genfit::WireMeasurementNew::constructMeasurementsOnPlane(), genfit::WirePointMeasurement::constructMeasurementsOnPlane(), genfit::SpacepointMeasurement::constructPlane(), genfit::EventDisplay::drawEvent(), 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::EventDisplay::makeLines(), genfit::KalmanFitterRefTrack::prepareTrack(), genfit::KalmanFitterRefTrack::processTrackPoint(), genfit::KalmanFitterRefTrack::processTrackPointSqrt(), genfit::RKTrackRep::setPosMom(), genfit::RKTrackRep::setPosMomErr(), genfit::RKTrackRep::transformM6P(), genfit::RKTrackRep::transformPM6(), and genfit::GblFitterInfo::updateMeasurementAndPlane().

◆ getPos()

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

Definition at line 114 of file StateOnPlane.h.

References rep_.

Referenced by genfit::GblFitter::constructGblInfo(), and genfit::EventDisplay::drawEvent().

◆ getPosDir()

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

Definition at line 118 of file StateOnPlane.h.

References rep_.

◆ getPosMom()

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

Definition at line 117 of file StateOnPlane.h.

References rep_.

◆ getQop()

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

Definition at line 123 of file StateOnPlane.h.

References rep_.

◆ getRep()

◆ getState() [1/2]

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

Definition at line 65 of file StateOnPlane.h.

References state_.

◆ getState() [2/2]

◆ getTime()

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

Definition at line 125 of file StateOnPlane.h.

References rep_.

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

◆ operator=()

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

Definition at line 178 of file StateOnPlane.h.

References StateOnPlane(), and 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 129 of file StateOnPlane.h.

References rep_.

◆ setPlane()

◆ setPosMom() [1/2]

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

Definition at line 127 of file StateOnPlane.h.

References rep_.

◆ setPosMom() [2/2]

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

Definition at line 128 of file StateOnPlane.h.

References rep_.

◆ setQop()

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

Definition at line 130 of file StateOnPlane.h.

References rep_.

◆ setRep()

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

Definition at line 75 of file StateOnPlane.h.

References rep_.

Referenced by genfit::KalmanFitterRefTrack::prepareTrack().

◆ setState()

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

Definition at line 71 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

Definition at line 73 of file StateOnPlane.h.

References sharedPlane_, and state_.

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

◆ setTime()

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

Definition at line 131 of file StateOnPlane.h.

References rep_.

◆ swap()

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

Member Data Documentation

◆ auxInfo_

TVectorD genfit::StateOnPlane::auxInfo_
protected

◆ rep_

◆ sharedPlane_

◆ state_


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