LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 11 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 48 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 36 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 22 of file SlTrackRep.cxx.
References d, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fState, and setReferencePlane().
|
virtual |
Definition at line 62 of file SlTrackRep.cxx.
|
inlineinherited |
|
inlineinherited |
Definition at line 296 of file GFAbsTrackRep.h.
References n.
Referenced by genf::GFKalman::processHit().
|
inlinevirtual |
Implements genf::GFAbsTrackRep.
Definition at line 21 of file SlTrackRep.h.
References SlTrackRep().
|
virtual |
Definition at line 105 of file SlTrackRep.cxx.
References dir, 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 66 of file SlTrackRep.cxx.
References dir, 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, and genf::GeaneTrackRep2.
Definition at line 42 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, and genf::GeaneTrackRep2.
|
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 33 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 353 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 334 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 245 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 199 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 202 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 194 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 227 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fFirstState.
|
inlineinherited |
|
inlineinherited |
Definition at line 242 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 388 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 221 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getMom().
Referenced by genf::GeaneTrackRep2::extrapolate(), genf::GeaneTrackRep2::extrapolateToLine(), genf::GeaneTrackRep2::extrapolateToPoint(), genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getMom(), getPosMom(), genf::GeaneTrackRep2::prototype(), genf::RKTrackRep::prototype(), and setReferencePlane().
|
inlineinherited |
Definition at line 253 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 381 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 220 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getPos().
Referenced by genf::GeaneTrackRep2::extrapolateToLine(), genf::GeaneTrackRep2::extrapolateToPoint(), genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getPos(), getPosMom(), genf::GeaneTrackRep2::prototype(), genf::RKTrackRep::prototype(), and setReferencePlane().
|
virtual |
Implements genf::GFAbsTrackRep.
Definition at line 397 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
Reimplemented in genf::GeaneTrackRep2.
Definition at line 75 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::Abort().
Referenced by genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getPosMomCov(), and genf::GFTrack::getPosMomCov().
|
inlineinherited |
Definition at line 223 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getPosMomCov().
|
inlineinherited |
returns chi2/ndf
Definition at line 249 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getChiSqu(), and genf::GFAbsTrackRep::getNDF().
Referenced by genf::GFTrack::getRedChiSqu().
|
inlineinherited |
Definition at line 285 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 198 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 201 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::fState.
|
inlineinherited |
Definition at line 308 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 93 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 22 of file SlTrackRep.h.
References SlTrackRep().
|
virtualinherited |
Definition at line 80 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 263 of file GFAbsTrackRep.h.
Referenced by genf::GFDaf::blowUpCovs(), genf::GFKalman::blowUpCovs(), and genf::GFKalman::blowUpCovsDiag().
|
inlinevirtualinherited |
Definition at line 258 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::extrapolate(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), genf::RKTrackRep::setData(), and genf::RKTrackRep::switchDirection().
|
inlineinherited |
Definition at line 269 of file GFAbsTrackRep.h.
|
inlineinherited |
Definition at line 272 of file GFAbsTrackRep.h.
|
inlineinherited |
Definition at line 266 of file GFAbsTrackRep.h.
|
inlineinherited |
Deprecated. Should be removed soon.
Definition at line 306 of file GFAbsTrackRep.h.
References f.
|
inlineinherited |
Definition at line 278 of file GFAbsTrackRep.h.
|
inlineinherited |
Definition at line 281 of file GFAbsTrackRep.h.
|
inlineinherited |
Definition at line 275 of file GFAbsTrackRep.h.
|
inlineinherited |
Definition at line 290 of file GFAbsTrackRep.h.
References n.
Referenced by genf::GFKalman::fittingPass().
|
inline |
Definition at line 24 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 299 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 71 of file GFAbsTrackRep.cxx.
References genf::GFAbsTrackRep::Abort().
|
inlinevirtual |
|
private |
Definition at line 57 of file SlTrackRep.h.
Referenced by switchDirection().
|
protectedinherited |
chiSqu of the track fit
Definition at line 99 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getChiSqu(), and genf::GFAbsTrackRep::Print().
|
protectedinherited |
The covariance matrix.
Definition at line 96 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::GeaneTrackRep2::extrapolate(), genf::RKTrackRep::extrapolate(), genf::GeaneTrackRep2::extrapolateToLine(), genf::GeaneTrackRep2::extrapolateToPoint(), genf::GeaneTrackRep2::GeaneTrackRep2(), 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 90 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::GeaneTrackRep2::extrapolate(), genf::GFAbsTrackRep::extrapolate(), and genf::GFAbsTrackRep::getDim().
|
protectedinherited |
Definition at line 109 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getFirstCov(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
Definition at line 113 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getFirstPlane().
|
protectedinherited |
state, cov and plane for first and last point in fit
Definition at line 108 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 105 of file GFAbsTrackRep.h.
|
protectedinherited |
Definition at line 112 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getLastCov(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
Definition at line 114 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getLastPlane().
|
protectedinherited |
Definition at line 111 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getLastState(), genf::RKTrackRep::getMomLast(), and genf::GFAbsTrackRep::reset().
|
protectedinherited |
Definition at line 100 of file GFAbsTrackRep.h.
|
protectedinherited |
Definition at line 117 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::GeaneTrackRep2::extrapolate(), genf::RKTrackRep::extrapolate(), extrapolateToLine(), genf::GeaneTrackRep2::extrapolateToLine(), genf::RKTrackRep::extrapolateToLine(), extrapolateToPoint(), genf::GeaneTrackRep2::extrapolateToPoint(), genf::RKTrackRep::extrapolateToPoint(), genf::GeaneTrackRep2::GeaneTrackRep2(), getMom(), genf::GeaneTrackRep2::getMom(), genf::RKTrackRep::getMom(), getPos(), genf::GeaneTrackRep2::getPos(), genf::RKTrackRep::getPos(), genf::GeaneTrackRep2::getPosMom(), 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 93 of file GFAbsTrackRep.h.
Referenced by extrapolate(), genf::GeaneTrackRep2::extrapolate(), genf::RKTrackRep::extrapolate(), extrapolateToLine(), genf::RKTrackRep::extrapolateToLine(), extrapolateToPoint(), genf::RKTrackRep::extrapolateToPoint(), genf::GeaneTrackRep2::GeaneTrackRep2(), getMom(), genf::GeaneTrackRep2::getMom(), genf::RKTrackRep::getMom(), getPos(), genf::GeaneTrackRep2::getPos(), genf::RKTrackRep::getPos(), genf::GeaneTrackRep2::getPosMom(), 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 103 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getStatusFlag().