LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RKTrackRep.h"
Public Member Functions | |
RKTrackRep () | |
RKTrackRep (const TVector3 &pos, const TVector3 &mom, const TVector3 &poserr, const TVector3 &momerr, const int &PDGCode) | |
RKTrackRep (const GFTrackCand *aGFTrackCandPtr) | |
RKTrackRep (const TVector3 &pos, const TVector3 &mom, const int &PDGCode) | |
RKTrackRep (const GFDetPlane &pl, const TVector3 &mom, const int &PDGCode) | |
virtual | ~RKTrackRep () |
virtual GFAbsTrackRep * | clone () const |
virtual GFAbsTrackRep * | prototype () const |
double | extrapolate (const GFDetPlane &, TMatrixT< Double_t > &statePred, TMatrixT< Double_t > &covPred) |
returns the tracklength spanned in this extrapolation More... | |
double | extrapolate (const GFDetPlane &, TMatrixT< Double_t > &statePred) |
returns the tracklength spanned in this extrapolation More... | |
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... | |
TVector3 | getPos (const GFDetPlane &) |
Returns position of the track in the plane. More... | |
TVector3 | getMom (const GFDetPlane &) |
Returns momentum of the track in the plane. More... | |
TVector3 | getMomLast (const GFDetPlane &) |
void | getPosMom (const GFDetPlane &, TVector3 &pos, TVector3 &mom) |
Gets position and momentum in the plane by exrapolating or not. More... | |
double | getCharge () const |
Returns charge. More... | |
void | switchDirection () |
deprecated More... | |
void | setPDG (int) |
Set PDG particle code. More... | |
int | getPDG () |
void | rescaleCovOffDiags () |
void | setData (const TMatrixT< double > &st, const GFDetPlane &pl, const TMatrixT< double > *cov=NULL, const TMatrixT< double > *aux=NULL) |
Sets state, plane and (optionally) covariance. More... | |
const TMatrixT< double > * | getAuxInfo (const GFDetPlane &pl) |
bool | hasAuxInfo () |
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 Member Functions | |
RKTrackRep & | operator= (const RKTrackRep *) |
RKTrackRep (const RKTrackRep &) | |
bool | RKutta (const GFDetPlane &plane, double *P, double &coveredDistance, std::vector< TVector3 > &points, std::vector< double > &pointLengths, const double &maxLen=-1, bool calcCov=true) const |
Contains all material effects. More... | |
TVector3 | poca2Line (const TVector3 &extr1, const TVector3 &extr2, const TVector3 &point) const |
double | Extrap (const GFDetPlane &plane, TMatrixT< Double_t > *state, TMatrixT< Double_t > *cov=NULL) const |
Handles propagation and material effects. More... | |
Private Attributes | |
GFDetPlane | fCachePlane |
double | fCacheSpu |
double | fSpu |
TMatrixT< double > | fAuxInfo |
bool | fDirection |
int | fPdg |
PDG particle code. More... | |
double | fMass |
Mass (in GeV) More... | |
double | fCharge |
Charge. More... | |
Definition at line 52 of file RKTrackRep.h.
genf::RKTrackRep::RKTrackRep | ( | ) |
genf::RKTrackRep::RKTrackRep | ( | const TVector3 & | pos, |
const TVector3 & | mom, | ||
const TVector3 & | poserr, | ||
const TVector3 & | momerr, | ||
const int & | PDGCode | ||
) |
Definition at line 84 of file RKTrackRep.cxx.
References fCharge, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), genf::GFDetPlane::setNormal(), genf::GFDetPlane::setO(), setPDG(), and w.
genf::RKTrackRep::RKTrackRep | ( | const GFTrackCand * | aGFTrackCandPtr | ) |
Definition at line 141 of file RKTrackRep.cxx.
References fCharge, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFTrackCand::getDirError(), genf::GFTrackCand::getDirSeed(), genf::GFDetPlane::getO(), genf::GFTrackCand::getPdgCode(), genf::GFTrackCand::getPosError(), genf::GFTrackCand::getPosSeed(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), genf::GFDetPlane::setNormal(), genf::GFDetPlane::setO(), setPDG(), and w.
genf::RKTrackRep::RKTrackRep | ( | const TVector3 & | pos, |
const TVector3 & | mom, | ||
const int & | PDGCode | ||
) |
Definition at line 192 of file RKTrackRep.cxx.
References fCharge, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), genf::GFDetPlane::setNormal(), genf::GFDetPlane::setO(), setPDG(), and w.
genf::RKTrackRep::RKTrackRep | ( | const GFDetPlane & | pl, |
const TVector3 & | mom, | ||
const int & | PDGCode | ||
) |
Definition at line 246 of file RKTrackRep.cxx.
References fCharge, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), setPDG(), and w.
|
virtual |
Definition at line 66 of file RKTrackRep.cxx.
|
inlineprivate |
Definition at line 173 of file RKTrackRep.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 296 of file GFAbsTrackRep.h.
References n.
Referenced by genf::GFKalman::processHit().
|
inlinevirtual |
Implements genf::GFAbsTrackRep.
Definition at line 77 of file RKTrackRep.h.
References RKTrackRep().
|
private |
Handles propagation and material effects.
extrapolate(), extrapolateToPoint() and extrapolateToLine() call this function. Extrap() needs a plane as an argument, hence extrapolateToPoint() and extrapolateToLine() create virtual detector planes. In this function, RKutta() is called and the resulting points and point paths are filtered so that the direction doesn't change and tiny steps are filtered out. After the propagation the material effects in #fEffect are called. Extrap() will loop until the plane is reached, unless the propagation fails or the maximum number of iterations is exceeded.
Definition at line 1059 of file RKTrackRep.cxx.
References genf::GFDetPlane::dist(), genf::GFDetPlane::distance(), E, genf::GFMaterialEffects::effects(), fCharge, trkf::fill(), fPdg, genf::GFMaterialEffects::getInstance(), genf::GFDetPlane::inActive(), MINSTEP, noise(), RKutta(), GFException::setFatal(), and fhicl::detail::atom::value().
Referenced by extrapolate(), extrapolateToLine(), and extrapolateToPoint().
|
virtual |
returns the tracklength spanned in this extrapolation
The covariance matrix is transformed from the plane coordinate system to the master reference system (for the propagation) and, after propagation, back to the plane coordinate system.
Also the parameter spu (which is +1 or -1 and indicates the direction of the particle) is calculated and stored in fCacheSpu. The plane is stored in fCachePlane.
Master reference system (MARS):
Plane coordinate system:
Jacobians:
with
Implements genf::GFAbsTrackRep.
Definition at line 476 of file RKTrackRep.cxx.
References E, Extrap(), fCachePlane, fCacheSpu, genf::GFAbsTrackRep::fCov, genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getNormal(), genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), genf::PrintROOTobject(), rescaleCovOffDiags(), w, X, Y, and Z.
Referenced by getMom(), getPos(), getPosMom(), and prototype().
|
virtual |
returns the tracklength spanned in this extrapolation
Reimplemented from genf::GFAbsTrackRep.
Definition at line 602 of file RKTrackRep.cxx.
References Extrap(), genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getNormal(), genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), w, X, Y, and Z.
|
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.
Reimplemented from genf::GFAbsTrackRep.
Definition at line 425 of file RKTrackRep.cxx.
References Extrap(), genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), MINSTEP, poca2Line(), GFException::setFatal(), genf::GFDetPlane::setO(), genf::GFDetPlane::setU(), genf::GFDetPlane::setV(), and w.
Referenced by prototype().
|
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 366 of file RKTrackRep.cxx.
References Extrap(), genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), MINSTEP, GFException::setFatal(), genf::GFDetPlane::setON(), and w.
Referenced by prototype().
const TMatrixT< double > * genf::RKTrackRep::getAuxInfo | ( | const GFDetPlane & | pl | ) |
Definition at line 56 of file RKTrackRep.cxx.
References fAuxInfo, fCachePlane, fCacheSpu, and GFException::setFatal().
Referenced by switchDirection().
|
inlinevirtual |
Returns charge.
Implements genf::GFAbsTrackRep.
Definition at line 141 of file RKTrackRep.h.
References fCharge.
|
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 |
Returns momentum of the track in the plane.
If #GFDetPlane equals the reference plane fRefPlane, returns current momentum; otherwise it extrapolates the track to the plane and returns the momentum.
Implements genf::GFAbsTrackRep.
Definition at line 324 of file RKTrackRep.cxx.
References extrapolate(), fCacheSpu, genf::GFAbsTrackRep::fRefPlane, fSpu, 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::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getMom(), genf::SlTrackRep::getPosMom(), prototype(), and genf::SlTrackRep::setReferencePlane().
TVector3 genf::RKTrackRep::getMomLast | ( | const GFDetPlane & | pl | ) |
Definition at line 338 of file RKTrackRep.cxx.
References genf::GFAbsTrackRep::fLastState, fSpu, genf::GFDetPlane::getNormal(), genf::GFDetPlane::getU(), and genf::GFDetPlane::getV().
Referenced by prototype().
|
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().
int genf::RKTrackRep::getPDG | ( | ) |
|
virtual |
Returns position of the track in the plane.
If #GFDetPlane equals the reference plane fRefPlane, returns current position; otherwise it extrapolates the track to the plane and returns the position.
Implements genf::GFAbsTrackRep.
Definition at line 314 of file RKTrackRep.cxx.
References extrapolate(), genf::GFAbsTrackRep::fRefPlane, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), genf::GFDetPlane::getV(), and s.
|
inlineinherited |
Definition at line 220 of file GFAbsTrackRep.h.
References genf::GFAbsTrackRep::getPos().
Referenced by genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::getPos(), genf::SlTrackRep::getPosMom(), prototype(), and genf::SlTrackRep::setReferencePlane().
|
virtual |
Gets position and momentum in the plane by exrapolating or not.
If #GFDetPlane equals the reference plane fRefPlane, it gets current position and momentum; otherwise for getMom() it extrapolates the track to the plane and gets the position and momentum. GetMomLast() does no extrapn. EC.
Implements genf::GFAbsTrackRep.
Definition at line 348 of file RKTrackRep.cxx.
References extrapolate(), fCacheSpu, genf::GFAbsTrackRep::fRefPlane, fSpu, genf::GFAbsTrackRep::fState, genf::GFDetPlane::getNormal(), genf::GFDetPlane::getO(), genf::GFDetPlane::getU(), and genf::GFDetPlane::getV().
Referenced by prototype().
|
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 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().
|
inline |
Definition at line 162 of file RKTrackRep.h.
|
inlineprivate |
Definition at line 172 of file RKTrackRep.h.
|
private |
Definition at line 412 of file RKTrackRep.cxx.
References GFException::setFatal().
Referenced by extrapolateToLine().
|
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 78 of file RKTrackRep.h.
References extrapolate(), extrapolateToLine(), extrapolateToPoint(), genf::GFAbsTrackRep::getMom(), getMomLast(), genf::GFAbsTrackRep::getPos(), getPosMom(), and RKTrackRep().
void genf::RKTrackRep::rescaleCovOffDiags | ( | ) |
Definition at line 1223 of file RKTrackRep.cxx.
References genf::GFAbsTrackRep::fCov.
Referenced by extrapolate(), and switchDirection().
|
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().
|
private |
Contains all material effects.
Propagates the particle through the magnetic field. If the propagation is successfull and the plane is reached, the function returns true. The argument P has to contain the state (#P[0] - #P[6]) and a unity matrix (#P[7] - #P[55]) with the last column multiplied wit q/p (hence #P[55] is not 1 but q/p). Propagated state and the jacobian (with the last column multiplied wit q/p) of the extrapolation are written to #P. In the main loop of the Runge Kutta algorithm, the steppers in #fEffect are called and may reduce the estimated stepsize so that a maximum momentum loss will not be exceeded. If this is the case, RKutta() will only propagate the reduced distance and then return. This is to ensure that material effects, which are calculated after the propagation, are taken into account properly.
Definition at line 692 of file RKTrackRep.cxx.
References genf::GFDetPlane::distance(), fCharge, fPdg, genf::GFFieldManager::getFieldVal(), genf::GFMaterialEffects::getInstance(), genf::GFDetPlane::getNormal(), genf::GFDetPlane::getO(), genf::GFDetPlane::inActive(), MINSTEP, R, GFException::setFatal(), and genf::GFMaterialEffects::stepper().
Referenced by Extrap().
|
inlineinherited |
|
inlineinherited |
Definition at line 263 of file GFAbsTrackRep.h.
Referenced by genf::GFDaf::blowUpCovs(), genf::GFKalman::blowUpCovs(), and genf::GFKalman::blowUpCovsDiag().
void genf::RKTrackRep::setData | ( | const TMatrixT< double > & | st, |
const GFDetPlane & | pl, | ||
const TMatrixT< double > * | cov = NULL , |
||
const TMatrixT< double > * | aux = NULL |
||
) |
Sets state, plane and (optionally) covariance.
This function also sets the parameter fSpu to the value stored in fCacheSpu. Therefore it has to be ensured that the plane #pl is the same as the plane of the last extrapolation (i.e. fCachePlane), where fCacheSpu was calculated. Hence, if the argument #pl is not equal to fCachePlane, an error message is shown an an exception is thrown.
Definition at line 43 of file RKTrackRep.cxx.
References fCachePlane, fCacheSpu, fCharge, fSpu, genf::GFAbsTrackRep::fState, genf::GFAbsTrackRep::setData(), and GFException::setFatal().
Referenced by switchDirection().
|
inlinevirtualinherited |
Definition at line 258 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::extrapolate(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), setData(), and 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().
void genf::RKTrackRep::setPDG | ( | int | i | ) |
Set PDG particle code.
Definition at line 300 of file RKTrackRep.cxx.
References fCharge, fMass, fPdg, and part.
Referenced by RKTrackRep(), and switchDirection().
|
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 |
deprecated
Implements genf::GFAbsTrackRep.
Definition at line 143 of file RKTrackRep.h.
References fDirection, getAuxInfo(), getPDG(), rescaleCovOffDiags(), setData(), genf::GFAbsTrackRep::setData(), and setPDG().
|
private |
Definition at line 169 of file RKTrackRep.h.
Referenced by getAuxInfo().
|
private |
Definition at line 166 of file RKTrackRep.h.
Referenced by extrapolate(), getAuxInfo(), and setData().
|
private |
Definition at line 167 of file RKTrackRep.h.
Referenced by extrapolate(), getAuxInfo(), getMom(), getPosMom(), and setData().
|
private |
Charge.
Definition at line 181 of file RKTrackRep.h.
Referenced by Extrap(), getCharge(), RKTrackRep(), RKutta(), setData(), and setPDG().
|
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 genf::SlTrackRep::extrapolate(), extrapolate(), genf::GFAbsTrackRep::getCov(), genf::GFAbsTrackRep::getCovElem(), genf::GFAbsTrackRep::Print(), rescaleCovOffDiags(), genf::GFAbsTrackRep::reset(), RKTrackRep(), and genf::SlTrackRep::SlTrackRep().
|
protectedinherited |
Dimensionality of track representation.
Definition at line 90 of file GFAbsTrackRep.h.
Referenced by genf::SlTrackRep::extrapolate(), genf::GFAbsTrackRep::extrapolate(), and genf::GFAbsTrackRep::getDim().
|
private |
Definition at line 174 of file RKTrackRep.h.
Referenced by switchDirection().
|
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(), getMomLast(), and genf::GFAbsTrackRep::reset().
|
private |
|
protectedinherited |
Definition at line 100 of file GFAbsTrackRep.h.
|
private |
|
protectedinherited |
Definition at line 117 of file GFAbsTrackRep.h.
Referenced by genf::SlTrackRep::extrapolate(), extrapolate(), genf::SlTrackRep::extrapolateToLine(), extrapolateToLine(), genf::SlTrackRep::extrapolateToPoint(), extrapolateToPoint(), genf::SlTrackRep::getMom(), getMom(), genf::SlTrackRep::getPos(), getPos(), getPosMom(), genf::GFAbsTrackRep::getReferencePlane(), genf::GFAbsTrackRep::Print(), genf::GFAbsTrackRep::reset(), RKTrackRep(), and genf::SlTrackRep::setReferencePlane().
|
private |
Definition at line 168 of file RKTrackRep.h.
Referenced by extrapolate(), extrapolateToLine(), extrapolateToPoint(), getMom(), getMomLast(), getPosMom(), RKTrackRep(), and setData().
|
protectedinherited |
The vector of track parameters.
Definition at line 93 of file GFAbsTrackRep.h.
Referenced by genf::SlTrackRep::extrapolate(), extrapolate(), genf::SlTrackRep::extrapolateToLine(), extrapolateToLine(), genf::SlTrackRep::extrapolateToPoint(), extrapolateToPoint(), genf::SlTrackRep::getMom(), getMom(), genf::SlTrackRep::getPos(), getPos(), getPosMom(), genf::GFAbsTrackRep::getState(), genf::GFAbsTrackRep::getStateElem(), genf::GFAbsTrackRep::Print(), genf::GFAbsTrackRep::reset(), RKTrackRep(), setData(), and genf::SlTrackRep::SlTrackRep().
|
protectedinherited |
status of track representation: 0 means everything's OK
Definition at line 103 of file GFAbsTrackRep.h.
Referenced by genf::GFAbsTrackRep::getStatusFlag().