#include <DetGeomDesc.h>
Public Types | |
using | Container = std::vector< DetGeomDesc * > |
enum | CopyMode { cmWithChildren, cmWithoutChildren } |
using | RotationMatrix = ROOT::Math::Rotation3D |
using | Translation = ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > |
Public Member Functions | |
void | addComponent (DetGeomDesc *) |
void | applyAlignment (const CTPPSRPAlignmentCorrectionData &) |
const Container & | components () const |
int | copyno () const |
DetGeomDesc (const DDFilteredView &fv, const bool isRun2) | |
DetGeomDesc (const cms::DDFilteredView &fv, const bool isRun2) | |
DetGeomDesc (const PDetGeomDesc &gd) | |
DetGeomDesc (const PDetGeomDesc::Item &item) | |
DetGeomDesc (const DetGeomDesc &ref, CopyMode cm=cmWithChildren) | |
DetId | geographicalID () const |
const DiamondDimensions & | getDiamondDimensions () const |
void | invertZSign () |
bool | isABox () const |
bool | isDD4hep () const |
bool | isLeaf () const |
const std::string & | name () const |
const std::vector< double > & | params () const |
float | parentZPosition () const |
void | print () const |
const RotationMatrix & | rotation () const |
const std::string & | sensorType () const |
const Translation & | translation () const |
virtual | ~DetGeomDesc () |
Private Member Functions | |
void | clearComponents () |
DetId | computeDetID (const std::string &name, const std::vector< int > ©Nos, const unsigned int copyNum, const bool isRun2) const |
DetId | computeDetIDFromDD4hep (const std::string &name, const std::vector< int > ©Nos, const unsigned int copyNum, const bool isRun2) const |
DiamondDimensions | computeDiamondDimensions (const bool isABox, const bool isDD4hep, const std::vector< double > ¶ms) const |
std::string | computeNameWithNoNamespace (std::string_view nameFromView) const |
std::vector< double > | computeParameters (const cms::DDFilteredView &fv) const |
std::string | computeSensorType (std::string_view name) |
void | deepDeleteComponents () |
void | deleteComponents () |
Private Attributes | |
Container | m_container |
int | m_copy |
DiamondDimensions | m_diamondBoxParams |
DetId | m_geographicalID |
bool | m_isABox |
bool | m_isDD4hep |
std::string | m_name |
std::vector< double > | m_params |
RotationMatrix | m_rot |
std::string | m_sensorType |
Translation | m_trans |
float | m_z |
Definition at line 51 of file DetGeomDesc.h.
using DetGeomDesc::Container = std::vector<DetGeomDesc*> |
Definition at line 53 of file DetGeomDesc.h.
using DetGeomDesc::RotationMatrix = ROOT::Math::Rotation3D |
Definition at line 54 of file DetGeomDesc.h.
using DetGeomDesc::Translation = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double> > |
Definition at line 55 of file DetGeomDesc.h.
Enumerator | |
---|---|
cmWithChildren | |
cmWithoutChildren |
Definition at line 69 of file DetGeomDesc.h.
DetGeomDesc::DetGeomDesc | ( | const DDFilteredView & | fv, |
const bool | isRun2 | ||
) |
[in] | isRun2 | Switch between legacy run 2-like geometry and 2021+ scenarii |
Definition at line 29 of file DetGeomDesc.cc.
References ddbox.
Referenced by DetGeomDesc().
DetGeomDesc::DetGeomDesc | ( | const cms::DDFilteredView & | fv, |
const bool | isRun2 | ||
) |
[in] | isRun2 | Switch between legacy run 2-like geometry and 2021+ scenarii |
Definition at line 46 of file DetGeomDesc.cc.
DetGeomDesc::DetGeomDesc | ( | const PDetGeomDesc & | gd | ) |
Definition at line 103 of file DetGeomDesc.cc.
References addComponent(), PDetGeomDesc::container_, DetGeomDesc(), and mps_fire::i.
DetGeomDesc::DetGeomDesc | ( | const PDetGeomDesc::Item & | item | ) |
Definition at line 79 of file DetGeomDesc.cc.
References computeDiamondDimensions(), DDD_CTPPS_DIAMONDS_SEGMENT_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME_2x2, DDD_CTPPS_UFSD_SEGMENT_NAME, DDD_TOTEM_TIMING_SENSOR_TMPL, B2GTnPMonitor_cfi::item, m_diamondBoxParams, m_isABox, m_isDD4hep, m_name, m_params, m_rot, m_trans, and makeMuonMisalignmentScenario::rot.
|
virtual |
DetGeomDesc::DetGeomDesc | ( | const DetGeomDesc & | ref, |
CopyMode | cm = cmWithChildren |
||
) |
Definition at line 60 of file DetGeomDesc.cc.
References cmWithChildren, m_container, m_copy, m_diamondBoxParams, m_geographicalID, m_isABox, m_isDD4hep, m_name, m_params, m_rot, m_sensorType, m_trans, and m_z.
void DetGeomDesc::addComponent | ( | DetGeomDesc * | det | ) |
Definition at line 112 of file DetGeomDesc.cc.
References m_container.
Referenced by CTPPSGeometryESCommon::applyAlignments(), detgeomdescbuilder::buildDetGeomDescDescendants(), and DetGeomDesc().
void DetGeomDesc::applyAlignment | ( | const CTPPSRPAlignmentCorrectionData & | t | ) |
Definition at line 114 of file DetGeomDesc.cc.
References m_rot, m_trans, and submitPVValidationJobs::t.
Referenced by CTPPSGeometryESCommon::applyAlignments().
|
inlineprivate |
Definition at line 120 of file DetGeomDesc.h.
References m_container.
Referenced by deepDeleteComponents().
|
inline |
Definition at line 105 of file DetGeomDesc.h.
References m_container.
Referenced by CTPPSGeometryESCommon::applyAlignments(), and PPSGeometryBuilder::buildSerializableDataFromGeoInfo().
|
private |
Definition at line 197 of file DetGeomDesc.cc.
References protons_cff::arm, DDD_CTPPS_DIAMONDS_RP_NAME, DDD_CTPPS_DIAMONDS_SEGMENT_NAME, DDD_CTPPS_PIXELS_RP_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME_2x2, DDD_CTPPS_UFSD_SEGMENT_NAME, DDD_TOTEM_RP_RP_NAME, DDD_TOTEM_RP_SENSOR_NAME, DDD_TOTEM_TIMING_RP_NAME, DDD_TOTEM_TIMING_SENSOR_TMPL, protons_cff::decRPId, hgcalTestNeighbor_cfi::detector, geometryPPS_CMSxz_fromDD_2016_cfi::isRun2, name(), and relativeConstraints::station.
Referenced by computeDetIDFromDD4hep().
|
private |
Definition at line 321 of file DetGeomDesc.cc.
References computeDetID(), geometryPPS_CMSxz_fromDD_2016_cfi::isRun2, and name().
|
private |
Definition at line 177 of file DetGeomDesc.cc.
References isABox(), isDD4hep(), and params().
Referenced by DetGeomDesc().
|
private |
Definition at line 156 of file DetGeomDesc.cc.
References name(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
|
private |
Definition at line 334 of file DetGeomDesc.cc.
References DDD_CTPPS_PIXELS_SENSOR_NAME, DDD_CTPPS_PIXELS_SENSOR_NAME_2x2, DDD_CTPPS_PIXELS_SENSOR_TYPE_2x2, name(), sensorType(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 74 of file DetGeomDesc.h.
References m_copy.
Referenced by PPSGeometryBuilder::buildItemFromDetGeomDesc().
|
private |
Definition at line 149 of file DetGeomDesc.cc.
References clearComponents(), and m_container.
Referenced by ~DetGeomDesc().
|
private |
|
inline |
Definition at line 102 of file DetGeomDesc.h.
References m_geographicalID.
Referenced by CTPPSGeometryESCommon::applyAlignments(), PPSGeometryBuilder::buildItemFromDetGeomDesc(), and getDiamondDimensions().
|
inline |
Definition at line 90 of file DetGeomDesc.h.
References geographicalID(), isABox(), m_diamondBoxParams, and name().
Referenced by CTPPSDiamondRecHitProducerAlgorithm::build(), TotemTimingRecHitProducerAlgorithm::build(), channelAlignedWithTrack(), TotemTimingDQMSource::dqmBeginRun(), DiamondSampicDQMSource::dqmBeginRun(), DiamondSampicCalibrationDQMSource::dqmBeginRun(), and print().
|
inline |
|
inline |
Definition at line 89 of file DetGeomDesc.h.
References m_isABox.
Referenced by computeDiamondDimensions(), and getDiamondDimensions().
|
inline |
Definition at line 77 of file DetGeomDesc.h.
References m_isDD4hep.
Referenced by computeDiamondDimensions().
|
inline |
|
inline |
Definition at line 73 of file DetGeomDesc.h.
References m_name.
Referenced by config.CFG::__str__(), CTPPSGeometryESCommon::applyAlignments(), TotemTimingRecHitProducerAlgorithm::build(), PPSGeometryBuilder::buildItemFromDetGeomDesc(), computeDetID(), computeDetIDFromDD4hep(), computeNameWithNoNamespace(), computeSensorType(), validation.Sample::digest(), getDiamondDimensions(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
Definition at line 88 of file DetGeomDesc.h.
References m_params.
Referenced by PPSGeometryBuilder::buildItemFromDetGeomDesc(), and computeDiamondDimensions().
|
inline |
Definition at line 106 of file DetGeomDesc.h.
References m_z.
Referenced by CTPPSDiamondRecHitProducerAlgorithm::build(), TotemTimingRecHitProducerAlgorithm::build(), and PPSGeometryBuilder::buildItemFromDetGeomDesc().
void DetGeomDesc::print | ( | void | ) | const |
Definition at line 119 of file DetGeomDesc.cc.
References alignBH_cfg::fixed, getDiamondDimensions(), m_copy, m_geographicalID, m_isABox, m_name, m_rot, m_sensorType, m_trans, m_z, DiamondDimensions::xHalfWidth, DiamondDimensions::yHalfWidth, and DiamondDimensions::zHalfWidth.
|
inline |
Definition at line 81 of file DetGeomDesc.h.
References m_rot.
Referenced by PPSGeometryBuilder::buildItemFromDetGeomDesc(), RPixPlaneCombinatoryTracking::calculatePointOnDetector(), RPixRoadFinder::findPattern(), RPixPlaneCombinatoryTracking::findTracks(), CTPPSGeometry::globalToLocal(), CTPPSGeometry::globalToLocalDirection(), CTPPSGeometry::localToGlobal(), CTPPSGeometry::localToGlobalDirection(), and IdealResult::solve().
|
inline |
Definition at line 99 of file DetGeomDesc.h.
References m_sensorType.
Referenced by PPSGeometryBuilder::buildItemFromDetGeomDesc(), and computeSensorType().
|
inline |
Definition at line 80 of file DetGeomDesc.h.
References m_trans.
Referenced by CTPPSDiamondRecHitProducerAlgorithm::build(), TotemTimingRecHitProducerAlgorithm::build(), PPSGeometryBuilder::buildItemFromDetGeomDesc(), channelAlignedWithTrack(), DiamondSampicDQMSource::dqmBeginRun(), TotemTimingDQMSource::dqmBeginRun(), DiamondSampicCalibrationDQMSource::dqmBeginRun(), CTPPSGeometry::globalToLocal(), CTPPSGeometry::localToGlobal(), and IdealResult::solve().
|
private |
Definition at line 148 of file DetGeomDesc.h.
Referenced by addComponent(), clearComponents(), components(), deepDeleteComponents(), deleteComponents(), DetGeomDesc(), and isLeaf().
|
private |
Definition at line 138 of file DetGeomDesc.h.
Referenced by copyno(), DetGeomDesc(), and print().
|
private |
Definition at line 144 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), and getDiamondDimensions().
|
private |
Definition at line 146 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), geographicalID(), and print().
|
private |
Definition at line 143 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), isABox(), and print().
|
private |
Definition at line 139 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), and isDD4hep().
|
private |
Definition at line 137 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), name(), and print().
|
private |
Definition at line 142 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), and params().
|
private |
Definition at line 141 of file DetGeomDesc.h.
Referenced by applyAlignment(), DetGeomDesc(), print(), and rotation().
|
private |
Definition at line 145 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), print(), and sensorType().
|
private |
Definition at line 140 of file DetGeomDesc.h.
Referenced by applyAlignment(), DetGeomDesc(), invertZSign(), print(), and translation().
|
private |
Definition at line 149 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), parentZPosition(), and print().