#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) |
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(), DDTECAxialCableAlgo::execute(), DDHCalAngular::execute(), DDHCalTBCableAlgo::execute(), DDPixBarStackLayerAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTECOptoHybAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDEcalBarrelNewAlgo::execute(), DDPixBarLayerAlgo::execute(), DDEcalBarrelAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDGEMAngular::execute(), DDTIBLayerAlgo::execute(), DDPixBarTPGStackLayerAlgo::execute(), DDTIDRingAlgo::execute(), DDTIDModulePosAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTrackerAngular::execute(), DDHCalForwardAlgo::execute(), DDHCalFibreBundle::execute(), DDPixBarStackTrigLayerAlgo::execute(), DDMuonAngular::execute(), DDAngular::execute(), DDPixBarLayerUpgradeAlgoCoverage::execute(), DDTECPhiAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), and DDPixBarLayerUpgradeAlgo::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(); }