#include <BoundingBox.h>
Public Member Functions | |
BoundingBox () | |
BoundingBox () | |
BoundingBox (const Plane &plane) | |
BoundingBox (double min_r, double max_r, double min_z, double max_z) | |
GlobalPoint const & | corner (unsigned int i) const |
void | grow (double r, double z) |
void | grow (double skin) |
bool | inside (double r, 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 |
|
inline |
|
inline |
Definition at line 21 of file BoundingBox.h.
References mps_fire::i, and m_corners.
|
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 | ( | double | r, |
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 | ( | double | skin | ) |
bool BoundingBox::inside | ( | double | r, |
double | z | ||
) | const |
Definition at line 21 of file BoundingBox.cc.
References alignCSCRings::r, r_min, z, z_max, and z_min.
Referenced by DD4hep_MaterialAccountingGroup::isInside().
|
inline |
Definition at line 20 of file BoundingBox.h.
References mps_fire::i, and m_corners.
|
inline |
Definition at line 25 of file BoundingBox.h.
Referenced by DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup(), DD4hep_MaterialAccountingGroup::getBoundingR(), DD4hep_MaterialAccountingGroup::info(), and DD4hep_MaterialAccountingGroup::isInside().
|
inline |
Definition at line 27 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.