33 #include "TClonesArray.h"
34 #include "TObjArray.h"
39 class TVirtualGeoTrack;
77 std::vector<GFAbsRecoHit*>
fHits;
292 fHits.push_back(theHit);
301 unsigned int planeId=0){
302 fHits.push_back(theHit);
352 std::vector<double>& result);
Base Class for genfit track representations. Defines interface for track parameterizations.
GFBookkeeping * getBK(int index=-1)
get GFBookKeeping object for particular track rep (default is cardinal rep)
void addFailedHit(unsigned int irep, unsigned int id)
double getRedChiSqu() const
returns chi2/ndf
unsigned int getNumHits() const
GFTrack()
Default constructor – needed for compatibility with ROOT.
unsigned int getNextHitToFit() const
Accessor for fNextHitToFit.
void addHit(GFAbsRecoHit *theHit)
deprecated!
Detector plane genfit geometry class.
Track object for genfit. genfit algorithms work on these objects.
bool getSmoothing()
Read back if smoothing is/was turned on or off for this track.
unsigned int getNDF() const
Get NDF.
double getChiSqu() const
Get chi2.
void getHitsByPlane(std::vector< std::vector< int > * > &retVal)
TVector3 getPos() const
Get present position.
std::vector< GFAbsRecoHit * > getHits()
void setSmoothing(bool smooth=true)
Switch smoothing on or off for this track.
void addHitVector(std::vector< GFAbsRecoHit * > hits)
Add collection of hits.
cout<< "POINTs for new FwEndCap == "<< tsim-> GetEntriesFast()
void getResiduals(unsigned int detId, unsigned int dim, unsigned int rep, std::vector< double > &result)
Get residuals.
void setCandidate(const GFTrackCand &cand, bool doreset=false)
set track candidate
TVector3 getMom() const
Get momentum at the present position.
unsigned int fNextHitToFit
static const int fDefNumTrackReps
std::vector< GFAbsRecoHit * > fHits
Collection of RecoHits.
virtual void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< double > &cov)
method which gets position, momentum and 6x6 covariance matrix
void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< double > &cov)
Get position, momentum, and 6x6 covariance at GFDetPlane.
TObjArray * fTrackReps
Collection of track representations.
double getRedChiSqu() const
Get chi2/NDF.
GFTrack & operator=(const GFTrack &)
assignement operator
virtual TVector3 getMom(const GFDetPlane &pl)=0
unsigned int getNumReps() const
Get number of track represenatations.
virtual TVector3 getPos(const GFDetPlane &pl)=0
GFTrackCand fCand
Helper to store the indices of the hits in the track. See GFTrackCand for details.
std::vector< int > fRepAtHit
repAtHit keeps track of at which hit index which rep is currently defined, to avoid null extrapolatio...
TVector3 getMom(const GFDetPlane &pl) const
Get momentum at GFDetPlane.
void blowUpCovs(double blowUpFactor)
this is needed to blow up the covariance matrix before a fitting pass drops off-diagonal elements and...
void setRepAtHit(unsigned int irep, int ihit)
set the hit index at which plane,state&cov of rep irep is defined
void releaseHits()
Clear hit vector. Note that hits will not be deleted!
void clearRepAtHit()
clear the hit indices at which plane,state&cov of reps are defined
std::vector< GFBookkeeping * > fBookkeeping
Collection of Bookeeping objects for failed hits in every trackrep.
void getPosMomCov(TVector3 &pos, TVector3 &mom, TMatrixT< double > &cov)
Get position, momentum, and 6x6 covariance at current position.
double getCharge() const
Get charge from fit.
void reset()
Resets the GFTrack – deletes RecoHits!
Track candidate – a list of cluster indices.
int getRepAtHit(unsigned int irep)
get the hit index at which plane,state&cov of rep irep is defined
void addHit(GFAbsRecoHit *theHit, unsigned int detId, unsigned int hitId, double rho=0., unsigned int planeId=0)
Add single hit. Updates the GFTrackCand.
Base Class for representing a Hit in GENFIT.
unsigned int getNDF() const
int getFailedHits(int repId=-1)
return the number of failed Hits in track fit repId == -1 will use cardinal rep
GFAbsTrackRep * getTrackRep(int id) const
Accessor for track representations.
void releaseTrackReps()
Clear TrackRep vector. Note that the Reps will not be deleted!
GFAbsTrackRep * getCardinalRep() const
Get cardinal track representation.
const GFTrackCand & getCand() const
void addTrackRep(GFAbsTrackRep *theTrackRep)
Add track represenation.
void addHit(unsigned int detId, unsigned int hitId, double rho=0., unsigned int planeId=0)
GFAbsRecoHit * getHit(int id) const
void setCardinalRep(unsigned int r)
Choose cardinal track represenatation.
void fillGeoTrack(TVirtualGeoTrack *tr) const
Fill TVirtualGeoTrack object Cardinal representation is used.
void mergeHits(GFTrack *trk)
Merge two GFTracks. Only hits will be merged.
void printBookkeeping()
print bookkeeping
void setNextHitToFit(unsigned int i)
Set next hit to be used in a fit.
virtual double getCharge() const =0
TVector3 getPos(const GFDetPlane &pl) const
Get position at GFDetPlane.
unsigned int fCardinal_rep