406 |
for(int ip=0; ip<6; ip++)if(XGood(ip))chiq+= pow((xv[ip]-xm[ip])/resx[ip],2.); |
for(int ip=0; ip<6; ip++)if(XGood(ip))chiq+= pow((xv[ip]-xm[ip])/resx[ip],2.); |
407 |
if(GetNX()>3)chiq=chiq/(GetNX()-3); |
if(GetNX()>3)chiq=chiq/(GetNX()-3); |
408 |
else chiq=0; |
else chiq=0; |
409 |
if(chiq==0)cout << " Float_t TrkTrack::GetChi2X() -- WARNING -- value not defined "<<chiq<<endl; |
// if(chiq==0)cout << " Float_t TrkTrack::GetChi2X() -- WARNING -- value not defined "<<chiq<<endl; |
410 |
return chiq; |
return chiq; |
411 |
} |
} |
412 |
/** |
/** |
417 |
for(int ip=0; ip<6; ip++)if(YGood(ip))chiq+= pow((yv[ip]-ym[ip])/resy[ip],2.); |
for(int ip=0; ip<6; ip++)if(YGood(ip))chiq+= pow((yv[ip]-ym[ip])/resy[ip],2.); |
418 |
if(GetNY()>2)chiq=chiq/(GetNY()-2); |
if(GetNY()>2)chiq=chiq/(GetNY()-2); |
419 |
else chiq=0; |
else chiq=0; |
420 |
if(chiq==0)cout << " Float_t TrkTrack::GetChi2Y() -- WARNING -- value not defined "<<chiq<<endl; |
// if(chiq==0)cout << " Float_t TrkTrack::GetChi2Y() -- WARNING -- value not defined "<<chiq<<endl; |
421 |
return chiq; |
return chiq; |
422 |
} |
} |
423 |
/** |
/** |