mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
sharedmem: done with multi .h, sls and command line left
This commit is contained in:
parent
2853f97fe7
commit
55517e6d4c
@ -4220,6 +4220,24 @@ int multiSlsDetector::getFlatFieldCorrection(double* corr, double* ecorr)
|
||||
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)
|
||||
{
|
||||
@ -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 ret, ret1 = -100;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user