bug solved in angular data merging

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@716 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi
2014-01-17 08:25:42 +00:00
parent 15e1ac8750
commit 28ad4a1f8c
4 changed files with 16 additions and 12 deletions

View File

@ -330,7 +330,6 @@ int angularConversionStatic::finalizeMerging(double *mp, double *mv, double *me,
int np=0;
for (int ibin=0; ibin<nb; ibin++) {
if (mm[ibin]>0) {
#ifdef VERBOSE
cout << "finalize " << ibin << " "<< mm[ibin] << " " << mp[ibin]<< " " << mv[ibin] << " " << me[ibin] << endl;
#endif
@ -452,9 +451,10 @@ int angularConversionStatic::addPointToMerging(double p1, double v1, double e1,
// #ifdef VERBOSE
// cout << "add " << ibin << " "<< mm[ibin] << " " << mp[ibin]<< mv[ibin] << me[ibin] << endl;
// #endif
} else
} else {
cout << "Bin out of range! " << ibin << endl;
return slsDetectorDefs::FAIL;
}
return slsDetectorDefs::OK;