--- DarthVader/TrackerLevel2/src/ExtTrack.cpp 2014/06/04 07:57:03 1.2 +++ DarthVader/TrackerLevel2/src/ExtTrack.cpp 2014/08/07 16:04:14 1.5 @@ -190,6 +190,8 @@ Clear();//deallocate vectors cout << "SetDimension("<=0 && ip<6)return fabs(dedx_x[ip]); + else if(iv==1 && ip>=0 && ip<6)return fabs(dedx_y[ip]); + else { + cout << "TrkTrack::GetDEDX(int ip, int iv) -- wrong input parameters "<0)def=al[4]; + return def; +}; + + +// +// all that follows: EM porting from TrkLevel2 +// +Bool_t ExtTrack::IsInsideAcceptance(float toll){ + int ngf = TrkParams::nGF; + for(int i=0; i= TrkParams::xGF_max[i] - toll || + yGF[i] <= TrkParams::yGF_min[i] + toll || + yGF[i] >= TrkParams::yGF_max[i] - toll || + false){ + + return false; + } + } + return true; +} + +/** + * Returns the reduced chi-square of track x-projection + */ +Float_t ExtTrack::GetChi2X(){ + float chiq=0; + for(int ip=0; ip3)chiq=chiq/(GetNX()-3); + else chiq=0; + if(chiq==0)cout << " Float_t ExtTrack::GetChi2X() -- WARNING -- value not defined "<2)chiq=chiq/(GetNY()-2); + else chiq=0; + if(chiq==0)cout << " Float_t ExtTrack::GetChi2Y() -- WARNING -- value not defined "<