mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 01:00:02 +02:00
Fixed mistake in addToPedestal with ghost summation
This commit is contained in:
parent
e3dedcd450
commit
e225275520
@ -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) */
|
||||
|
@ -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++){
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user