#include "DetectorDescription/Base/interface/DDutils.h"
#include <sstream>
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) |
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 | ) |
Converts only the integer part of a double to a string.
Definition at line 12 of file DDutils.cc.
References int_to_string().
Referenced by DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalAngular::execute(), DDTECAxialCableAlgo::execute(), DDHCalTBCableAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTECOptoHybAlgo::execute(), DDTECPhiAltAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDPixBarLayerAlgo::execute(), DDEcalBarrelAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTIBLayerAlgo::execute(), DDTIDModulePosAlgo::execute(), DDTIDRingAlgo::execute(), DDHCalFibreBundle::execute(), DDHCalForwardAlgo::execute(), DDTrackerAngular::execute(), DDTrackerPhiAlgo::execute(), DDAngular::execute(), DDTIBRadCableAlgo_MTCC::execute(), and DDTECPhiAlgo::execute().
{ return int_to_string( int (in) ); }
std::string int_to_string | ( | const int & | in | ) |
Definition at line 16 of file DDutils.cc.
References recoMuon::in.
Referenced by DDEcalEndcapAlgo::alvName(), dbl_to_string(), DDEcalEndcapAlgo::EECreateSC(), DDEcalEndcapAlgo::EEPositionCRs(), DDEcalEndcapAlgo::envName(), DDTBH4Algo::execute(), DDPixFwdBlades::execute(), DDEcalBarrelNewAlgo::execute(), DDEcalBarrelAlgo::execute(), DDEcalEndcapAlgo::execute(), DDEcalEndcapAlgo::intName(), DDEcalBarrelNewAlgo::web(), and DDEcalBarrelAlgo::web().
{ std::ostringstream ostr; ostr << in; return ostr.str(); }