LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
A basic interface for objects owning an area. More...
#include "Partitions.h"
Public Types | |
using | Area_t = lar::util::simple_geo::Rectangle< double > |
Type of area covered by the partition. More... | |
using | AreaRangeMember_t = Area_t::Range_t(Area_t::*) |
Type of pointer to Area_t data member of type Range_t. More... | |
Public Member Functions | |
AreaOwner (Area_t const &area) | |
Constructor: sets the covered area and no subpartitions. More... | |
bool | contains (double w, double d) const |
Returns whether the specified point is covered by this object. More... | |
Area_t const & | area () const |
Returns the covered area. More... | |
template<typename Stream > | |
void | dumpArea (Stream &&out) const |
Output the owned area into an output stream. More... | |
Private Attributes | |
Area_t | myArea |
Covered area. More... | |
A basic interface for objects owning an area.
Definition at line 39 of file Partitions.h.
using geo::part::AreaOwner::Area_t = lar::util::simple_geo::Rectangle<double> |
Type of area covered by the partition.
Definition at line 43 of file Partitions.h.
using geo::part::AreaOwner::AreaRangeMember_t = Area_t::Range_t (Area_t::*) |
Type of pointer to Area_t data member of type Range_t.
Definition at line 46 of file Partitions.h.
|
inline |
Constructor: sets the covered area and no subpartitions.
Definition at line 49 of file Partitions.h.
|
inline |
Returns the covered area.
Definition at line 56 of file Partitions.h.
References myArea.
Referenced by contains(), dumpArea(), makeTPCPartitionElement(), geo::part::details::RangeLowerBoundExtractor< Range >::operator()(), and geo::part::details::PartitionRangeLowerBoundExtractor< Range >::operator()().
|
inline |
Returns whether the specified point is covered by this object.
Definition at line 52 of file Partitions.h.
References area(), and lar::util::simple_geo::Rectangle< Data >::contains().
|
inline |
Output the owned area into an output stream.
Definition at line 60 of file Partitions.h.
References area().
Referenced by geo::part::PartitionBase::describeArea().
|
private |