CMS 3D CMS Logo

DDSplit.cc File Reference

#include "DetectorDescription/Core/interface/DDSplit.h"

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 = ':'


Function Documentation

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 name.

Referenced by DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideSector(), DDHCalBarrelAlgo::constructInsideSector(), DDEcalEndcapAlgo::ddname(), DDEcalBarrelAlgo::ddname(), DDTBH4Algo::ddname(), DDName::DDName(), DDTokenize(), DDTECModuleAlgo::doPos(), DDTrackerZPosAlgo::execute(), DDPixFwdBlades::execute(), DDTECAxialCableAlgo::execute(), DDHCalTBCableAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTOBRadCableAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTECOptoHybAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTrackerLinearXY::execute(), DDPixBarLayerAlgo::execute(), DDTIDModuleAlgo::execute(), DDTOBRodAlgo::execute(), DDTECModuleAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDHCalLinearXY::execute(), DDTrackerLinear::execute(), DDTIBLayerAlgo::execute(), DDTIDModulePosAlgo::execute(), DDTIDRingAlgo::execute(), DDTOBAxCableAlgo::execute(), DDHCalForwardAlgo::execute(), DDTrackerAngular::execute(), DDTrackerPhiAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDTECCoolAlgo::execute(), DDTECPhiAlgo::execute(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), HFShower::HFShower(), HcalTB02SD::initMap(), ECalSD::initMap(), DreamSD::initMap(), and PrintGeomInfoAction::update().

00005 {
00006   std::string name,ns;
00007   std::string::size_type pos = n.find(':');
00008   if (pos==std::string::npos) {
00009     ns = "";
00010     name = n;
00011   }
00012   else {
00013     ns = std::string(n,0,pos);
00014     name = std::string(n,pos+1,n.size()-1);
00015   }    
00016   return std::make_pair(name,ns);
00017 }


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