on the fly moench photon finder and cluster saving

This commit is contained in:
2017-12-14 16:58:22 +01:00
parent 5958cf9278
commit b50c1d966a
4 changed files with 213 additions and 12 deletions

View File

@ -285,8 +285,7 @@ public analogDetector<uint16_t> {
}
}
}
return nph;
cout << iframe << " " << nph << endl;
} else return getClusters(data);
}
return NULL;
@ -632,7 +631,8 @@ void writeClusters(FILE *f){for (int i=0; i<nphFrame; i++) (clusters+i)->write(f
iframe++;
// cout << "done" << endl;
};
int getPhFrame(){return nphFrame;};
int getPhTot(){return nphTot;};
protected:
int nDark; /**< number of frames to be used at the beginning of the dataset to calculate pedestal without applying photon discrimination */