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 | |
template<typename T > | |
AlignableObjectId | commonObjectIdProvider (const T *tracker, std::nullptr_t) |
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 &) |
template<typename TRACKER , typename MUON > | |
static AlignableObjectId | commonObjectIdProvider (const TRACKER *, const MUON *) |
template<typename TRACKER > | |
static AlignableObjectId | commonObjectIdProvider (const TRACKER *, std::nullptr_t) |
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 12 of file AlignableObjectId.h.
|
strong |
Enumerator | |
---|---|
RunI | |
PhaseI | |
PhaseII | |
General | |
Unspecified |
Definition at line 15 of file AlignableObjectId.h.
AlignableObjectId::AlignableObjectId | ( | Geometry | ) |
AlignableObjectId::AlignableObjectId | ( | const TrackerGeometry * | tracker, |
const DTGeometry * | muonDt, | ||
const CSCGeometry * | muonCsc | ||
) |
Definition at line 247 of file AlignableObjectId.cc.
|
default |
|
default |
|
virtualdefault |
|
static |
Definition at line 307 of file AlignableObjectId.cc.
References Exception, dqmdumpme::first, General, and edm::second().
Referenced by commonObjectIdProvider(), and stringToId().
|
static |
Definition at line 320 of file AlignableObjectId.cc.
References commonGeometry(), and geometry().
Referenced by AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), HIPAlignmentAlgorithm::initialize(), PedeLabelerBase::PedeLabelerBase(), PedeSteerer::PedeSteerer(), PedeSteererWeakModeConstraints::PedeSteererWeakModeConstraints(), and stringToId().
|
static |
Definition at line 53 of file AlignableObjectId.h.
References commonGeometry(), General, muonGeometry(), and trackerGeometry().
|
static |
AlignableObjectId AlignableObjectId::commonObjectIdProvider | ( | const T * | tracker, |
std::nullptr_t | |||
) |
Definition at line 60 of file AlignableObjectId.h.
References commonGeometry(), General, and trackerGeometry().
|
inline |
retrieve the geometry information
Definition at line 26 of file AlignableObjectId.h.
References geometry_, idToString(), Skims_PA_cff::name, nameToType(), AlCaHLTBitMon_QueryRunRegistry::string, stringToId(), and typeToName().
Referenced by AlignableTrackerBuilder::AlignableTrackerBuilder(), commonObjectIdProvider(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent().
const char * AlignableObjectId::idToString | ( | align::StructureType | type | ) | const |
Definition at line 259 of file AlignableObjectId.cc.
References entries_, Exception, and mps_fire::result.
Referenced by 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_(), 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 302 of file AlignableObjectId.cc.
References General.
Referenced by commonObjectIdProvider(), and stringToId().
align::StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 253 of file AlignableObjectId.cc.
References stringToId().
Referenced by geometry().
|
default |
|
default |
align::StructureType AlignableObjectId::stringToId | ( | const char * | name | ) | const |
Definition at line 270 of file AlignableObjectId.cc.
References entries_, Exception, Skims_PA_cff::name, and mps_fire::result.
Referenced by TrackerGeometryCompare::analyze(), geometry(), nameToType(), MisalignmentScenarioBuilder::propagateParameters_(), and TrackerGeometryCompare::setCommonTrackerSystem().
|
inline |
Definition at line 35 of file AlignableObjectId.h.
References commonGeometry(), commonObjectIdProvider(), pat::MUON, muonGeometry(), stringToId(), sistripsummary::TRACKER, and trackerGeometry().
Referenced by stringToId().
|
staticprivate |
Definition at line 280 of file AlignableObjectId.cc.
References Exception, General, TrackerGeometry::isThere(), 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 256 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 48 of file AlignableObjectId.h.
Referenced by idToString(), and stringToId().
|
private |
Definition at line 49 of file AlignableObjectId.h.
Referenced by geometry().