1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef DETECTOR_DESCRIPTION_BASE_DD_UTILS_H
#define DETECTOR_DESCRIPTION_BASE_DD_UTILS_H
#include <vector>
/// Converts a std::vector of doubles to a std::vector of int
inline std::vector<int> dbl_to_int(const std::vector<double>& vecdbl) {
std::vector<int> tInt(vecdbl.begin(), vecdbl.end());
return tInt;
}
#endif
|