CMS 3D CMS Logo

DDutils.cc

Go to the documentation of this file.
00001 #include "DetectorDescription/Base/interface/DDutils.h"
00002 #include <vector>
00003 #include <string>
00004 #include <sstream>
00005 
00006 std::vector<int> dbl_to_int ( const std::vector<double> & vecdbl) {
00007   std::vector<int> tInt;
00008   for (std::vector<double>::const_iterator vd_it = vecdbl.begin(); vd_it != vecdbl.end(); ++vd_it) {
00009     tInt.push_back(int(*vd_it));
00010   }
00011   return tInt;
00012 }
00013 
00014 std::string dbl_to_string (const double& in) {
00015   return int_to_string( int (in) );
00016 }
00017 
00018 std::string int_to_string(const int& in) {
00019 
00020   std::ostringstream ostr;
00021   ostr << in;
00022   return ostr.str();
00023 
00024 }

Generated on Tue Jun 9 17:31:52 2009 for CMSSW by  doxygen 1.5.4