mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
post processing debugging at the beamline
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@537 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -4334,6 +4334,8 @@ int slsDetector::setFlatFieldCorrection(double *corr, double *ecorr) {
|
||||
fferrors[ichan]=ecorr[ichan];
|
||||
else
|
||||
fferrors[ichan]=1;
|
||||
|
||||
cout << ichan << " " << ffcoefficients[ichan] << endl;
|
||||
}
|
||||
thisDetector->correctionMask|=(1<<FLAT_FIELD_CORRECTION);
|
||||
} else
|
||||
@ -4362,9 +4364,11 @@ int slsDetector::getFlatFieldCorrection(double *corr, double *ecorr) {
|
||||
#endif
|
||||
if (corr) {
|
||||
for (int ichan=0; ichan<thisDetector->nMod[X]*thisDetector->nMod[Y]*thisDetector->nChans*thisDetector->nChips; ichan++) {
|
||||
corr[ichan]=(ffcoefficients[ichan]*ffcoefficients[ichan])/(fferrors[ichan]*fferrors[ichan]);
|
||||
// corr[ichan]=(ffcoefficients[ichan]*ffcoefficients[ichan])/(fferrors[ichan]*fferrors[ichan]);
|
||||
corr[ichan]=ffcoefficients[ichan];
|
||||
if (ecorr) {
|
||||
ecorr[ichan]=ffcoefficients[ichan]/fferrors[ichan];
|
||||
//ecorr[ichan]=ffcoefficients[ichan]/fferrors[ichan];
|
||||
ecorr[ichan]=fferrors[ichan];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user