LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "SlTrackRep.h"
Public Member Functions | |
SlTrackRep () | |
SlTrackRep (const TMatrixT< double > &, const TMatrixT< double > &) | |
SlTrackRep (const TMatrixT< double > &, const TMatrixT< double > &, const double) | |
SlTrackRep (const GFDetPlane &, const TMatrixT< double > &, const TMatrixT< double > &) | |
SlTrackRep (const TVector3 &pos, const TVector3 &dir) | |
virtual | ~SlTrackRep () |
virtual GFAbsTrackRep * | clone () const |
virtual GFAbsTrackRep * | prototype () const |
void | setReferencePlane (const GFDetPlane &pl) |
virtual double | extrapolate (const GFDetPlane &, TMatrixT< double > &statePred, TMatrixT< double > &covPred) |
virtual double | extrapolate (const GFDetPlane &, TMatrixT< double > &statePred) |
void | extrapolateToPoint (const TVector3 &pos, TVector3 &poca, TVector3 &dirInPoca) |
This method is to extrapolate the track to point of closest approach to a point in space. More... | |
void | extrapolateToLine (const TVector3 &point1, const TVector3 &point2, TVector3 &poca, TVector3 &dirInPoca, TVector3 &poca_onwire) |
This method extrapolates to the point of closest approach to a line. More... | |
virtual TVector3 | getPos (const GFDetPlane &) |
virtual TVector3 | getMom (const GFDetPlane &) |
virtual void | getPosMom (const GFDetPlane &, TVector3 &pos, TVector3 &mom) |
virtual double | getCharge () const |
void | switchDirection () |
virtual double | extrapolate (const GFDetPlane &plane, TMatrixT< Double_t > &statePred) |
returns the tracklength spanned in this extrapolation More... | |
virtual double | extrapolate (const GFDetPlane &plane, TMatrixT< Double_t > &statePred, TMatrixT< Double_t > &covPred)=0 |
Extrapolates the track to the given detectorplane. More... | |
double | extrapolate (const GFDetPlane &plane) |
This changes the state and cov and plane of the rep. More... | |
virtual void | stepalong (double h) |
make step of h cm along the track More... | |
unsigned int | getDim () const |
returns dimension of state vector More... | |
virtual void | Print (std::ostream &out=std::cout) const |
const TMatrixT< Double_t > & | getState () const |
const TMatrixT< Double_t > & | getCov () const |
double | getStateElem (int i) const |
double | getCovElem (int i, int j) const |
TVector3 | getPos () |
TVector3 | getMom () |
virtual void | getPosMomCov (const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &cov) |
method which gets position, momentum and 6x6 covariance matrix More... | |
void | getPosMomCov (TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &c) |
TMatrixT< Double_t > | getFirstState () const |
TMatrixT< Double_t > | getFirstCov () const |
GFDetPlane | getFirstPlane () const |
TMatrixT< Double_t > | getLastState () const |
TMatrixT< Double_t > | getLastCov () const |
GFDetPlane | getLastPlane () const |
double | getChiSqu () const |
double | getRedChiSqu () const |
returns chi2/ndf More... | |
unsigned int | getNDF () const |
virtual void | setData (const TMatrixT< Double_t > &st, const GFDetPlane &pl, const TMatrixT< Double_t > *cov=NULL) |
void | setCov (const TMatrixT< Double_t > &aCov) |
void | setFirstState (const TMatrixT< Double_t > &aState) |
void | setFirstCov (const TMatrixT< Double_t > &aCov) |
void | setFirstPlane (const GFDetPlane &aPlane) |
void | setLastState (const TMatrixT< Double_t > &aState) |
void | setLastCov (const TMatrixT< Double_t > &aCov) |
void | setLastPlane (const GFDetPlane &aPlane) |
const GFDetPlane & | getReferencePlane () const |
void | setChiSqu (double aChiSqu) |
void | setNDF (unsigned int n) |
void | addChiSqu (double aChiSqu) |
void | addNDF (unsigned int n) |
void | setStatusFlag (int _val) |
bool | setInverted (bool f=true) |
Deprecated. Should be removed soon. More... | |
bool | getStatusFlag () |
virtual void | reset () |
Protected Attributes | |
unsigned int | fDimension |
Dimensionality of track representation. More... | |
TMatrixT< Double_t > | fState |
The vector of track parameters. More... | |
TMatrixT< Double_t > | fCov |
The covariance matrix. More... | |
double | fChiSqu |
chiSqu of the track fit More... | |
unsigned int | fNdf |
int | fStatusFlag |
status of track representation: 0 means everything's OK More... | |
bool | fInverted |
specifies the direction of flight of the particle More... | |
TMatrixT< Double_t > | fFirstState |
state, cov and plane for first and last point in fit More... | |
TMatrixT< Double_t > | fFirstCov |
TMatrixT< Double_t > | fLastState |
TMatrixT< Double_t > | fLastCov |
GFDetPlane | fFirstPlane |
GFDetPlane | fLastPlane |
GFDetPlane | fRefPlane |
Private Attributes | |
int | _backw |
Definition at line 7 of file SlTrackRep.h.
genf::SlTrackRep::SlTrackRep | ( | ) |
genf::SlTrackRep::SlTrackRep | ( | const TMatrixT< double > & | _state, |
const TMatrixT< double > & | sigma | ||
) |
Definition at line 6 of file SlTrackRep.cxx.
References genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fState, and setReferencePlane().
genf::SlTrackRep::SlTrackRep | ( | const TMatrixT< double > & | _state, |
const TMatrixT< double > & | sigma, | ||
const double | z | ||
) |
Definition at line 42 of file SlTrackRep.cxx.
References genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fState, and setReferencePlane().
genf::SlTrackRep::SlTrackRep | ( | const GFDetPlane & | dp, |
const TMatrixT< double > & | _state, | ||
const TMatrixT< double > & | sigma | ||
) |
Definition at line 30 of file SlTrackRep.cxx.
References genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fState, and setReferencePlane().
genf::SlTrackRep::SlTrackRep | ( | const TVector3 & | pos, |
const TVector3 & | dir | ||
) |
Definition at line 16 of file SlTrackRep.cxx.
References d, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fState, and setReferencePlane().
|
virtual |
Definition at line 55 of file SlTrackRep.cxx.
|
inlineinherited |
|
inlineinherited |
Definition at line 265 of file GFAbsTrackRep.h.
References n.
Referenced by genf::GFKalman::processHit().
|
inlinevirtual |
Implements genf::GFAbsTrackRep.
Definition at line 18 of file SlTrackRep.h.
References SlTrackRep().
|
virtual |
Definition at line 94 of file SlTrackRep.cxx.
References dir, larg4::dist(), genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fDimension, genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), and w.
Referenced by getMom(), getPos(), and setReferencePlane().
|
virtual |
Definition at line 56 of file SlTrackRep.cxx.
References dir, larg4::dist(), genf::GFAbsTrackRep::fDimension, genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), and w.
|
virtualinherited |
returns the tracklength spanned in this extrapolation
Reimplemented in genf::RKTrackRep.
Definition at line 63 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::fDimension.
Referenced by genf::GFAbsTrackRep::extrapolate(), genf::GFKalman::getChi2Hit(), genf::GFTrack::getResiduals(), genf::GFKalman::processHit(), and genf::GFDaf::processTrack().
|
pure virtualinherited |
Extrapolates the track to the given detectorplane.
Results are put into statePred and covPred This method does NOT alter the state of the object!
Implemented in genf::RKTrackRep.
|
inherited |
This changes the state and cov and plane of the rep.
This method extrapolates to to the plane and sets the results of state, cov and also plane in itself.
Definition at line 53 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::extrapolate(), genf::GFAbsTrackRep::fDimension, and genf::GFAbsTrackRep::setData().
|
virtual |
This method extrapolates to the point of closest approach to a line.
This method extrapolates to the POCA to a line, i.e. a wire. There is a default implementation just like for the extrapolateToPoca for trackReps which do not need this feature, which will abort the execution if it is ever called.
Reimplemented from genf::GFAbsTrackRep.
Definition at line 348 of file SlTrackRep.cxx.
References dir, genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), and t2.
Referenced by setReferencePlane().
|
virtual |
This method is to extrapolate the track to point of closest approach to a point in space.
Reimplemented from genf::GFAbsTrackRep.
Definition at line 331 of file SlTrackRep.cxx.
References dir, genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), and genf::GFDetPlane::getV().
Referenced by setReferencePlane().
|
inlinevirtual |
|
inlineinherited |
Definition at line 223 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fChiSqu.
Referenced by genf::GFTrack::getChiSqu(), genf::GFAbsTrackRep::getRedChiSqu(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
inlineinherited |
Definition at line 187 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fCov.
Referenced by genf::GFDaf::blowUpCovs(), genf::GFKalman::blowUpCovs(), genf::GFKalman::blowUpCovsDiag(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), genf::GFKalman::processTrack(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
inlineinherited |
Definition at line 190 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::getCharge(), genf::GFAbsTrackRep::getMom(), genf::GFAbsTrackRep::getPos(), genf::GFAbsTrackRep::getPosMom(), and genf::GFAbsTrackRep::getPosMomCov().
|
inlineinherited |
returns dimension of state vector
Definition at line 182 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fDimension, and genf::GFAbsTrackRep::Print().
Referenced by genf::GFKalman::getChi2Hit(), genf::GFAbsTrackRep::getNDF(), genf::GFTrack::getResiduals(), genf::GFKalman::processHit(), and genf::GFDaf::processTrack().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 217 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fFirstState.
|
inlineinherited |
|
inlineinherited |
Definition at line 222 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fLastPlane.
Referenced by trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
inlineinherited |
|
virtual |
Implements genf::GFAbsTrackRep.
Definition at line 382 of file SlTrackRep.cxx.
References extrapolate(), genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getNormal(), genf::GFDetPlane::getU(), and genf::GFDetPlane::getV().
|
inlineinherited |
Definition at line 210 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getMom().
Referenced by genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getMom(), getPosMom(), genf::RKTrackRep::prototype(), and setReferencePlane().
|
inlineinherited |
Definition at line 230 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getDim().
Referenced by genf::GFTrack::getNDF(), genf::GFAbsTrackRep::getRedChiSqu(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
virtual |
Implements genf::GFAbsTrackRep.
Definition at line 376 of file SlTrackRep.cxx.
References extrapolate(), genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), and genf::GFDetPlane::getV().
|
inlineinherited |
Definition at line 209 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getPos().
Referenced by genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getPos(), getPosMom(), genf::RKTrackRep::prototype(), and setReferencePlane().
|
virtual |
Implements genf::GFAbsTrackRep.
Definition at line 390 of file SlTrackRep.cxx.
References genf::GFAbsTrackRep::getMom(), and genf::GFAbsTrackRep::getPos().
Referenced by setReferencePlane().
|
virtualinherited |
method which gets position, momentum and 6x6 covariance matrix
default implementation in cxx file, if a ConcreteTrackRep can not implement this functionality
Definition at line 101 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::Abort().
Referenced by genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getPosMomCov(), and genf::GFTrack::getPosMomCov().
|
inlineinherited |
Definition at line 212 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getPosMomCov().
|
inlineinherited |
returns chi2/ndf
Definition at line 225 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getChiSqu(), and genf::GFAbsTrackRep::getNDF().
Referenced by genf::GFTrack::getRedChiSqu().
|
inlineinherited |
Definition at line 260 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fRefPlane.
Referenced by genf::GFKalman::processHit(), genf::GFDaf::processTrack(), genf::GFKalman::processTrack(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
inlineinherited |
Definition at line 186 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fState.
Referenced by genf::GFTrack::fillGeoTrack(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), genf::GFKalman::processTrack(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
inlineinherited |
Definition at line 189 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fState.
|
inlineinherited |
Definition at line 277 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::Abort(), genf::GFAbsTrackRep::fStatusFlag, and genf::GFAbsTrackRep::reset().
Referenced by genf::GFDaf::blowUpCovs(), genf::GFKalman::blowUpCovs(), genf::GFKalman::blowUpCovsDiag(), genf::GFKalman::fittingPass(), genf::GFDaf::processTrack(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().
|
virtualinherited |
Definition at line 122 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::fChiSqu, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::Print(), and genf::PrintROOTmatrix().
Referenced by genf::GFAbsTrackRep::getDim(), and genf::GFTrack::Print().
|
inlinevirtual |
Implements genf::GFAbsTrackRep.
Definition at line 19 of file SlTrackRep.h.
References SlTrackRep().
|
virtualinherited |
Definition at line 109 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fFirstCov, genf::GFAbsTrackRep::fFirstState, genf::GFAbsTrackRep::fLastCov, genf::GFAbsTrackRep::fLastState, genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, and genf::GFDetPlane::set().
Referenced by genf::GFAbsTrackRep::getStatusFlag().
|
inlineinherited |
|
inlineinherited |
Definition at line 244 of file GFAbsTrackRep.h.
Referenced by genf::GFDaf::blowUpCovs(), genf::GFKalman::blowUpCovs(), and genf::GFKalman::blowUpCovsDiag().
|
inlinevirtualinherited |
Definition at line 236 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::extrapolate(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), genf::RKTrackRep::setData(), and genf::RKTrackRep::switchDirection().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 245 of file GFAbsTrackRep.h.
Referenced by genf::GFKalman::processTrack().
|
inlineinherited |
Deprecated. Should be removed soon.
Definition at line 271 of file GFAbsTrackRep.h.
References f.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 263 of file GFAbsTrackRep.h.
References n.
Referenced by genf::GFKalman::fittingPass().
|
inline |
Definition at line 21 of file SlTrackRep.h.
References extrapolate(), extrapolateToLine(), extrapolateToPoint(), genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::getMom(), genf::GFAbsTrackRep::getPos(), and getPosMom().
Referenced by SlTrackRep().
|
inlineinherited |
Definition at line 266 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::switchDirection().
Referenced by genf::GFKalman::fittingPass(), and genf::GFDaf::processTrack().
|
virtualinherited |
make step of h cm along the track
There is an emply implementation in GFAbsTrackRep.cxx which will abort (see one of the extrapolate methods above). This can be overwritten, if this feature is needed.
Definition at line 96 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::Abort().
|
inlinevirtual |
|
private |
Definition at line 48 of file SlTrackRep.h.
Referenced by switchDirection().
|
protectedinherited |
chiSqu of the track fit
Definition at line 95 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getChiSqu(), and genf::GFAbsTrackRep::Print().
|
protectedinherited |
The covariance matrix.
Definition at line 92 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::RKTrackRep::extrapolate(), genf::GFAbsTrackRep::getCov(), genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::Print(), genf::RKTrackRep::rescaleCovOffDiags(), genf::GFAbsTrackRep::reset(), genf::RKTrackRep::RKTrackRep(), and SlTrackRep().
|
protectedinherited |
Dimensionality of track representation.
Definition at line 86 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::GFAbsTrackRep::extrapolate(), and genf::GFAbsTrackRep::getDim().
|
protectedinherited |
Definition at line 105 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getFirstCov(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
Definition at line 109 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getFirstPlane().
|
protectedinherited |
state, cov and plane for first and last point in fit
Definition at line 104 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getFirstState(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
specifies the direction of flight of the particle
Definition at line 101 of file GFAbsTrackRep.h.
|
protectedinherited |
Definition at line 108 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getLastCov(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
Definition at line 110 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getLastPlane().
|
protectedinherited |
Definition at line 107 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getLastState(), genf::RKTrackRep::getMomLast(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
Definition at line 96 of file GFAbsTrackRep.h.
|
protectedinherited |
Definition at line 113 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::RKTrackRep::extrapolate(), extrapolateToLine(), genf::RKTrackRep::extrapolateToLine(), extrapolateToPoint(), genf::RKTrackRep::extrapolateToPoint(), getMom(), genf::RKTrackRep::getMom(), getPos(), genf::RKTrackRep::getPos(), genf::RKTrackRep::getPosMom(), genf::GFAbsTrackRep::getReferencePlane(), genf::GFAbsTrackRep::Print(), genf::GFAbsTrackRep::reset(), genf::RKTrackRep::RKTrackRep(), and setReferencePlane().
|
protectedinherited |
The vector of track parameters.
Definition at line 89 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::RKTrackRep::extrapolate(), extrapolateToLine(), genf::RKTrackRep::extrapolateToLine(), extrapolateToPoint(), genf::RKTrackRep::extrapolateToPoint(), getMom(), genf::RKTrackRep::getMom(), getPos(), genf::RKTrackRep::getPos(), genf::RKTrackRep::getPosMom(), genf::GFAbsTrackRep::getState(), genf::GFAbsTrackRep::getStateElem(), genf::GFAbsTrackRep::Print(), genf::GFAbsTrackRep::reset(), genf::RKTrackRep::RKTrackRep(), genf::RKTrackRep::setData(), and SlTrackRep().
|
protectedinherited |
status of track representation: 0 means everything's OK
Definition at line 99 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getStatusFlag().