CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 3 of file DDSplit.cc.

References dqmiodumpmetadata::n, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithm(), DDHGCalTBModuleX::constructBlocks(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), HcalBarrelAlgo::constructInsideDetectors(), DDHCalBarrelAlgo::constructInsideLayers(), DDHCalEndcapModuleAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule(), HCalEndcapAlgo::constructInsideModule(), DDHCalEndcapModuleAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideModule0(), HCalEndcapAlgo::constructInsideModule0(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), DDAHcalModuleAlgo::constructLayers(), DDHGCalTBModule::constructLayers(), DDHGCalTBModuleX::constructLayers(), DDHGCalModule::constructLayers(), DDHGCalModuleAlgo::constructLayers(), DDHGCalEEAlgo::constructLayers(), DDHGCalHEAlgo::constructLayers(), DDHGCalHEFileAlgo::constructLayers(), DDHGCalEEFileAlgo::constructLayers(), DDHGCalMixLayer::constructLayers(), DDHGCalSiliconModule::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(), DDTOBRodAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDTrackerZPosAlgo::execute(), DDTIDModulePosAlgo::execute(), DDHGCalWaferF::execute(), DDTrackerAngular::execute(), DDTrackerLinear::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerPhiAlgo::execute(), DDHGCalWaferP::execute(), DDTIDRingAlgo::execute(), DDHCalLinearXY::execute(), DDPixFwdDiskAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTIDModuleAlgo::execute(), DDTOBRadCableAlgo::execute(), DDTOBAxCableAlgo::execute(), DDTECOptoHybAlgo::execute(), DDTECPhiAlgo::execute(), DDPixPhase1FwdDiskAlgo::execute(), DDHCalTBZposAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDHCalForwardAlgo::execute(), DDBHMAngular::execute(), DDTIBLayerAlgo::execute(), DDPixBarLayerAlgo::execute(), DDTECCoolAlgo::execute(), DDHCalTBCableAlgo::execute(), DDHCalFibreBundle::execute(), DDTECModuleAlgo::execute(), DDTrackerRingAlgo::execute(), DDPixFwdBlades::execute(), DDLinear::initialize(), DDAngular::initialize(), DDMTDLinear::initialize(), DDHGCalHEFileAlgo::positionMix(), DDHGCalHEAlgo::positionMix(), DDHGCalMixLayer::positionMix(), DDAHcalModuleAlgo::positionSensitive(), DDHGCalTBModule::positionSensitive(), DDHGCalTBModuleX::positionSensitive(), DDHGCalEEAlgo::positionSensitive(), DDHGCalModule::positionSensitive(), DDHGCalModuleAlgo::positionSensitive(), DDHGCalEEFileAlgo::positionSensitive(), DDHGCalSiliconModule::positionSensitive(), DDHGCalHEAlgo::positionSensitive(), and DDHGCalHEFileAlgo::positionSensitive().

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