Allows conversion between type and name, and vice-versa. More...
#include <AlignableObjectId.h>
Classes | |
struct | reverse_pair |
Public Types | |
typedef std::map < align::StructureType, std::string > | MapEnumType |
typedef std::pair< std::string, align::StructureType > | PairEnumReverseType |
typedef std::pair < align::StructureType, std::string > | PairEnumType |
typedef std::map< std::string, align::StructureType > | ReverseMapEnumType |
Public Member Functions | |
AlignableObjectId () | |
Constructor (create maps) More... | |
align::StructureType | nameToType (const std::string &name) const |
Convert name to type. More... | |
const std::string & | typeToName (align::StructureType type) const |
Convert type to name. More... | |
Private Attributes | |
MapEnumType | theMap |
ReverseMapEnumType | theReverseMap |
Allows conversion between type and name, and vice-versa.
Definition at line 10 of file AlignableObjectId.h.
typedef std::map<align::StructureType, std::string> AlignableObjectId::MapEnumType |
Definition at line 18 of file AlignableObjectId.h.
typedef std::pair<std::string, align::StructureType> AlignableObjectId::PairEnumReverseType |
Definition at line 21 of file AlignableObjectId.h.
typedef std::pair<align::StructureType, std::string> AlignableObjectId::PairEnumType |
Definition at line 20 of file AlignableObjectId.h.
typedef std::map<std::string, align::StructureType> AlignableObjectId::ReverseMapEnumType |
Definition at line 19 of file AlignableObjectId.h.
AlignableObjectId::AlignableObjectId | ( | ) |
Constructor (create maps)
Definition at line 9 of file AlignableObjectId.cc.
References align::AlignableCSCLayer, align::AlignableDTLayer, align::BeamSpot, align::invalid, align::Pixel, align::Strip, align::TECDisk, align::TECEndcap, align::TECModule, align::TECRing, align::TECSide, align::TIBBarrel, align::TIBHalfBarrel, align::TIBHalfShell, align::TIBLayer, align::TIBModule, align::TIBString, align::TIBSurface, align::TIDDisk, align::TIDEndcap, align::TIDModule, align::TIDRing, align::TIDSide, align::TOBBarrel, align::TOBHalfBarrel, align::TOBLayer, align::TOBModule, align::TOBRod, align::TPBBarrel, align::TPBHalfBarrel, align::TPBLadder, align::TPBLayer, align::TPBModule, align::TPEBlade, align::TPEEndcap, align::TPEHalfCylinder, align::TPEHalfDisk, align::TPEModule, align::TPEPanel, align::Tracker, and create_public_pileup_plots::transform.
StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 90 of file AlignableObjectId.cc.
References edm::hlt::Exception, n, and mergeVDriftHistosByStation::name.
Referenced by AlignmentMonitorSurvey::AlignmentMonitorSurvey(), AlignableTracker::buildBarrel(), HIPAlignmentAlgorithm::HIPAlignmentAlgorithm(), SurveyAlignmentAlgorithm::initialize(), MisalignmentScenarioBuilder::propagateParameters_(), SurveyInputTextReader::readFile(), and TrackerGeometryCompare::setCommonTrackerSystem().
const std::string & AlignableObjectId::typeToName | ( | align::StructureType | type | ) | const |
Convert type to name.
Definition at line 105 of file AlignableObjectId.cc.
References edm::hlt::Exception, and lumiQTWidget::t.
Referenced by AlignmentMonitorGeneric::book(), TrackerOfflineValidation::bookDirHists(), TrackerOfflineValidation::bookSummaryHists(), AlignableBuilder::build(), TrackerOfflineValidation::collateSummaryHists(), MisalignmentScenarioBuilder::decodeMovements_(), Counters::get(), PedeSteerer::hierarchyConstraint(), KalmanAlignmentUserVariables::KalmanAlignmentUserVariables(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), and MuonAlignmentOutputXML::writeComponents().
|
private |
Definition at line 30 of file AlignableObjectId.h.
|
private |
Definition at line 31 of file AlignableObjectId.h.