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(), DDPixBarStackLinear::execute(), DDPixBarStackLinearGap::execute(), DDTECOptoHybAlgo::execute(), DDBHMAngular::execute(), DDTIBLayerAlgo::execute(), DDTIDModuleAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDPixBarStackLayerAlgo::execute(), DDTOBAxCableAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDTECCoolAlgo::execute(), DDHCalForwardAlgo::execute(), DDPixBarStackTrigLayerAlgo::execute(), DDTrackerLinear::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDTIBLayerAlgo_MTCC::execute(), DDHCalTBZposAlgo::execute(), DDTrackerZPosAlgo::execute(), DDHCalTBCableAlgo::execute(), DDTrackerLinearXY::execute(), DDPixBarLayerUpgradeAlgoCoverage::execute(), DDPixBarTPGStackLayerAlgo::execute(), DDPixBarLayerAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDHCalFibreBundle::execute(), DDTECModuleAlgo::execute(), DDTrackerAngular::execute(), DDHCalLinearXY::execute(), DDTIDRingAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTECAxialCableAlgo::execute(), DDTECPhiAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerAngularV1::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