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 *, const GEMGeometry *) | |
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 *, const GEMGeometry *) |
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 13 of file AlignableObjectId.h.
|
strong |
Enumerator | |
---|---|
RunI | |
PhaseI | |
PhaseII | |
General | |
Unspecified |
Definition at line 16 of file AlignableObjectId.h.
AlignableObjectId::AlignableObjectId | ( | Geometry | ) |
AlignableObjectId::AlignableObjectId | ( | const TrackerGeometry * | tracker, |
const DTGeometry * | muonDt, | ||
const CSCGeometry * | muonCsc, | ||
const GEMGeometry * | muonGem | ||
) |
Definition at line 260 of file AlignableObjectId.cc.
|
default |
|
default |
|
virtualdefault |
|
static |
Definition at line 323 of file AlignableObjectId.cc.
References Exception, dqmdumpme::first, General, and edm::second().
Referenced by commonObjectIdProvider().
|
static |
Definition at line 336 of file AlignableObjectId.cc.
References commonGeometry(), dqmdumpme::first, and edm::second().
Referenced by AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), HIPAlignmentAlgorithm::initialize(), PedeLabelerBase::PedeLabelerBase(), PedeSteerer::PedeSteerer(), and PedeSteererWeakModeConstraints::PedeSteererWeakModeConstraints().
|
static |
Definition at line 54 of file AlignableObjectId.h.
References commonGeometry(), General, muonGeometry(), PbPb_ZMuSkimMuonDPG_cff::tracker, and trackerGeometry().
|
static |
AlignableObjectId AlignableObjectId::commonObjectIdProvider | ( | const T * | tracker, |
std::nullptr_t | |||
) |
Definition at line 61 of file AlignableObjectId.h.
References commonGeometry(), General, PbPb_ZMuSkimMuonDPG_cff::tracker, and trackerGeometry().
|
inline |
retrieve the geometry information
Definition at line 27 of file AlignableObjectId.h.
References geometry_.
Referenced by AlignableTrackerBuilder::AlignableTrackerBuilder().
const char * AlignableObjectId::idToString | ( | align::StructureType | type | ) | const |
Definition at line 273 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_(), AlignableIndexer::get(), MuonAlignmentInputXML::getCSCnode(), MuonAlignmentInputXML::getDTnode(), MuonAlignmentInputXML::getGEMnode(), PedeSteerer::hierarchyConstraint(), PedeSteerer::hierarchyConstraints(), PedeSteererWeakModeConstraints::makeLevelsFilenames(), PedeSteerer::presigmas(), PedeSteerer::presigmasFile(), typeToName(), and MuonAlignmentOutputXML::writeComponents().
|
staticprivate |
Definition at line 316 of file AlignableObjectId.cc.
References General.
Referenced by commonObjectIdProvider().
align::StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 267 of file AlignableObjectId.cc.
References Skims_PA_cff::name, and stringToId().
|
default |
|
default |
align::StructureType AlignableObjectId::stringToId | ( | const char * | name | ) | const |
Definition at line 284 of file AlignableObjectId.cc.
References entries_, Exception, Skims_PA_cff::name, and mps_fire::result.
Referenced by TrackerGeometryCompare::analyze(), nameToType(), MisalignmentScenarioBuilder::propagateParameters_(), and TrackerGeometryCompare::setCommonTrackerSystem().
|
inline |
Definition at line 36 of file AlignableObjectId.h.
References alignCSCRings::s, and stringToId().
Referenced by stringToId().
|
staticprivate |
Definition at line 294 of file AlignableObjectId.cc.
References Exception, General, GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2PXEC, PhaseI, PhaseII, GeomDetEnumerators::PixelEndcap, and RunI.
Referenced by commonObjectIdProvider().
std::string AlignableObjectId::typeToName | ( | align::StructureType | type | ) | const |
Convert type to name.
Definition at line 270 of file AlignableObjectId.cc.
References idToString().
Referenced by PedeReader::checkAliParams(), 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::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().
|
private |
Definition at line 49 of file AlignableObjectId.h.
Referenced by idToString(), and stringToId().
|
private |
Definition at line 50 of file AlignableObjectId.h.
Referenced by geometry().