mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
just skeleton of gappixels
This commit is contained in:
@ -4239,6 +4239,28 @@ int multiSlsDetector::setFlippedData(dimension d, int value){
|
||||
return ret;
|
||||
}
|
||||
|
||||
int multiSlsDetector::enableGapPixels(int val) {
|
||||
|
||||
if(getDetectorsType() != EIGER){
|
||||
std::cout << "Not implemented for this detector" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int ret=-100,ret1;
|
||||
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; ++idet)
|
||||
if (detectors[idet]){
|
||||
ret1=detectors[idet]->enableGapPixels(val);
|
||||
if(ret==-100)
|
||||
ret=ret1;
|
||||
else if (ret!=ret1)
|
||||
ret=-1;
|
||||
}
|
||||
|
||||
/** do something */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -253,6 +253,11 @@ class multiSlsDetector : public slsDetectorUtils {
|
||||
/** destructor */
|
||||
virtual ~multiSlsDetector();
|
||||
|
||||
/**
|
||||
* returns true. Used when reference is slsDetectorUtils and to determine if command can be implemented as slsDetector/multiSlsDetector object/
|
||||
*/
|
||||
bool isMultiSlsDetectorClass(){return 1;};
|
||||
|
||||
/**
|
||||
* Creates all the threads in the threadpool
|
||||
\returns OK or FAIL
|
||||
@ -1028,6 +1033,13 @@ class multiSlsDetector : public slsDetectorUtils {
|
||||
*/
|
||||
int setFlippedData(dimension d=X, int value=-1);
|
||||
|
||||
/**
|
||||
* Enable gap pixels, only for Eiger
|
||||
* @param val 1 sets, 0 unsets, -1 gets
|
||||
* @return gap pixel enable
|
||||
*/
|
||||
int enableGapPixels(int val=-1);
|
||||
|
||||
int getMaxNumberOfModules(dimension d=X);
|
||||
int setDynamicRange(int i=-1);
|
||||
|
||||
|
Reference in New Issue
Block a user