Allows conversion between type and name, and vice-versa. More...
#include <AlignableObjectId.h>
Classes | |
struct | entry |
Public Types | |
enum | Geometry { Geometry::RunI, Geometry::PhaseI, Geometry::PhaseII, Geometry::General, Geometry::Unspecified } |
Public Member Functions | |
AlignableObjectId (Geometry) | |
AlignableObjectId (const TrackerGeometry *, const DTGeometry *, const CSCGeometry *) | |
AlignableObjectId (const AlignableObjectId &)=default | |
AlignableObjectId (AlignableObjectId &&)=default | |
Geometry | geometry () const |
retrieve the geometry information More... | |
const char * | idToString (align::StructureType type) const |
align::StructureType | nameToType (const std::string &name) const |
Convert name to type. More... | |
AlignableObjectId & | operator= (const AlignableObjectId &)=default |
AlignableObjectId & | operator= (AlignableObjectId &&)=default |
align::StructureType | stringToId (const char *) const |
align::StructureType | stringToId (const std::string &s) const |
std::string | typeToName (align::StructureType type) const |
Convert type to name. More... | |
virtual | ~AlignableObjectId ()=default |
Static Public Member Functions | |
static Geometry | commonGeometry (Geometry, Geometry) |
static AlignableObjectId | commonObjectIdProvider (const AlignableObjectId &, const AlignableObjectId &) |
static AlignableObjectId | commonObjectIdProvider (const AlignableTracker *, const AlignableMuon *) |
Static Private Member Functions | |
static Geometry | muonGeometry (const DTGeometry *, const CSCGeometry *) |
static Geometry | trackerGeometry (const TrackerGeometry *) |
Private Attributes | |
Geometry | geometry_ {Geometry::Unspecified} |
const entry *entries_ | nullptr |
Allows conversion between type and name, and vice-versa.
Definition at line 15 of file AlignableObjectId.h.
|
strong |
Enumerator | |
---|---|
RunI | |
PhaseI | |
PhaseII | |
General | |
Unspecified |
Definition at line 19 of file AlignableObjectId.h.
AlignableObjectId::AlignableObjectId | ( | AlignableObjectId::Geometry | geometry | ) |
Definition at line 240 of file AlignableObjectId.cc.
References Exception, General, PhaseI, PhaseII, RunI, and Unspecified.
AlignableObjectId::AlignableObjectId | ( | const TrackerGeometry * | tracker, |
const DTGeometry * | muonDt, | ||
const CSCGeometry * | muonCsc | ||
) |
Definition at line 260 of file AlignableObjectId.cc.
|
default |
|
default |
|
virtualdefault |
|
static |
Definition at line 337 of file AlignableObjectId.cc.
References Exception, plotBeamSpotDB::first, and edm::second().
Referenced by commonObjectIdProvider().
|
static |
Definition at line 349 of file AlignableObjectId.cc.
References geometry().
Referenced by AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), HIPAlignmentAlgorithm::initialize(), PedeLabelerBase::PedeLabelerBase(), PedeSteerer::PedeSteerer(), and PedeSteererWeakModeConstraints::PedeSteererWeakModeConstraints().
|
static |
Definition at line 355 of file AlignableObjectId.cc.
References commonGeometry(), General, geometry(), AlignableMuon::objectIdProvider(), and AlignableTracker::objectIdProvider().
|
inline |
retrieve the geometry information
Definition at line 30 of file AlignableObjectId.h.
References geometry_.
Referenced by commonObjectIdProvider(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent().
const char * AlignableObjectId::idToString | ( | align::StructureType | type | ) | const |
Definition at line 282 of file AlignableObjectId.cc.
References Exception, and mps_fire::result.
Referenced by MomentumDependentPedeLabeler::buildMomentumDependencyMap(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), PedeSteererWeakModeConstraints::constructConstraints(), PedeSteererWeakModeConstraints::createAlignablesDataStructure(), MisalignmentScenarioBuilder::decodeMovements_(), AlignableIndexer::get(), MuonAlignmentInputXML::getCSCnode(), MuonAlignmentInputXML::getDTnode(), PedeSteerer::hierarchyConstraint(), PedeSteerer::hierarchyConstraints(), PedeSteererWeakModeConstraints::makeLevelsFilenames(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), typeToName(), and MuonAlignmentOutputXML::writeComponents().
|
staticprivate |
Definition at line 331 of file AlignableObjectId.cc.
align::StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 270 of file AlignableObjectId.cc.
References stringToId().
|
default |
|
default |
align::StructureType AlignableObjectId::stringToId | ( | const char * | name | ) | const |
Definition at line 296 of file AlignableObjectId.cc.
References Exception, mergeVDriftHistosByStation::name, and mps_fire::result.
Referenced by TrackerGeometryCompare::analyze(), nameToType(), MisalignmentScenarioBuilder::propagateParameters_(), TrackerGeometryCompare::setCommonTrackerSystem(), and stringToId().
|
inline |
Definition at line 39 of file AlignableObjectId.h.
References stringToId().
|
staticprivate |
Definition at line 310 of file AlignableObjectId.cc.
References Exception, TrackerGeometry::isThere(), GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2PXEC, and GeomDetEnumerators::PixelEndcap.
std::string AlignableObjectId::typeToName | ( | align::StructureType | type | ) | const |
Convert type to name.
Definition at line 276 of file AlignableObjectId.cc.
References idToString().
Referenced by AlignableTracker::endcapGeomDets(), AlignableTracker::endcapLayers(), AlignableTracker::endcapPetals(), AlignableTracker::endCaps(), AlignableTracker::innerBarrelGeomDets(), AlignableTracker::innerBarrelLayers(), AlignableTracker::innerBarrelRods(), AlignableTracker::innerHalfBarrels(), AlignableTracker::outerBarrelGeomDets(), AlignableTracker::outerBarrelLayers(), AlignableTracker::outerBarrelRods(), AlignableTracker::outerHalfBarrels(), AlignableTracker::pixelEndcapGeomDets(), AlignableTracker::pixelEndcapLayers(), AlignableTracker::pixelEndcapPetals(), AlignableTracker::pixelEndCaps(), AlignableTracker::pixelHalfBarrelGeomDets(), AlignableTracker::pixelHalfBarrelLadders(), AlignableTracker::pixelHalfBarrelLayers(), AlignableTracker::pixelHalfBarrels(), TrackerScenarioBuilder::stripOffModule(), AlignableTracker::TIDGeomDets(), AlignableTracker::TIDLayers(), AlignableTracker::TIDRings(), and AlignableTracker::TIDs().
|
private |
Definition at line 53 of file AlignableObjectId.h.
Referenced by geometry().
|
private |
Definition at line 52 of file AlignableObjectId.h.