--- DarthVader/TrackerLevel2/src/ExtTrack.cpp 2014/07/24 12:39:50 1.4 +++ DarthVader/TrackerLevel2/src/ExtTrack.cpp 2014/08/07 16:04:14 1.5 @@ -921,4 +921,68 @@ if(chi2>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 "<