CMS 3D CMS Logo

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