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 gen::n, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapModuleAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapModuleAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideModule0(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapModuleAlgo::constructScintLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDTBH4Algo::ddname(), DDEcalAPDAlgo::ddname(), DDName::DDName(), DDEcalBarrelAlgo::ddname(), DDEcalBarrelNewAlgo::ddname(), DDEcalEndcapAlgo::ddname(), DDTECModuleAlgo::doPos(), DDTIDModulePosAlgo::execute(), DDTrackerZPosAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDPixBarLayerUpgradeAlgoCoverage::execute(), DDPixFwdDiskAlgo::execute(), DDTECOptoHybAlgo::execute(), DDPixBarStackLayerAlgo::execute(), DDTECCoolAlgo::execute(), DDBHMAngular::execute(), DDPixBarStackLinearGap::execute(), DDTrackerXYZPosAlgo::execute(), DDTIBLayerAlgo::execute(), DDTIDModuleAlgo::execute(), DDPixBarLayerAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDTIBLayerAlgo_MTCC::execute(), DDPixBarStackLinear::execute(), DDHCalTBCableAlgo::execute(), DDTrackerLinearXY::execute(), DDTOBAxCableAlgo::execute(), DDHCalForwardAlgo::execute(), DDTOBRadCableAlgo::execute(), DDTOBRodAlgo::execute(), DDTrackerLinear::execute(), DDPixBarStackTrigLayerAlgo::execute(), DDHCalTBZposAlgo::execute(), DDPixBarTPGStackLayerAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDHCalFibreBundle::execute(), DDTrackerAngular::execute(), DDHCalLinearXY::execute(), DDTrackerAngularV1::execute(), DDTECPhiAltAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTECAxialCableAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTECPhiAlgo::execute(), DDTECModuleAlgo::execute(), DDTIDRingAlgo::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