CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDSplit.h File Reference
#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 = ':' 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 AlCaHLTBitMon_QueryRunRegistry::string.

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(), DDTECModuleAlgo::doPos(), DDTIDModulePosAlgo::execute(), DDTOBRadCableAlgo::execute(), DDTOBRodAlgo::execute(), DDTrackerLinearXY::execute(), DDPixBarStackLayerAlgo::execute(), DDTIDModuleAlgo::execute(), DDTECOptoHybAlgo::execute(), DDPixBarStackTrigLayerAlgo::execute(), DDPixBarStackLinear::execute(), DDTIBLayerAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDTOBAxCableAlgo::execute(), DDHCalForwardAlgo::execute(), DDPixBarTPGStackLayerAlgo::execute(), DDHCalTBCableAlgo::execute(), DDPixBarLayerAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDTrackerLinear::execute(), DDTrackerZPosAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDPixBarLayerUpgradeAlgoCoverage::execute(), DDPixFwdDiskAlgo::execute(), DDPixBarStackLinearGap::execute(), DDTECCoolAlgo::execute(), DDTECPhiAlgo::execute(), DDTECModuleAlgo::execute(), DDTrackerAngular::execute(), DDTECAxialCableAlgo::execute(), DDHCalFibreBundle::execute(), DDTECPhiAltAlgo::execute(), DDHCalLinearXY::execute(), DDTrackerAngularV1::execute(), DDTIDRingAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerPhiAlgo::execute(), DDPixFwdBlades::execute(), DDLinear::initialize(), DDAngular::initialize(), and PrintGeomMatInfo::update().

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