cleaning up sgetDetectorsType

This commit is contained in:
Erik Frojdh 2018-05-24 16:32:20 +02:00
parent 24df69d57f
commit e65b416215

View File

@ -622,7 +622,6 @@ string multiSlsDetector::ssetDetectorsType(string name, int pos) {
}
string multiSlsDetector::getHostname(int pos) {
string hostnames;
if (pos>=0){
@ -654,35 +653,19 @@ slsDetectorDefs::detectorType multiSlsDetector::getDetectorsType(int pos) {
string multiSlsDetector::sgetDetectorsType(int pos) {
string s=string("");
#ifdef VERBOSE
cout << "returning type" << pos << endl;
#endif
string s;
if (pos>=0) {
if (detectors[pos])
return detectors[pos]->sgetDetectorsType();
} else {
for (int ip=0; ip<thisMultiDetector->numberOfDetectors; ++ip) {
#ifdef VERBOSE
cout << "detector " << ip << endl;
#endif
if (detectors[ip]) {
s+=detectors[ip]->sgetDetectorsType();
s+=string("+");
}
#ifdef VERBOSE
cout << "type " << s << endl;
#endif
if (detectors[ip])
s+=detectors[ip]->sgetDetectorsType() + "+";
}
}
return s;
}
int multiSlsDetector::getDetectorId(int pos) {
#ifdef VERBOSE