mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 06:47:14 +02:00
modified getDetectorType function name in slsDetector to be able to make a getDetectorType(pos) function for multiSlsDetector
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@176 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -400,6 +400,23 @@ string multiSlsDetector::getHostname(int pos) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
string multiSlsDetector::getDetectorsType(int pos) {
|
||||
|
||||
string s=string("");
|
||||
#ifdef VERBOSE
|
||||
cout << "returning type " << pos << endl;
|
||||
#endif
|
||||
if (pos>=0) {
|
||||
if (detectors[pos])
|
||||
return detectors[pos]->getDetectorsType();
|
||||
} else
|
||||
return detectors[0]->getDetectorsType();
|
||||
return s;
|
||||
|
||||
}
|
||||
|
||||
|
||||
int multiSlsDetector::getDetectorId(int pos) {
|
||||
|
||||
#ifdef VERBOSE
|
||||
@ -3500,4 +3517,3 @@ int multiSlsDetector::readDataFile(string fname, int *data) {
|
||||
return iline;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user