mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
templated functions in multi
This commit is contained in:
@ -3302,9 +3302,10 @@ int multiSlsDetector::exitServer()
|
||||
}
|
||||
|
||||
/* utility function to check a range of return values*/
|
||||
int multiSlsDetector::minusOneIfDifferent(const std::vector<int>& return_values)
|
||||
template<typename T>
|
||||
T multiSlsDetector::minusOneIfDifferent(const std::vector<T>& return_values)
|
||||
{
|
||||
int ret = -100;
|
||||
T ret = -100;
|
||||
for (int idet = 0; idet < thisMultiDetector->numberOfDetectors; ++idet) {
|
||||
if (detectors[idet]) {
|
||||
if (ret == -100)
|
||||
|
Reference in New Issue
Block a user