CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DetectorDescription/Base/interface/DDutils.h File Reference

#include <string>
#include <vector>

Go to the source code of this file.

Functions

std::vector< int > dbl_to_int (const std::vector< double > &vecdbl)
 Converts a std::vector of doubles to a std::vector of int.
std::string dbl_to_string (const double &in)
 Converts only the integer part of a double to a string.
std::string int_to_string (const int &in)

Function Documentation

std::vector<int> dbl_to_int ( const std::vector< double > &  vecdbl)

Converts a std::vector of doubles to a std::vector of int.

Definition at line 4 of file DDutils.cc.

Referenced by DDHCalFibreBundle::initialize(), DDHCalEndcapAlgo::initialize(), DDHCalBarrelAlgo::initialize(), and DDHCalForwardAlgo::initialize().

                                                              {
  std::vector<int> tInt;
  for (std::vector<double>::const_iterator vd_it = vecdbl.begin(); vd_it != vecdbl.end(); ++vd_it) {
    tInt.push_back(int(*vd_it));
  }
  return tInt;
}
std::string dbl_to_string ( const double &  in)
std::string int_to_string ( const int &  in)