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

◆ DDSplit()

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, Skims_PA_cff::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(), DDHGCalMixRotatedCassette::constructLayers(), DDHGCalMixRotatedFineCassette::constructLayers(), DDHGCalMixRotatedLayer::constructLayers(), DDHGCalSiliconRotatedCassette::constructLayers(), DDHGCalSiliconRotatedModule::constructLayers(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalEndcapModuleAlgo::constructScintLayer(), DDHCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), DDName::DDName(), DDTBH4Algo::ddname(), DDEcalAPDAlgo::ddname(), DDEcalBarrelNewAlgo::ddname(), DDEcalBarrelAlgo::ddname(), DDEcalEndcapAlgo::ddname(), DDTECModuleAlgo::doPos(), DDHGCalCell::execute(), DDHGCalWafer8::execute(), DDTrackerZPosAlgo::execute(), DDTOBRodAlgo::execute(), DDTrackerXYZPosAlgo::execute(), DDTIDModulePosAlgo::execute(), DDHGCalWaferP::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerLinear::execute(), DDTrackerPhiAlgo::execute(), DDTrackerAngular::execute(), DDHGCalPassivePartial::execute(), DDHGCalWaferPartialRotated::execute(), DDTIDRingAlgo::execute(), DDHCalLinearXY::execute(), DDTIDModuleAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDTOBRadCableAlgo::execute(), DDRPDPosition::execute(), DDTECOptoHybAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTECPhiAlgo::execute(), DDTOBAxCableAlgo::execute(), DDHGCalPassiveFull::execute(), DDPixPhase1FwdDiskAlgo::execute(), DDHCalTBZposAlgo::execute(), DDHGCalWaferF::execute(), DDHGCalWaferFullRotated::execute(), DDTIBLayerAlgo::execute(), DDPixBarLayerAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDHCalForwardAlgo::execute(), DDBHMAngular::execute(), DDHCalTBCableAlgo::execute(), DDTECCoolAlgo::execute(), DDHGCalPassive::execute(), DDHCalFibreBundle::execute(), DDTECModuleAlgo::execute(), DDPixFwdBladesNew::execute(), DDTrackerRingAlgo::execute(), DDTrackerIrregularRingAlgo::execute(), DDPixFwdBlades::execute(), DDLinear::initialize(), DDAngular::initialize(), DDMTDLinear::initialize(), DDHGCalHEAlgo::positionMix(), DDHGCalHEFileAlgo::positionMix(), DDHGCalMixLayer::positionMix(), DDHGCalMixRotatedFineCassette::positionMix(), DDHGCalMixRotatedCassette::positionMix(), DDHGCalMixRotatedLayer::positionMix(), DDHGCalSiliconRotatedCassette::positionPassive(), DDHGCalSiliconRotatedCassette::positionPassive2(), DDAHcalModuleAlgo::positionSensitive(), DDHGCalTBModule::positionSensitive(), DDHGCalTBModuleX::positionSensitive(), DDHGCalEEAlgo::positionSensitive(), DDHGCalModule::positionSensitive(), DDHGCalModuleAlgo::positionSensitive(), DDHGCalEEFileAlgo::positionSensitive(), DDHGCalSiliconModule::positionSensitive(), DDHGCalSiliconRotatedCassette::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), DDHGCalHEFileAlgo::positionSensitive(), and DDHGCalHEAlgo::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