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 | |
const entry * | entries_ {nullptr} |
Geometry | geometry_ {Geometry::Unspecified} |
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 entries_, 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 339 of file AlignableObjectId.cc.
References commonObjectIdProvider(), Exception, plotBeamSpotDB::first, General, and edm::second().
Referenced by commonObjectIdProvider(), muonGeometry(), and stringToId().
|
static |
Definition at line 351 of file AlignableObjectId.cc.
References commonGeometry(), and geometry().
Referenced by AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), commonGeometry(), HIPAlignmentAlgorithm::initialize(), PedeLabelerBase::PedeLabelerBase(), PedeSteerer::PedeSteerer(), PedeSteererWeakModeConstraints::PedeSteererWeakModeConstraints(), and stringToId().
|
static |
Definition at line 357 of file AlignableObjectId.cc.
References commonGeometry(), General, geometry(), muonGeometry(), AlignableMuon::objectIdProvider(), AlignableTracker::objectIdProvider(), and trackerGeometry().
|
inline |
retrieve the geometry information
Definition at line 30 of file AlignableObjectId.h.
References geometry_, idToString(), dataset::name, nameToType(), AlCaHLTBitMon_QueryRunRegistry::string, stringToId(), and typeToName().
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 entries_, Exception, mps_fire::result, and AlignableObjectId::entry::type.
Referenced by MomentumDependentPedeLabeler::buildMomentumDependencyMap(), TrackerAlignmentLevelBuilder::buildPXBAlignmentLevels(), TrackerAlignmentLevelBuilder::buildPXEAlignmentLevels(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), TrackerAlignmentLevelBuilder::buildTECAlignmentLevels(), TrackerAlignmentLevelBuilder::buildTIBAlignmentLevels(), TrackerAlignmentLevelBuilder::buildTIDAlignmentLevels(), TrackerAlignmentLevelBuilder::buildTOBAlignmentLevels(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), PedeSteererWeakModeConstraints::constructConstraints(), PedeSteererWeakModeConstraints::createAlignablesDataStructure(), MisalignmentScenarioBuilder::decodeMovements_(), geometry(), AlignableIndexer::get(), MuonAlignmentInputXML::getCSCnode(), MuonAlignmentInputXML::getDTnode(), PedeSteerer::hierarchyConstraint(), PedeSteerer::hierarchyConstraints(), PedeSteererWeakModeConstraints::makeLevelsFilenames(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), typeToName(), and MuonAlignmentOutputXML::writeComponents().
|
staticprivate |
Definition at line 333 of file AlignableObjectId.cc.
References commonGeometry(), and General.
Referenced by commonObjectIdProvider(), stringToId(), and trackerGeometry().
align::StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 270 of file AlignableObjectId.cc.
References stringToId().
Referenced by geometry().
|
default |
|
default |
align::StructureType AlignableObjectId::stringToId | ( | const char * | name | ) | const |
Definition at line 296 of file AlignableObjectId.cc.
References entries_, Exception, AlignableObjectId::entry::name, mps_fire::result, and trackerGeometry().
Referenced by TrackerGeometryCompare::analyze(), geometry(), nameToType(), MisalignmentScenarioBuilder::propagateParameters_(), TrackerGeometryCompare::setCommonTrackerSystem(), and stringToId().
|
inline |
Definition at line 39 of file AlignableObjectId.h.
References commonGeometry(), commonObjectIdProvider(), muonGeometry(), stringToId(), and trackerGeometry().
|
staticprivate |
Definition at line 310 of file AlignableObjectId.cc.
References Exception, General, TrackerGeometry::isThere(), muonGeometry(), GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2PXEC, PhaseI, PhaseII, GeomDetEnumerators::PixelEndcap, and RunI.
Referenced by commonObjectIdProvider(), and stringToId().
std::string AlignableObjectId::typeToName | ( | align::StructureType | type | ) | const |
Convert type to name.
Definition at line 276 of file AlignableObjectId.cc.
References idToString().
Referenced by PedeReader::checkAliParams(), AlignableTracker::endcapGeomDets(), AlignableTracker::endcapLayers(), AlignableTracker::endcapPetals(), AlignableTracker::endCaps(), geometry(), AlignableTracker::innerBarrelGeomDets(), AlignableTracker::innerBarrelLayers(), AlignableTracker::innerBarrelRods(), AlignableTracker::innerHalfBarrels(), AlignableTracker::outerBarrelGeomDets(), AlignableTracker::outerBarrelLayers(), AlignableTracker::outerBarrelRods(), AlignableTracker::outerHalfBarrels(), AlignableTracker::pixelEndcapGeomDets(), AlignableTracker::pixelEndcapHalfCylinders(), 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().
Definition at line 52 of file AlignableObjectId.h.
Referenced by AlignableObjectId(), idToString(), and stringToId().
|
private |
Definition at line 53 of file AlignableObjectId.h.
Referenced by geometry().