CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
AlignableObjectId Class Reference

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. More...
 
std::string typeToName (align::StructureType type) const
 Convert type to name. More...
 

Static Public Member Functions

static const char * idToString (align::StructureType type)
 
static align::StructureType stringToId (const char *)
 
static align::StructureType stringToId (const std::string &s)
 

Detailed Description

Allows conversion between type and name, and vice-versa.

Definition at line 9 of file AlignableObjectId.h.

Constructor & Destructor Documentation

AlignableObjectId::AlignableObjectId ( )
inline

Definition at line 13 of file AlignableObjectId.h.

13 {};

Member Function Documentation

const char * AlignableObjectId::idToString ( align::StructureType  type)
static

Definition at line 111 of file AlignableObjectId.cc.

References python.tagInventory::entries, edm::hlt::Exception, and query::result.

Referenced by AlignmentMonitorGeneric::book(), TrackerOfflineValidation::bookDirHists(), TrackerOfflineValidation::bookSummaryHists(), AlignableBuilder::build(), MomentumDependentPedeLabeler::buildMomentumDependencyMap(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), TrackerOfflineValidation::collateSummaryHists(), PedeSteererWeakModeConstraints::constructConstraints(), PedeSteererWeakModeConstraints::createAlignablesDataStructure(), MisalignmentScenarioBuilder::decodeMovements_(), Counters::get(), PedeSteererWeakModeConstraints::getX0(), PedeSteerer::hierarchyConstraint(), PedeSteerer::hierarchyConstraints(), KalmanAlignmentUserVariables::KalmanAlignmentUserVariables(), PedeSteererWeakModeConstraints::makeLevelsFilenames(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), and MuonAlignmentOutputXML::writeComponents().

112 {
113  const char *result = objectIdToString(type, entries);
114 
115  if (result == 0)
116  {
117  throw cms::Exception("AlignableObjectIdError")
118  << "Unknown alignableObjectId " << type;
119  }
120 
121  return result;
122 }
type
Definition: HCALResponse.h:21
tuple result
Definition: query.py:137
StructureType AlignableObjectId::nameToType ( const std::string &  name) const

Convert name to type.

Definition at line 99 of file AlignableObjectId.cc.

100 {
101  return stringToId(name.c_str());
102 }
static align::StructureType stringToId(const char *)
align::StructureType AlignableObjectId::stringToId ( const char *  name)
static
static align::StructureType AlignableObjectId::stringToId ( const std::string &  s)
inlinestatic

Definition at line 21 of file AlignableObjectId.h.

References stringToId().

Referenced by stringToId().

21 { return stringToId(s.c_str()); };
static align::StructureType stringToId(const char *)
std::string AlignableObjectId::typeToName ( align::StructureType  type) const

Convert type to name.

Definition at line 106 of file AlignableObjectId.cc.

107 {
108  return idToString(type);
109 }
type
Definition: HCALResponse.h:21
static const char * idToString(align::StructureType type)