#include <BoundingBox.h>
Public Member Functions | |
BoundingBox () | |
BoundingBox () | |
BoundingBox (const Plane &plane) | |
BoundingBox (const double &min_r, const double &max_r, const double &min_z, const double &max_z) | |
GlobalPoint const & | corner (unsigned int i) const |
void | grow (const double &r, const double &z) |
void | grow (const double &skin) |
bool | inside (const double &r, const double &z) const |
GlobalPoint const & | operator[] (unsigned int i) const |
std::pair< double, double > | range_r () const |
std::pair< double, double > | range_z () const |
Static Public Member Functions | |
static std::vector< GlobalPoint > | corners (const Plane &) |
Private Attributes | |
GlobalPoint | m_corners [8] |
double | r_max |
double | r_min |
double | z_max |
double | z_min |
A helper class that returns the corners of a rectangle that fully contains a bound plane.
Definition at line 12 of file BoundingBox.h.
|
inline |
Definition at line 14 of file BoundingBox.h.
BoundingBox::BoundingBox | ( | const Plane & | plane | ) |
|
inline |
Definition at line 14 of file BoundingBox.h.
|
inline |
Definition at line 16 of file BoundingBox.h.
|
inline |
|
static |
Definition at line 20 of file BoundingBox.cc.
References mps_fire::result.
Referenced by RodPlaneBuilderFromDet::computeBounds(), ForwardRingDiskBuilderFromDet::computeBounds(), Phase1PixelBlade::computeRadiusRanges(), PlaneBuilderForGluedDet::computeRectBounds(), BarrelDetLayer::computeSurface(), ForwardDetLayer::computeSurface(), CylinderBuilderFromDet::operator()(), and PhiBorderFinder::PhiBorderFinder().
void BoundingBox::grow | ( | const double & | r, |
const double & | z | ||
) |
Definition at line 3 of file BoundingBox.cc.
References alignCSCRings::r, r_max, r_min, z, z_max, and z_min.
Referenced by DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup().
void BoundingBox::grow | ( | const double & | skin | ) |
|
inline |
Definition at line 23 of file BoundingBox.h.
References r_min, z_max, and z_min.
Referenced by DD4hep_MaterialAccountingGroup::isInside().
|
inline |
|
inline |
Definition at line 27 of file BoundingBox.h.
Referenced by DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup(), DD4hep_MaterialAccountingGroup::getBoundingR(), DD4hep_MaterialAccountingGroup::info(), and DD4hep_MaterialAccountingGroup::isInside().
|
inline |
Definition at line 29 of file BoundingBox.h.
Referenced by DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup(), DD4hep_MaterialAccountingGroup::getBoundingZ(), DD4hep_MaterialAccountingGroup::info(), and DD4hep_MaterialAccountingGroup::isInside().
|
private |
Definition at line 24 of file BoundingBox.h.
Referenced by corner(), and operator[]().
|
private |
Definition at line 9 of file BoundingBox.h.
|
private |
Definition at line 8 of file BoundingBox.h.
|
private |
Definition at line 11 of file BoundingBox.h.
|
private |
Definition at line 10 of file BoundingBox.h.