some bugs in the analysis solved

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@710 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi
2013-12-17 10:28:36 +00:00
parent 356801a3dd
commit 9517d4f0f2
3 changed files with 23 additions and 10 deletions

View File

@ -12,7 +12,7 @@ postProcessingFuncs::postProcessingFuncs(int *nModules,int *chPerMod,int modMask
int postProcessingFuncs::initDataset() {
// cout << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA init dataset " << endl;
cout << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA init dataset " << endl;
if (nBins) {
mp=new double[nBins];
@ -34,7 +34,7 @@ int postProcessingFuncs::initDataset() {
int postProcessingFuncs::finalizeDataset(double *ang, double *val, double *err, int *np) {
// cout << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA finalize dataset " << endl;
cout << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA finalize dataset " << endl;
if (nBins)
*np=finalizeMerging(mp,mv,me,mm,nBins);
@ -62,15 +62,27 @@ int postProcessingFuncs::finalizeDataset(double *ang, double *val, double *err,
}
if (mp)
// cout << "delete mp " <<endl;
if (mp) {
delete [] mp;
if (mv)
mp=NULL;
}
// cout << "delete mv " <<endl;
if (mv) {
delete [] mv;
if (me)
mv=NULL;
}
// cout << "delete me " <<endl;
if (me) {
delete [] me;
if (mm)
me=NULL;
}
// cout << "delete mm " <<endl;
if (mm) {
delete [] mm;
mm=NULL;
}
return 0;
@ -536,6 +548,7 @@ int postProcessingFuncs::calculateFlatField(int* nModules, int *chPerMod, int *m
cout << "done " << endl;
delete [] xmed;
xmed=NULL;
return 0;