13 #include"FairTrackParP.h"
16 #include"RKTrackRep.h"
25 cand->
getHit(
i,detId,hitId,rho);
26 retVal->
AddHit(detId,hitId,rho);
48 TMatrixT<double> lastCov = clone->
getLastCov();
53 if (dynamic_cast<GeaneTrackRep*>(clone)!=NULL)
55 else if (dynamic_cast<RKTrackRep*>(clone)!=NULL)
56 gtr = dynamic_cast<RKTrackRep*>(clone);
58 std::cerr <<
" GenfitGFAbsTrackRep2PndTrack() can currently only handle GeaneTrackRep and RKTrackRep" << std::endl;
65 for(
int i=0;
i<5;++
i){
67 firstCova[count++]=firstCov[
i][j];
72 for(
int i=0;
i<5;++
i){
74 lastCova[count++]=lastCov[
i][j];
79 double first_pro(0), last_pro(0), first_spu, last_spu;
88 std::cerr<<
"*** PndGenfitAdapters::GenfitTrack2PndTrack" <<
"\t" <<
"could not convert GenfitTrack to PndTrack"<<std::endl;
92 first_spu = (first_pro>=0) ? 1 : -1;
93 last_spu = (last_pro>=0) ? 1 : -1;
95 FairTrackParP first(firstState[3][0],firstState[4][0],firstState[1][0],firstState[2][0],firstState[0][0],firstCova,firstPlane.
getO(),firstPlane.
getU(),firstPlane.
getV(),first_spu);
96 FairTrackParP last(lastState[3][0],lastState[4][0],lastState[1][0],lastState[2][0],lastState[0][0],lastCova,lastPlane.
getO(),lastPlane.
getU(),lastPlane.
getV(),last_spu);
Base Class for genfit track representations. Defines interface for track parameterizations.
GFDetPlane getFirstPlane() const
Detector plane genfit geometry class.
Track object for genfit. genfit algorithms work on these objects.
unsigned int getNDF() const
Get NDF.
double getChiSqu() const
Get chi2.
PndTrackCandHit GetSortedHit(UInt_t i)
virtual const char * what() const
standard error message handling for exceptions. use like "std::cerr << e.what();" ...
unsigned int getNHits() const
virtual TVector3 getMom(const GFDetPlane &pl)=0
TMatrixT< double > getFirstCov() const
void setMcTrackId(int i)
set the MCT track id, for MC simulations
void AddHit(UInt_t detId, UInt_t hitId, Double_t rho)
void getHit(unsigned int i, unsigned int &detId, unsigned int &hitId) const
Get detector ID and cluster index (hitId) for hit number i.
TMatrixT< double > getLastState() const
TMatrixT< double > getLastCov() const
TMatrixT< double > getFirstState() const
Track candidate – a list of cluster indices.
GFTrackCand * PndTrackCand2GenfitTrackCand(PndTrackCand *cand)
int getMcTrackId() const
get the MCT track id, for MC simulations - def. value -1
GFDetPlane getLastPlane() const
GFAbsTrackRep * getCardinalRep() const
Get cardinal track representation.
const GFTrackCand & getCand() const
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
PndTrack * GenfitTrack2PndTrack(const GFTrack *tr)
void addHit(unsigned int detId, unsigned int hitId, double rho=0., unsigned int planeId=0)
TVector3 getNormal() const
virtual GFAbsTrackRep * clone() const =0
PndTrackCand * GenfitTrackCand2PndTrackCand(const GFTrackCand *cand)