LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 37 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 41 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 44 of file Partitions.h.
|
inline |
Constructor: sets the covered area and no subpartitions.
Definition at line 47 of file Partitions.h.
|
inline |
Returns the covered area.
Definition at line 53 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 50 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 57 of file Partitions.h.
References area().
Referenced by geo::part::PartitionBase::describeArea().
|
private |