CMS 3D CMS Logo

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 3 of file DDSplit.cc.

References gen::n, dataset::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(), DDAHcalModuleAlgo::constructLayers(), DDHGCalModule::constructLayers(), DDHGCalModuleAlgo::constructLayers(), DDHGCalTBModule::constructLayers(), DDHGCalEEAlgo::constructLayers(), DDHGCalHEAlgo::constructLayers(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapModuleAlgo::constructScintLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDName::DDName(), DDTBH4Algo::ddname(), DDEcalAPDAlgo::ddname(), DDEcalBarrelAlgo::ddname(), DDEcalBarrelNewAlgo::ddname(), DDEcalEndcapAlgo::ddname(), DDTECModuleAlgo::doPos(), DDHGCalCell::execute(), DDTIDModulePosAlgo::execute(), DDHGCalWafer8::execute(), DDHCalForwardAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDTECOptoHybAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTOBRadCableAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDTOBRodAlgo::execute(), DDPixBarLayerAlgo::execute(), DDPixPhase1FwdDiskAlgo::execute(), DDTrackerLinearXY::execute(), DDTrackerLinear::execute(), DDBHMAngular::execute(), DDTECCoolAlgo::execute(), DDTIBLayerAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDTrackerZPosAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDHCalTBZposAlgo::execute(), DDTIDModuleAlgo::execute(), DDHCalTBCableAlgo::execute(), DDTOBAxCableAlgo::execute(), DDHCalFibreBundle::execute(), DDTIDRingAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTECAxialCableAlgo::execute(), DDTECPhiAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerAngular::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTrackerAngularV1::execute(), DDHCalLinearXY::execute(), DDTECModuleAlgo::execute(), DDTrackerRingAlgo::execute(), DDPixFwdBlades::execute(), DDLinear::initialize(), DDAngular::initialize(), DDHGCalHEAlgo::positionMix(), DDAHcalModuleAlgo::positionSensitive(), DDHGCalTBModule::positionSensitive(), DDHGCalModuleAlgo::positionSensitive(), DDHGCalModule::positionSensitive(), DDHGCalEEAlgo::positionSensitive(), and DDHGCalHEAlgo::positionSensitive().

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