/** * \file ExtTrack.cpp * \author Elena Vannuccini */ #include #include #include using namespace std; //...................................... // F77 routines //...................................... extern "C" { // void dotrack_(int*, double*, double*, double*, double*, int*); // void dotrack2_(int*, double*, double*, double*, double*,double*, double*, double*,int*); // void dotrack3_(int*, double*, double*, double*, double*,double*, double*, double*,double*,int*); // void mini2_(int*,int*,int*); // void guess_(); // void gufld_(float*, float*); // float risxeta2_(float *); // float risxeta3_(float *); // float risxeta4_(float *); // float risyeta2_(float *); } //-------------------------------------- // // //-------------------------------------- ExtTrack::ExtTrack(){ chi2 = 0; nstep = 0; for(int it1=0;it1<5;it1++){ al[it1] = 0; for(int it2=0;it2<5;it2++)coval[it1][it2] = 0; }; nplanes=0; xgood = 0; ygood = 0; xm = 0; ym = 0; zm = 0; resx = 0; resy = 0; xv = 0; yv = 0; zv = 0; axv = 0; ayv = 0; dedx_x = 0; dedx_y = 0; TrkParams::SetMiniDefault(); }; //-------------------------------------- // // //-------------------------------------- ExtTrack::ExtTrack(Int_t dim){ chi2 = 0; nstep = 0; for(int it1=0;it1<5;it1++){ al[it1] = 0; for(int it2=0;it2<5;it2++)coval[it1][it2] = 0; }; SetDimension(dim); TrkParams::SetMiniDefault(); }; //-------------------------------------- // // //-------------------------------------- ExtTrack::ExtTrack(const ExtTrack& t){ chi2 = t.chi2; nstep = t.nstep; for(int it1=0;it1<5;it1++){ al[it1] = t.al[it1]; for(int it2=0;it2<5;it2++)coval[it1][it2] = t.coval[it1][it2]; }; SetDimension(t.nplanes); for(int ip=0;ipal[i]; for(int j=0; j<5; j++) coval[i][j]=track->cov[i][j]; } chi2 = track->chi2; nstep = track->nstep; for(int i=0; i<6; i++){ xv[i] = track->xv[i]; yv[i] = track->yv[i]; zv[i] = track->zv[i]; xm[i] = track->xm[i]; ym[i] = track->ym[i]; zm[i] = track->zm[i]; axv[i] = track->axv[i]; ayv[i] = track->ayv[i]; } } ClassImp(ExtTrack);