9 #include"FairTrackParP.h"
14 #include"RKTrackRep.h"
20 #include <TMatrixDSym.h>
35 cand->
getHit(
i,detId,hitId,rho);
36 retVal->
AddHit(detId,hitId,rho);
62 if (dynamic_cast<genfit::RKTrackRep*>(tr->
getCardinalRep())==NULL) {
63 std::cerr <<
" GenfitAbsTrackRep2PndTrack() can currently only handle RKTrackRep" << std::endl;
77 for(
int i=0;
i<5;++
i){
79 firstCova[count++]=firstCov(
i,j);
84 for(
int i=0;
i<5;++
i){
86 lastCova[count++]=lastCov(
i,j);
93 FairTrackParP first(firstState[3],firstState[4],firstState[1],firstState[2],firstState[0],firstCova,firstPlane->getO(),firstPlane->getU(),firstPlane->getV(),first_spu);
94 FairTrackParP last(lastState[3],lastState[4],lastState[1],lastState[2],lastState[0],lastCova,lastPlane->getO(),lastPlane->getU(),lastPlane->getV(),last_spu);
Track candidate – seed values and indices.
TrackCandHit * getHit(int i) const
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
void addHit(int detId, int hitId, int planeId=-1, double sortingParameter=0)
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
PndTrackCandHit GetSortedHit(UInt_t i)
double getChi2() const
Get chi^2 of the fit.
const TMatrixDSym & getCov() const
const TVectorD & getAuxInfo() const
PndTrackCand * Genfit2TrackCand2PndTrackCand(const genfit::TrackCand *cand)
double getNdf() const
Get the degrees of freedom of the fit.
genfit::TrackCand * PndTrackCand2Genfit2TrackCand(PndTrackCand *cand)
bool isFitConverged(bool inAllPoints=true) const
Did the fit converge (in all Points or only partially)?
void AddHit(UInt_t detId, UInt_t hitId, Double_t rho)
FitStatus * getFitStatus(const AbsTrackRep *rep=NULL) const
Get FitStatus for a AbsTrackRep. Per default, return FitStatus for cardinalRep.
AbsTrackRep * getCardinalRep() const
Get cardinal track representation.
TrackCand * constructTrackCand() const
Construct a new TrackCand containing the hit IDs of the measurements.
unsigned int getNHits() const
PndTrack * Genfit2Track2PndTrack(const genfit::Track *tr)
const MeasuredStateOnPlane & getFittedState(int id=0, const AbsTrackRep *rep=NULL, bool biased=true) const
Shortcut to get FittedStates.
void setMcTrackId(int i)
Set the MCT track id, for MC simulations.
const TVectorD & getState() const
const SharedPlanePtr & getPlane() const
int getMcTrackId() const
Get the MCT track id, for MC simulations - default value = -1.