mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +02:00
sharedmem: done with multi .h, sls and command line left
This commit is contained in:
@ -4220,6 +4220,24 @@ int multiSlsDetector::getFlatFieldCorrection(double* corr, double* ecorr)
|
|||||||
return ff;
|
return ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int multiSlsDetector::flatFieldCorrect(double* datain, double* errin, double* dataout, double* errout)
|
||||||
|
{
|
||||||
|
int ichdet = 0;
|
||||||
|
double* perr = errin; //*pdata,
|
||||||
|
for (int idet = 0; idet < detectors.size(); ++idet) {
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << " detector " << idet << " offset " << ichdet << endl;
|
||||||
|
#endif
|
||||||
|
if (errin)
|
||||||
|
perr += ichdet;
|
||||||
|
detectors[idet]->flatFieldCorrect(datain + ichdet, perr,
|
||||||
|
dataout + ichdet, errout + ichdet);
|
||||||
|
if (detectors[idet]->getErrorMask())
|
||||||
|
setErrorMask(getErrorMask() | (1 << idet));
|
||||||
|
ichdet += detectors[idet]->getTotalNumberOfChannels();
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int multiSlsDetector::setBadChannelCorrection(string fname)
|
int multiSlsDetector::setBadChannelCorrection(string fname)
|
||||||
{
|
{
|
||||||
@ -4451,25 +4469,6 @@ angleConversionConstant* multiSlsDetector::getAngularConversionPointer(int imod)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int multiSlsDetector::flatFieldCorrect(double* datain, double* errin, double* dataout, double* errout)
|
|
||||||
{
|
|
||||||
int ichdet = 0;
|
|
||||||
double* perr = errin; //*pdata,
|
|
||||||
for (int idet = 0; idet < detectors.size(); ++idet) {
|
|
||||||
#ifdef VERBOSE
|
|
||||||
cout << " detector " << idet << " offset " << ichdet << endl;
|
|
||||||
#endif
|
|
||||||
if (errin)
|
|
||||||
perr += ichdet;
|
|
||||||
detectors[idet]->flatFieldCorrect(datain + ichdet, perr,
|
|
||||||
dataout + ichdet, errout + ichdet);
|
|
||||||
if (detectors[idet]->getErrorMask())
|
|
||||||
setErrorMask(getErrorMask() | (1 << idet));
|
|
||||||
ichdet += detectors[idet]->getTotalNumberOfChannels();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int multiSlsDetector::printReceiverConfiguration()
|
int multiSlsDetector::printReceiverConfiguration()
|
||||||
{
|
{
|
||||||
int ret, ret1 = -100;
|
int ret, ret1 = -100;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user