test
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 ()
 

Static Public Member Functions

static const char * idToString (align::StructureType type)
 
static void isPhaseIGeometry ()
 sets entries-pointer to names of PhaseI geometry More...
 
static void isPhaseIIGeometry ()
 sets entries-pointer to names of PhaseII geometry More...
 
static void isRunIGeometry ()
 sets entries-pointer to names of RunI geometry More...
 
static align::StructureType nameToType (const std::string &name)
 Convert name to type. More...
 
static align::StructureType stringToId (const char *)
 
static align::StructureType stringToId (const std::string &s)
 
static std::string typeToName (align::StructureType type)
 Convert type to name. More...
 

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 272 of file AlignableObjectId.cc.

References Exception, and mps_fire::result.

Referenced by AlignmentMonitorGeneric::book(), TrackerOfflineValidation::bookDirHists(), TrackerOfflineValidation::bookSummaryHists(), AlignableTrackerBuilder::buildAlignableDetUnits(), AlignableCompositeBuilder::buildAll(), AlignableCompositeBuilder::buildLevel(), MomentumDependentPedeLabeler::buildMomentumDependencyMap(), AlignableTrackerBuilder::buildPixelDetector(), TrackerAlignmentLevelBuilder::buildPXBAlignmentLevels(), TrackerAlignmentLevelBuilder::buildPXEAlignmentLevels(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), AlignableTrackerBuilder::buildStripDetector(), TrackerAlignmentLevelBuilder::buildTECAlignmentLevels(), TrackerAlignmentLevelBuilder::buildTIBAlignmentLevels(), TrackerAlignmentLevelBuilder::buildTIDAlignmentLevels(), TrackerAlignmentLevelBuilder::buildTOBAlignmentLevels(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), PedeSteererWeakModeConstraints::constructConstraints(), PedeSteererWeakModeConstraints::createAlignablesDataStructure(), MisalignmentScenarioBuilder::decodeMovements_(), AlignableIndexer::get(), MuonAlignmentInputXML::getCSCnode(), MuonAlignmentInputXML::getDTnode(), PedeSteerer::hierarchyConstraint(), PedeSteerer::hierarchyConstraints(), PedeSteererWeakModeConstraints::makeLevelsFilenames(), TrackerOfflineValidation::prepareSummaryHists(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), and MuonAlignmentOutputXML::writeComponents().

273 {
274  const char *result = objectIdToString(type, entries);
275 
276  if (result == 0)
277  {
278  throw cms::Exception("AlignableObjectIdError")
279  << "Unknown alignableObjectId " << type;
280  }
281 
282  return result;
283 }
type
Definition: HCALResponse.h:21
tuple result
Definition: mps_fire.py:84
void AlignableObjectId::isPhaseIGeometry ( )
static

sets entries-pointer to names of PhaseI geometry

Definition at line 248 of file AlignableObjectId.cc.

Referenced by AlignableTrackerBuilder::AlignableTrackerBuilder().

248  {
249  entries = entries_PhaseI;
250 }
void AlignableObjectId::isPhaseIIGeometry ( )
static

sets entries-pointer to names of PhaseII geometry

Definition at line 254 of file AlignableObjectId.cc.

Referenced by AlignableTrackerBuilder::AlignableTrackerBuilder().

254  {
255  entries = entries_PhaseII;
256 }
void AlignableObjectId::isRunIGeometry ( )
static

sets entries-pointer to names of RunI geometry

Definition at line 242 of file AlignableObjectId.cc.

Referenced by AlignableTrackerBuilder::AlignableTrackerBuilder().

242  {
243  entries = entries_RunI;
244 }
StructureType AlignableObjectId::nameToType ( const std::string &  name)
static

Convert name to type.

Definition at line 260 of file AlignableObjectId.cc.

261 {
262  return stringToId(name.c_str());
263 }
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 31 of file AlignableObjectId.h.

References stringToId().

Referenced by stringToId().

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