test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDutils.h
Go to the documentation of this file.
1 #ifndef DDutils_hh
2 #define DDutils_hh 1
3 
4 #include <string>
5 #include <vector>
6 // #include <iostream>
7 
9 std::vector<int> dbl_to_int ( const std::vector<double> & vecdbl);
10 
12 std::string dbl_to_string (const double& in );
13 
14 //Converts int or double to std::string
15 std::string int_to_string (const int& in );
16 
17 #endif
std::string dbl_to_string(const double &in)
Converts only the integer part of a double to a string.
Definition: DDutils.cc:12
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.cc:4
std::string int_to_string(const int &in)
Definition: DDutils.cc:16