Allows conversion between type and name, and vice-versa. More...
#include <AlignableObjectId.h>
Public Member Functions | |
AlignableObjectId () | |
align::StructureType | nameToType (const std::string &name) const |
Convert name to type. | |
std::string | typeToName (align::StructureType type) const |
Convert type to name. | |
Static Public Member Functions | |
static const char * | idToString (align::StructureType type) |
static align::StructureType | stringToId (const std::string &s) |
static align::StructureType | stringToId (const char *) |
Allows conversion between type and name, and vice-versa.
Definition at line 9 of file AlignableObjectId.h.
AlignableObjectId::AlignableObjectId | ( | ) | [inline] |
Definition at line 13 of file AlignableObjectId.h.
{};
const char * AlignableObjectId::idToString | ( | align::StructureType | type | ) | [static] |
Definition at line 111 of file AlignableObjectId.cc.
References python::tagInventory::entries, Exception, and query::result.
Referenced by AlignmentMonitorGeneric::book(), TrackerOfflineValidation::bookDirHists(), TrackerOfflineValidation::bookSummaryHists(), AlignableBuilder::build(), MomentumDependentPedeLabeler::buildMomentumDependencyMap(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), TrackerOfflineValidation::collateSummaryHists(), MisalignmentScenarioBuilder::decodeMovements_(), Counters::get(), PedeSteerer::hierarchyConstraint(), PedeSteerer::hierarchyConstraints(), KalmanAlignmentUserVariables::KalmanAlignmentUserVariables(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), and MuonAlignmentOutputXML::writeComponents().
StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 99 of file AlignableObjectId.cc.
{ return stringToId(name.c_str()); }
align::StructureType AlignableObjectId::stringToId | ( | const char * | name | ) | [static] |
Definition at line 124 of file AlignableObjectId.cc.
References python::tagInventory::entries, Exception, mergeVDriftHistosByStation::name, and query::result.
Referenced by AlignmentMonitorSurvey::AlignmentMonitorSurvey(), AlignableTracker::buildBarrel(), HIPAlignmentAlgorithm::HIPAlignmentAlgorithm(), SurveyAlignmentAlgorithm::initialize(), MuonGeometryArrange::MuonGeometryArrange(), MisalignmentScenarioBuilder::propagateParameters_(), SurveyInputTextReader::readFile(), TrackerGeometryCompare::setCommonTrackerSystem(), and TrackerGeometryCompare::TrackerGeometryCompare().
{ StructureType result = stringToObjectId(name, entries); if (result == -1) { throw cms::Exception("AlignableObjectIdError") << "Unknown alignableObjectId " << name; } return result; }
static align::StructureType AlignableObjectId::stringToId | ( | const std::string & | s | ) | [inline, static] |
Definition at line 21 of file AlignableObjectId.h.
References stringToId().
Referenced by stringToId().
{ return stringToId(s.c_str()); };
std::string AlignableObjectId::typeToName | ( | align::StructureType | type | ) | const |
Convert type to name.
Definition at line 106 of file AlignableObjectId.cc.
{ return idToString(type); }