Fixed mistake in addToPedestal with ghost summation

This commit is contained in:
bergamaschi 2019-08-14 16:56:43 +02:00
parent e3dedcd450
commit e225275520
3 changed files with 2 additions and 3 deletions

View File

@ -823,7 +823,6 @@ template <class dataType> class analogDetector {
else
val=((double*)data)[iy*nx+ix];
// cout << val << endl;
val+=getGhost(ix,iy);
/* if (ix==10 && iy==10) */
/* cout << ix << " " << iy << " " << val ; */
/* if (ix==100 && iy==100) */

View File

@ -12,7 +12,7 @@ class moench03GhostSummation : public ghostSummation<uint16_t> {
/** constructor
\param xt crosstalk
*/
moench03GhostSummation(slsDetectorData<uint16_t> *d, double xt) : ghostSummation<uint16_t>(d, xt) {}
moench03GhostSummation(slsDetectorData<uint16_t> *d, double xt=0.0004) : ghostSummation<uint16_t>(d, xt) {}
virtual void calcGhost(char *data){
for (int iy=0; iy<200; iy++){

View File

@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
decoder->getDetectorSize(nx,ny);
int ncol_cm=20;
double xt_ghost=0.00045;
double xt_ghost=0.0004;
moench03CommonMode *cm=NULL;
moench03GhostSummation *gs;
double *gainmap=NULL;