16 #include"RKTrackRep.h"
21 unsigned int nhits = cand->
getNHits();
24 for(
unsigned int i=0;i<nhits;++i){
25 cand->
getHit(i,detId,hitId,rho);
26 retVal->
AddHit(detId,hitId,rho);
42 unsigned int nhits = cand->
GetNHits();
43 for(
unsigned int i=0;i<nhits;++i){
59 double mom = fabs(cand->getQoverPseed()) ? 1./fabs(cand->getQoverPseed()) : 1E6;
60 TVector3 pseed = mom * cand->getDirSeed();
74 TMatrixT<double> lastCov = clone->
getLastCov();
79 if (dynamic_cast<GeaneTrackRep*>(clone)!=NULL)
81 else if (dynamic_cast<RKTrackRep*>(clone)!=NULL)
82 gtr = dynamic_cast<RKTrackRep*>(clone);
84 std::cerr <<
" GenfitGFAbsTrackRep2PndTrack() can currently only handle GeaneTrackRep and RKTrackRep" << std::endl;
91 for(
int i=0; i<5;++i){
93 firstCova[count++]=firstCov[i][j];
98 for(
int i=0; i<5;++i){
100 lastCova[count++]=lastCov[i][j];
105 double first_pro(0), last_pro(0), first_spu, last_spu;
114 std::cerr<<
"could not convert GenfitTrack to PndTrack"<<std::endl;
118 first_spu = (first_pro>=0) ? 1 : -1;
119 last_spu = (last_pro>=0) ? 1 : -1;
121 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);
122 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);
130 if (tr->
getNDF()==0 || exc) {