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