mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-02 04:14:56 +01:00
sending position id and num detectors in x and y dir
This commit is contained in:
@@ -776,7 +776,21 @@ int multiSlsDetector::addSlsDetector(detectorType t, int pos) {
|
||||
|
||||
|
||||
|
||||
void multiSlsDetector::getNumberOfDetectors(int& nx, int& ny) {
|
||||
nx = 0; ny = 0;
|
||||
|
||||
int offsetx = -1, offsety = -1;
|
||||
for (int i = 0; i < thisMultiDetector->numberOfDetectors; ++i) {
|
||||
if (thisMultiDetector->offsetX[i] > offsetx) {
|
||||
nx++;
|
||||
offsetx = thisMultiDetector->offsetX[i];
|
||||
}
|
||||
if (thisMultiDetector->offsetY[i] > offsety) {
|
||||
ny++;
|
||||
offsety = thisMultiDetector->offsetY[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user