CMS 3D CMS Logo

Functions
DDSplit.cc File Reference
#include "DetectorDescription/Core/interface/DDSplit.h"

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

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