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 DDHGCalTBModuleX::constructBlocks(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapModuleAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapModuleAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideModule0(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), DDAHcalModuleAlgo::constructLayers(), DDHGCalModuleAlgo::constructLayers(), DDHGCalModule::constructLayers(), DDHGCalTBModule::constructLayers(), DDHGCalTBModuleX::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(), DDHGCalWafer8::execute(), DDTIDModulePosAlgo::execute(), DDTrackerZPosAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDBHMAngular::execute(), DDPixFwdDiskAlgo::execute(), DDTOBRadCableAlgo::execute(), DDTOBRodAlgo::execute(), DDPixBarLayerAlgo::execute(), DDTECOptoHybAlgo::execute(), DDTrackerLinear::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDPixPhase1FwdDiskAlgo::execute(), DDHCalForwardAlgo::execute(), DDTECCoolAlgo::execute(), DDHCalTBCableAlgo::execute(), DDHCalTBZposAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTrackerXYZPosAlgo::execute(), DDTIBLayerAlgo::execute(), DDTIDModuleAlgo::execute(), DDTrackerLinearXY::execute(), DDTOBAxCableAlgo::execute(), DDHCalFibreBundle::execute(), DDTIDAxialCableAlgo::execute(), DDTECAxialCableAlgo::execute(), DDTrackerAngularV1::execute(), DDTECModuleAlgo::execute(), DDTECPhiAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTrackerAngular::execute(), DDHCalLinearXY::execute(), DDTIDRingAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTrackerRingAlgo::execute(), DDPixFwdBlades::execute(), DDLinear::initialize(), DDAngular::initialize(), DDHGCalHEAlgo::positionMix(), DDAHcalModuleAlgo::positionSensitive(), DDHGCalModuleAlgo::positionSensitive(), DDHGCalModule::positionSensitive(), DDHGCalTBModule::positionSensitive(), DDHGCalTBModuleX::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