DDName is used to identify DDD entities uniquely. More...
#include <DDName.h>
Public Types | |
typedef DDCurrentNamespace | CNS |
typedef int | id_type |
typedef std::vector < Registry::const_iterator > | IdToName |
typedef std::map< std::pair < std::string, std::string > , id_type > | Registry |
Public Member Functions | |
DDName (const std::string &name, const std::string &ns) | |
Constructs a DDName with name name and assigns name to the namespace ns. More... | |
DDName (const std::string &name) | |
Creates a DDName with name in the current namespace defined in the singleton DDCurrentNamespace. More... | |
DDName (const char *name) | |
DDName (const char *name, const char *ns) | |
DDName (id_type) | |
DDName () | |
const std::string | fullname () const |
id_type | id () const |
const std::string & | name () const |
Returns the name. More... | |
const std::string & | ns () const |
Returns the namespace. More... | |
operator std::string () const | |
bool | operator< (const DDName &rhs) const |
bool | operator== (const DDName &rhs) const |
Static Public Member Functions | |
static void | defineId (const std::pair< std::string, std::string > &, id_type id) |
register pre-defined ids More... | |
static bool | exists (const std::string &name, const std::string &ns) |
true, if a DDName with given name and namespace (ns) already is registerd, otherwise false More... | |
Static Private Member Functions | |
static Registry::iterator | registerName (const std::pair< std::string, std::string > &s) |
Private Attributes | |
id_type | id_ |
Friends | |
class | DStreamer |
DDName is used to identify DDD entities uniquely.
A DDName consists of a name and a namespace. Both are represented as std::string.
typedef DDCurrentNamespace DDName::CNS |
typedef int DDName::id_type |
typedef std::vector<Registry::const_iterator> DDName::IdToName |
typedef std::map<std::pair<std::string,std::string>,id_type> DDName::Registry |
DDName::DDName | ( | const std::string & | name, |
const std::string & | ns | ||
) |
Constructs a DDName with name name and assigns name to the namespace ns.
Definition at line 19 of file DDName.cc.
DDName::DDName | ( | const std::string & | name | ) |
Creates a DDName with name in the current namespace defined in the singleton DDCurrentNamespace.
Definition at line 24 of file DDName.cc.
References DDSplit(), id_, DDCurrentNamespace::ns(), registerName(), and mps_fire::result.
DDName::DDName | ( | const char * | name | ) |
Definition at line 37 of file DDName.cc.
References DDSplit(), id_, DDCurrentNamespace::ns(), registerName(), and mps_fire::result.
DDName::DDName | ( | const char * | name, |
const char * | ns | ||
) |
Definition at line 50 of file DDName.cc.
DDName::DDName | ( | DDName::id_type | id | ) |
|
explicit |
|
static |
register pre-defined ids
Definition at line 63 of file DDName.cc.
References Exception, plotBeamSpotDB::first, id(), DDI::Singleton< I >::instance(), and alignCSCRings::s.
Referenced by DDStreamer::names_read().
|
static |
true, if a DDName with given name and namespace (ns) already is registerd, otherwise false
Definition at line 116 of file DDName.cc.
References DDI::Singleton< I >::instance(), and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Returns a string complete of the namespace and name separated by ":". Most likely you want to use ns() and / or name() methods instead.
Definition at line 51 of file DDName.h.
Referenced by TGeoMgrFromDdd::createMaterial(), TGeoFromDddService::createMaterial(), TGeoMgrFromDdd::createShape(), TGeoFromDddService::createShape(), TGeoMgrFromDdd::createVolume(), TGeoFromDddService::createVolume(), DDHtmlMaDetails::details(), DDHtmlRoDetails::details(), DDEcalEndcapAlgo::EEPositionCRs(), DDEcalEndcapAlgo::execute(), DDErrorDetection::lp_cpv(), DDCompareCPV::operator()(), DDCompareLP::operator()(), DDCompareSolid::operator()(), DDCompareBoolSol::operator()(), DDCompareDDRot::operator()(), and DDG4SolidConverter::trunctubs().
|
inline |
Definition at line 56 of file DDName.h.
References id_.
Referenced by defineId(), nameout(), and operator<<().
const std::string & DDName::name | ( | ) | const |
Returns the name.
Definition at line 87 of file DDName.cc.
References id_, DDI::Singleton< I >::instance(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), DDEcalEndcapAlgo::addTmp(), DDG4SolidConverter::box(), MagGeoBuilderFromDDD::build(), ME0GeometryParsFromDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DDDividedGeometryObject::checkNDivAndWidth(), DDG4SolidConverter::cons(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalBarrelAlgo::constructInsideDetectors(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule0(), DDG4Builder::convertLV(), DDG4Builder::convertMaterial(), DDHGCalNoTaperEndcap::createQuarter(), TGeoMgrFromDdd::createShape(), TGeoFromDddService::createShape(), DD_NC(), DDBox::DDBox(), DDCheckAll(), DDCheckMaterial(), DDCons::DDCons(), DDEllipsoid::DDEllipsoid(), DDEllipticalTube::DDEllipticalTube(), DDIntersection::DDIntersection(), DDOrb::DDOrb(), DDParallelepiped::DDParallelepiped(), DDPolycone::DDPolycone(), DDPolyhedra::DDPolyhedra(), DDPseudoTrap::DDPseudoTrap(), DDrot(), DDrotReflect(), DDShapelessSolid::DDShapelessSolid(), DDSphere::DDSphere(), DDSubtraction::DDSubtraction(), DDTorus::DDTorus(), DDTrap::DDTrap(), DDTruncTubs::DDTruncTubs(), DDTubs::DDTubs(), DDUnion::DDUnion(), DDHtmlLpDetails::details(), DDHtmlMaDetails::details(), validation.Sample::digest(), DDEcalPreshowerAlgoTB::doWedges(), DDG4SolidConverter::ellipsoid(), DDG4SolidConverter::ellipticaltube(), DDLinear::execute(), DDAngular::execute(), DDTIDModulePosAlgo::execute(), DDTECOptoHybAlgo::execute(), DDTIBLayerAlgo::execute(), DDTIDModuleAlgo::execute(), DDBHMAngular::execute(), DDTOBAxCableAlgo::execute(), DDTOBRadCableAlgo::execute(), DDTOBRodAlgo::execute(), DDTrackerLinear::execute(), DDHCalAngular::execute(), DDTrackerLinearXY::execute(), DDTrackerXYZPosAlgo::execute(), DDTrackerZPosAlgo::execute(), DDHCalForwardAlgo::execute(), DDHCalTBCableAlgo::execute(), DDHCalTBZposAlgo::execute(), DDHCalTestBeamAlgo::execute(), DDHCalXtalAlgo::execute(), DDPixBarLayerUpgradeAlgoCoverage::execute(), DDPixBarStackLayerAlgo::execute(), DDPixBarStackLinear::execute(), DDPixBarStackLinearGap::execute(), DDPixBarStackTrigLayerAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDPixBarTPGStackLayerAlgo::execute(), DDTIBRadCableAlgo_MTCC::execute(), DDGEMAngular::execute(), DDMuonAngular::execute(), DDPixBarLayerAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDTECCoolAlgo::execute(), DDTECPhiAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTIDRingAlgo::execute(), DDTrackerAngular::execute(), DDTrackerAngularV1::execute(), DDTrackerPhiAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDHCalFibreBundle::execute(), DDHCalLinearXY::execute(), DDTECAxialCableAlgo::execute(), DDTECModuleAlgo::execute(), DDTBH4Algo::execute(), DDEcalBarrelAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDTrackerRingAlgo::execute(), DDPixFwdBlades::execute(), fullname(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), DDLinear::initialize(), DDAngular::initialize(), DDTrackerZPosAlgo::initialize(), DDTIBLayerAlgo::initialize(), DDTIDModulePosAlgo::initialize(), DDTOBAxCableAlgo::initialize(), DDTrackerLinearXY::initialize(), DDPixBarStackLinearGap::initialize(), DDTOBRadCableAlgo::initialize(), DDTOBRodAlgo::initialize(), DDTrackerLinear::initialize(), DDHCalAngular::initialize(), DDHCalXtalAlgo::initialize(), DDTrackerXYZPosAlgo::initialize(), DDPixBarStackLayerAlgo::initialize(), DDPixBarLayerUpgradeAlgoCoverage::initialize(), DDTIBRadCableAlgo_MTCC::initialize(), DDPixBarTPGStackLayerAlgo::initialize(), DDHCalTBCableAlgo::initialize(), DDHCalTBZposAlgo::initialize(), DDTIDModuleAlgo::initialize(), DDHCalTestBeamAlgo::initialize(), DDTIBLayerAlgo_MTCC::initialize(), DDHCalForwardAlgo::initialize(), DDGEMAngular::initialize(), DDMuonAngular::initialize(), DDPixBarStackLinear::initialize(), DDPixBarLayerAlgo::initialize(), DDPixBarLayerUpgradeAlgo::initialize(), DDPixFwdDiskAlgo::initialize(), DDTECCoolAlgo::initialize(), DDTECOptoHybAlgo::initialize(), DDTECPhiAlgo::initialize(), DDTECPhiAltAlgo::initialize(), DDTIDAxialCableAlgo::initialize(), DDTIDRingAlgo::initialize(), DDTrackerPhiAltAlgo::initialize(), DDTrackerAngular::initialize(), DDTrackerAngularV1::initialize(), DDTrackerPhiAlgo::initialize(), DDHGCalWaferAlgo::initialize(), DDHCalFibreBundle::initialize(), DDHCalLinearXY::initialize(), DDTECAxialCableAlgo::initialize(), DDTECModuleAlgo::initialize(), DDHCalEndcapModuleAlgo::initialize(), DDTrackerRingAlgo::initialize(), DDHCalBarrelAlgo::initialize(), DDHCalEndcapAlgo::initialize(), VIDSelectorBase.VIDSelectorBase::initialize(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), DDG4SolidConverter::intersection(), CmsTrackerDebugNavigator::iterate(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedConsPhi::makeDDRotation(), DDDividedTubsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDLDivision::makeDivider(), nameout_strings(), operator std::string(), DDCompareEPV::operator()(), operator<<(), DDG4SolidConverter::orb(), DDG4SolidConverter::para(), DDG4SolidConverter::polycone_rrz(), DDG4SolidConverter::polycone_rz(), DDG4SolidConverter::polyhedra_rrz(), DDG4SolidConverter::polyhedra_rz(), DDLDivision::processElement(), DDLPosPart::processElement(), DDLRotationByAxis::processElement(), DDLCompositeMaterial::processElement(), DDG4SolidConverter::pseudotrap(), GeometricDetLoader::putOne(), PGeometricDetBuilder::putOne(), CocoaAnalyzer::ReadXMLFile(), DDG4SolidConverter::reflected(), DDG4SolidConverter::sphere(), DDG4SolidConverter::subtraction(), DDG4SolidConverter::torus(), DDG4SolidConverter::trap(), DDG4SolidConverter::trunctubs(), DDG4SolidConverter::tubs(), DDG4SolidConverter::unionsolid(), PrintGeomInfoAction::update(), Vispa.Views.PropertyView.Property::valueChanged(), MagGeoBuilderFromDDD::volumeHandle::volumeHandle(), DDEcalBarrelAlgo::web(), and DDEcalBarrelNewAlgo::web().
const std::string & DDName::ns | ( | ) | const |
Returns the namespace.
Definition at line 101 of file DDName.cc.
References id_, DDI::Singleton< I >::instance(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DD_NC(), DDBox::DDBox(), DDCheckAll(), DDCheckMaterial(), DDCons::DDCons(), DDEllipsoid::DDEllipsoid(), DDEllipticalTube::DDEllipticalTube(), DDIntersection::DDIntersection(), DDOrb::DDOrb(), DDParallelepiped::DDParallelepiped(), DDPolycone::DDPolycone(), DDPolyhedra::DDPolyhedra(), DDPseudoTrap::DDPseudoTrap(), DDShapelessSolid::DDShapelessSolid(), DDSphere::DDSphere(), DDSubtraction::DDSubtraction(), DDTorus::DDTorus(), DDTrap::DDTrap(), DDTruncTubs::DDTruncTubs(), DDTubs::DDTubs(), DDUnion::DDUnion(), DDHtmlLpDetails::details(), DDHtmlMaDetails::details(), fullname(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedConsPhi::makeDDRotation(), DDDividedTubsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDLDivision::makeDivider(), nameout_strings(), operator std::string(), operator<<(), DDLDivision::processElement(), DDLPosPart::processElement(), DDLCompositeMaterial::processElement(), and PGeometricDetBuilder::putOne().
|
inline |
|
inline |
|
staticprivate |
Definition at line 124 of file DDName.cc.
References DDI::Singleton< I >::instance(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDName().
|
private |
Definition at line 62 of file DDName.h.
Referenced by DDName(), id(), name(), ns(), operator<(), and operator==().