#include <GFTrack.h>
Public Member Functions | |
GFTrack () | |
Default constructor – needed for compatibility with ROOT. More... | |
GFTrack (const GFTrack &) | |
Copy constructor. More... | |
GFTrack & | operator= (const GFTrack &) |
assignement operator More... | |
GFTrack (GFAbsTrackRep *) | |
Initializing constructor. More... | |
virtual | ~GFTrack () |
void | reset () |
Resets the GFTrack – deletes RecoHits! More... | |
int | getFailedHits (int repId=-1) |
return the number of failed Hits in track fit repId == -1 will use cardinal rep More... | |
std::vector< GFAbsRecoHit * > | getHits () |
const GFTrackCand & | getCand () const |
GFAbsRecoHit * | getHit (int id) const |
unsigned int | getNumHits () const |
void | mergeHits (GFTrack *trk) |
Merge two GFTracks. Only hits will be merged. More... | |
void | releaseHits () |
Clear hit vector. Note that hits will not be deleted! More... | |
unsigned int | getNextHitToFit () const |
Accessor for fNextHitToFit. More... | |
void | setNextHitToFit (unsigned int i) |
Set next hit to be used in a fit. More... | |
GFAbsTrackRep * | getTrackRep (int id) const |
Accessor for track representations. More... | |
unsigned int | getNumReps () const |
Get number of track represenatations. More... | |
GFAbsTrackRep * | getCardinalRep () const |
Get cardinal track representation. More... | |
TVector3 | getMom () const |
Get momentum at the present position. More... | |
TVector3 | getMom (const GFDetPlane &pl) const |
Get momentum at GFDetPlane. More... | |
TVector3 | getPos () const |
Get present position. More... | |
TVector3 | getPos (const GFDetPlane &pl) const |
Get position at GFDetPlane. More... | |
void | getPosMomCov (TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &cov) |
Get position, momentum, and 6x6 covariance at current position. More... | |
void | getPosMomCov (const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &cov) |
Get position, momentum, and 6x6 covariance at GFDetPlane. More... | |
double | getChiSqu () const |
Get chi2. More... | |
unsigned int | getNDF () const |
Get NDF. More... | |
double | getRedChiSqu () const |
Get chi2/NDF. More... | |
double | getCharge () const |
Get charge from fit. More... | |
void | fillGeoTrack (TVirtualGeoTrack *tr) const |
Fill TVirtualGeoTrack object Cardinal representation is used. More... | |
void | fillGeoTrack (TVirtualGeoTrack *tr, unsigned int repid) const |
Fill TVirtualGeoTrack object with data from specified track rep. More... | |
void | addFailedHit (unsigned int irep, unsigned int id) |
void | addHit (GFAbsRecoHit *theHit) |
deprecated! More... | |
void | addHit (GFAbsRecoHit *theHit, unsigned int detId, unsigned int hitId, double rho=0., unsigned int planeId=0) |
Add single hit. Updates the GFTrackCand. More... | |
void | addHitVector (std::vector< GFAbsRecoHit * > hits) |
Add collection of hits. More... | |
void | addTrackRep (GFAbsTrackRep *theTrackRep) |
Add track represenation. More... | |
GFBookkeeping * | getBK (int index=-1) |
get GFBookKeeping object for particular track rep (default is cardinal rep) More... | |
void | setCandidate (const GFTrackCand &cand, bool doreset=false) |
set track candidate More... | |
void | setCardinalRep (unsigned int r) |
Choose cardinal track represenatation. More... | |
void | setHitMeasuredCov (TMatrixT< Double_t > mat) |
void | setHitUpdate (TMatrixT< Double_t > mat) |
void | setHitChi2 (Double_t mat) |
void | setHitState (TMatrixT< Double_t > mat) |
void | setHitCov (TMatrixT< Double_t > mat) |
void | setHitCov7x7 (TMatrixT< Double_t > mat) |
void | setHitPlaneXYZ (TVector3 pl) |
void | setHitPlaneUxUyUz (TVector3 pl) |
void | setHitPlaneU (TVector3 pl) |
void | setHitPlaneV (TVector3 pl) |
void | setPDG (int pdgt) |
std::vector< TMatrixT< Double_t > > | getHitMeasuredCov () |
std::vector< TMatrixT< Double_t > > | getHitUpdate () |
std::vector< Double_t > | getHitChi2 () |
std::vector< TMatrixT< Double_t > > | getHitState () |
std::vector< TMatrixT< Double_t > > | getHitCov () |
std::vector< TMatrixT< Double_t > > | getHitCov7x7 () |
std::vector< TVector3 > | getHitPlaneXYZ () |
std::vector< TVector3 > | getHitPlaneUxUyUz () |
std::vector< TVector3 > | getHitPlaneU () |
std::vector< TVector3 > | getHitPlaneV () |
int | getPDG () |
void | getResiduals (unsigned int detId, unsigned int dim, unsigned int rep, std::vector< double > &result) |
Get residuals. More... | |
void | setRepAtHit (unsigned int irep, int ihit) |
set the hit index at which plane,state&cov of rep irep is defined More... | |
int | getRepAtHit (unsigned int irep) |
get the hit index at which plane,state&cov of rep irep is defined More... | |
void | clearRepAtHit () |
clear the hit indices at which plane,state&cov of reps are defined More... | |
void | printBookkeeping (std::ostream &out=std::cout) const |
print bookkeeping More... | |
void | Print (std::ostream &out=std::cout) const |
void | clearBookkeeping () |
void | clearFailedHits () |
void | getHitsByPlane (std::vector< std::vector< int > * > &retVal) |
Private Member Functions | |
virtual void | Print (Option_t *) const |
Private Attributes | |
TObjArray * | fTrackReps |
Collection of track representations. More... | |
std::vector< GFAbsRecoHit * > | fHits |
Collection of RecoHits. More... | |
std::vector< GFBookkeeping * > | fBookkeeping |
Collection of Bookeeping objects for failed hits in every trackrep. More... | |
std::vector< int > | fRepAtHit |
repAtHit keeps track of at which hit index which rep is currently defined, to avoid null extrapolations More... | |
GFTrackCand | fCand |
Helper to store the indices of the hits in the track. See GFTrackCand for details. More... | |
std::vector< TMatrixT< Double_t > > | fHitMeasCov |
std::vector< TMatrixT< Double_t > > | fHitUpdate |
std::vector< TMatrixT< Double_t > > | fHitState |
std::vector< Double_t > | fHitChi2 |
std::vector< TMatrixT< Double_t > > | fHitCov7x7 |
std::vector< TMatrixT< Double_t > > | fHitCov |
std::vector< TVector3 > | fHitPlaneXYZ |
std::vector< TVector3 > | fHitPlaneUxUyUz |
std::vector< TVector3 > | fHitPlaneU |
std::vector< TVector3 > | fHitPlaneV |
int | fPDG |
unsigned int | fCardinal_rep |
unsigned int | fNextHitToFit |
Static Private Attributes | |
static const int | fDefNumTrackReps = 10 |
genf::GFTrack::GFTrack | ( | ) |
Default constructor – needed for compatibility with ROOT.
Definition at line 31 of file GFTrack.cxx.
genf::GFTrack::GFTrack | ( | const GFTrack & | _tr | ) |
Copy constructor.
Definition at line 52 of file GFTrack.cxx.
genf::GFTrack::GFTrack | ( | GFAbsTrackRep * | defaultRep | ) |
Initializing constructor.
A track needs at least one track representation to be useable. The given track representation has to contain starting values for the fit!
Definition at line 25 of file GFTrack.cxx.
|
virtual |
Definition at line 37 of file GFTrack.cxx.
|
inline |
Definition at line 294 of file GFTrack.h.
|
inline |
deprecated!
Definition at line 300 of file GFTrack.h.
|
inline |
Add single hit. Updates the GFTrackCand.
Definition at line 306 of file GFTrack.h.
|
inline |
Add collection of hits.
This is the standard way to fill the track with hit data
Definition at line 319 of file GFTrack.h.
|
inline |
Add track represenation.
The given track representation has to contain starting values for fit!
Definition at line 327 of file GFTrack.h.
|
inline |
Definition at line 417 of file GFTrack.h.
|
inline |
Definition at line 423 of file GFTrack.h.
|
inline |
clear the hit indices at which plane,state&cov of reps are defined
Definition at line 405 of file GFTrack.h.
|
inline |
Fill TVirtualGeoTrack object Cardinal representation is used.
Definition at line 284 of file GFTrack.h.
void genf::GFTrack::fillGeoTrack | ( | TVirtualGeoTrack * | tr, |
unsigned int | repid | ||
) | const |
Fill TVirtualGeoTrack object with data from specified track rep.
Definition at line 152 of file GFTrack.cxx.
|
inline |
get GFBookKeeping object for particular track rep (default is cardinal rep)
Definition at line 335 of file GFTrack.h.
|
inline |
Definition at line 158 of file GFTrack.h.
|
inline |
Get cardinal track representation.
The user has to choose which track rep should be considered the best one after the fit. Usually the track representation giving the smallest chi2 is choosen. By default the first in the list is returned.
Definition at line 212 of file GFTrack.h.
|
inline |
Get charge from fit.
Cardinal representation is used.
Definition at line 280 of file GFTrack.h.
|
inline |
Get chi2.
Cardinal representation is used.
Definition at line 262 of file GFTrack.h.
|
inline |
return the number of failed Hits in track fit repId == -1 will use cardinal rep
Definition at line 149 of file GFTrack.h.
|
inline |
Definition at line 160 of file GFTrack.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 156 of file GFTrack.h.
void genf::GFTrack::getHitsByPlane | ( | std::vector< std::vector< int > * > & | retVal | ) |
use planeId information of GFTrackCand and return by ref groups of hit ids which are in the same planes.
Definition at line 220 of file GFTrack.cxx.
|
inline |
|
inline |
|
inline |
Get momentum at the present position.
Cardinal representation is used.
Definition at line 219 of file GFTrack.h.
|
inline |
Get momentum at GFDetPlane.
The track will be extrapolated to GFDetPlane to get the momentum there. The track will not be modified. Cardinal representation is used.
Definition at line 226 of file GFTrack.h.
|
inline |
Get NDF.
Cardinal representation is used.
Definition at line 268 of file GFTrack.h.
|
inline |
|
inline |
Definition at line 164 of file GFTrack.h.
|
inline |
Get number of track represenatations.
Definition at line 202 of file GFTrack.h.
|
inline |
Get present position.
Cardinal representation is used.
Definition at line 232 of file GFTrack.h.
|
inline |
Get position at GFDetPlane.
The track will be extrapolated to GFDetPlane to get the position there. The track will not be modified. Cardinal representation is used.
Definition at line 239 of file GFTrack.h.
|
inline |
Get position, momentum, and 6x6 covariance at current position.
Cardinal representation is used.
Definition at line 245 of file GFTrack.h.
|
inline |
Get position, momentum, and 6x6 covariance at GFDetPlane.
The track will be extrapolated to GFDetPlane to get everything there. The track will not be modified. Cardinal representation is used.
Definition at line 254 of file GFTrack.h.
|
inline |
Get chi2/NDF.
Cardinal representation is used.
Definition at line 274 of file GFTrack.h.
|
inline |
get the hit index at which plane,state&cov of rep irep is defined
Definition at line 397 of file GFTrack.h.
void genf::GFTrack::getResiduals | ( | unsigned int | detId, |
unsigned int | dim, | ||
unsigned int | rep, | ||
std::vector< double > & | result | ||
) |
Get residuals.
detId | which detector? |
dim | = index of coordinate to choose from resiudal vector |
rep | which track representation? |
result | results are written to this vector |
Definition at line 169 of file GFTrack.cxx.
|
inline |
Accessor for track representations.
Definition at line 196 of file GFTrack.h.
void genf::GFTrack::mergeHits | ( | GFTrack * | trk | ) |
Merge two GFTracks. Only hits will be merged.
All hits from trk will be merged into this GFTrack. trk will be empty afterwards.
Kalman::continueTrack can be used to include the newly added hits in the fit.
Note that the new hits are inserted at the end of the present track!
Definition at line 126 of file GFTrack.cxx.
genf::GFTrack & genf::GFTrack::operator= | ( | const GFTrack & | _tr | ) |
assignement operator
Definition at line 72 of file GFTrack.cxx.
void genf::GFTrack::Print | ( | std::ostream & | out = std::cout | ) | const |
Definition at line 210 of file GFTrack.cxx.
|
inlineprivatevirtual |
void genf::GFTrack::printBookkeeping | ( | std::ostream & | out = std::cout | ) | const |
print bookkeeping
Definition at line 201 of file GFTrack.cxx.
|
inline |
Clear hit vector. Note that hits will not be deleted!
Be carefull not to create memory leaks here.
Definition at line 184 of file GFTrack.h.
void genf::GFTrack::reset | ( | ) |
Resets the GFTrack – deletes RecoHits!
Definition at line 111 of file GFTrack.cxx.
void genf::GFTrack::setCandidate | ( | const GFTrackCand & | cand, |
bool | doreset = false |
||
) |
set track candidate
Definition at line 140 of file GFTrack.cxx.
|
inline |
Choose cardinal track represenatation.
Definition at line 349 of file GFTrack.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
set the hit index at which plane,state&cov of rep irep is defined
Definition at line 389 of file GFTrack.h.
|
private |
|
private |
Helper to store the indices of the hits in the track. See GFTrackCand for details.
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Collection of track representations.
this array is only to be added to in the addTrackRep method because the synchronized construction of bookkeeping objects and repAtHit array is ensured there. NEVER delete elements from this array! If this functionality will be need, it has to be done synchronized with bookkeeping!!