#include <string>
#include <utility>
Go to the source code of this file.
Functions | |
std::pair< std::string, std::string > | DDSplit (const std::string &n) |
split into (name,namespace), separator = ':' |
std::pair<std::string,std::string> DDSplit | ( | const std::string & | n | ) |
split into (name,namespace), separator = ':'
Definition at line 4 of file DDSplit.cc.
References n, mergeVDriftHistosByStation::name, pos, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideSector(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDEcalEndcapAlgo::ddname(), DDEcalBarrelAlgo::ddname(), DDTBH4Algo::ddname(), DDEcalBarrelNewAlgo::ddname(), DDEcalAPDAlgo::ddname(), DDName::DDName(), DDTECModuleAlgo::doPos(), DDTrackerZPosAlgo::execute(), DDPixFwdBlades::execute(), DDTECAxialCableAlgo::execute(), DDHCalTBCableAlgo::execute(), DDPixBarStackLayerAlgo::execute(), DDTOBRadCableAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTECOptoHybAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTrackerLinearXY::execute(), DDPixBarLayerAlgo::execute(), DDPixBarStackLinearGap::execute(), DDTOBRodAlgo::execute(), DDTIDModuleAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTECModuleAlgo::execute(), DDTrackerLinear::execute(), DDHCalLinearXY::execute(), DDPixBarStackLinear::execute(), DDTIBLayerAlgo::execute(), DDPixBarTPGStackLayerAlgo::execute(), DDTOBAxCableAlgo::execute(), DDTIDRingAlgo::execute(), DDTIDModulePosAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTrackerAngular::execute(), DDHCalForwardAlgo::execute(), DDHCalFibreBundle::execute(), DDPixBarStackTrigLayerAlgo::execute(), DDPixBarLayerUpgradeAlgoCoverage::execute(), DDTrackerAngularV1::execute(), DDTECPhiAlgo::execute(), DDTECCoolAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDAngular::initialize(), DDLinear::initialize(), and PrintGeomMatInfo::update().
{ std::string name,ns; std::string::size_type pos = n.find(':'); if (pos==std::string::npos) { ns = ""; name = n; } else { ns = std::string(n,0,pos); name = std::string(n,pos+1,n.size()-1); } return std::make_pair(name,ns); }