LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
TPCwithArea_t Struct Reference
Inheritance diagram for TPCwithArea_t:
geo::part::AreaOwner

Public Types

using Area_t = geo::part::AreaOwner::Area_t
 
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

 TPCwithArea_t (Area_t area, geo::TPCGeo const *TPC)
 
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...
 

Public Attributes

geo::TPCGeo const * TPC = nullptr
 

Detailed Description

Definition at line 368 of file DriftPartitions.cxx.

Member Typedef Documentation

Type of pointer to Area_t data member of type Range_t.

Definition at line 44 of file Partitions.h.

Constructor & Destructor Documentation

TPCwithArea_t::TPCwithArea_t ( Area_t  area,
geo::TPCGeo const *  TPC 
)
inline

Definition at line 373 of file DriftPartitions.cxx.

A basic interface for objects owning an area.
Definition: Partitions.h:37
geo::TPCGeo const * TPC
Area_t const & area() const
Returns the covered area.
Definition: Partitions.h:53

Member Function Documentation

bool geo::part::AreaOwner::contains ( double  w,
double  d 
) const
inlineinherited

Returns whether the specified point is covered by this object.

Definition at line 50 of file Partitions.h.

References geo::part::AreaOwner::area(), and lar::util::simple_geo::Rectangle< Data >::contains().

50 { return area().contains(w, d); }
bool contains(Data_t w, Data_t d) const
Returns whether the specified point is in the area.
Definition: SimpleGeo.h:442
Float_t d
Definition: plot.C:235
Area_t const & area() const
Returns the covered area.
Definition: Partitions.h:53
Float_t w
Definition: plot.C:20
template<typename Stream >
void geo::part::AreaOwner::dumpArea ( Stream &&  out) const
inlineinherited

Output the owned area into an output stream.

Definition at line 57 of file Partitions.h.

References geo::part::AreaOwner::area().

Referenced by geo::part::PartitionBase::describeArea().

58  {
59  std::forward<Stream>(out) << area();
60  }
Area_t const & area() const
Returns the covered area.
Definition: Partitions.h:53

Member Data Documentation

geo::TPCGeo const* TPCwithArea_t::TPC = nullptr

Definition at line 371 of file DriftPartitions.cxx.

Referenced by makeTPCPartitionElement().


The documentation for this struct was generated from the following file: