CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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 = ':' More...
 

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 n, mergeVDriftHistosByStation::name, and pos.

Referenced by DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule0(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDTBH4Algo::ddname(), DDEcalAPDAlgo::ddname(), DDName::DDName(), DDEcalBarrelAlgo::ddname(), DDEcalBarrelNewAlgo::ddname(), DDEcalEndcapAlgo::ddname(), DDTokenize(), DDTECModuleAlgo::doPos(), DDTIDModulePosAlgo::execute(), DDTIDModuleAlgo::execute(), DDTECCoolAlgo::execute(), DDTrackerLinearXY::execute(), DDTECOptoHybAlgo::execute(), DDTIBLayerAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTrackerZPosAlgo::execute(), DDTOBAxCableAlgo::execute(), DDTOBRadCableAlgo::execute(), DDHCalForwardAlgo::execute(), DDTrackerLinear::execute(), DDHCalTBCableAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTOBRodAlgo::execute(), DDPixBarLayerAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDHCalLinearXY::execute(), DDHCalFibreBundle::execute(), DDTIDRingAlgo::execute(), DDTrackerAngular::execute(), DDTECPhiAlgo::execute(), DDTECModuleAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTECAxialCableAlgo::execute(), DDPixFwdBlades::execute(), DDLinear::initialize(), and DDAngular::initialize().

5 {
6  std::string name,ns;
7  std::string::size_type pos = n.find(':');
8  if (pos==std::string::npos) {
9  ns = "";
10  name = n;
11  }
12  else {
13  ns = std::string(n,0,pos);
14  name = std::string(n,pos+1,n.size()-1);
15  }
16  return std::make_pair(name,ns);
17 }
uint16_t size_type