Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
geo::DriftPartitions::DriftVolume_t Struct Reference

Data associated to a single drift volume. More...

#include <DriftPartitions.h>

Public Types

using Comparer_t = details::Comparer< DriftVolume_t, double, DriftVolume_t::Position >
 Type of static object to compare DriftVolume_t objects. More...
 

Public Member Functions

 DriftVolume_t (std::unique_ptr< TPCPartition_t > &&part, Range_t const &cover)
 Constructor: imports the specified partition and drift coverage range. More...
 
bool coversDrift (double drift) const
 Returns whether this drift volume covers specified drift coordinate. More...
 

Static Public Member Functions

static double Position (DriftVolume_t const &part)
 Returns the drift coordinate of the specified partition. More...
 

Public Attributes

std::unique_ptr< TPCPartition_tpartition
 A partition of the volume in width and depth. More...
 
Range_t driftCoverage
 Interval of drift direction covered by this drift volume. More...
 

Detailed Description

Data associated to a single drift volume.

Definition at line 99 of file DriftPartitions.h.

Member Typedef Documentation

Type of static object to compare DriftVolume_t objects.

Definition at line 120 of file DriftPartitions.h.

Constructor & Destructor Documentation

geo::DriftPartitions::DriftVolume_t::DriftVolume_t ( std::unique_ptr< TPCPartition_t > &&  part,
Range_t const &  cover 
)
inline

Constructor: imports the specified partition and drift coverage range.

Definition at line 107 of file DriftPartitions.h.

108  : partition(std::move(part)), driftCoverage(cover) {}
std::unique_ptr< TPCPartition_t > partition
A partition of the volume in width and depth.
def move(depos, offset)
Definition: depos.py:107
Range_t driftCoverage
Interval of drift direction covered by this drift volume.

Member Function Documentation

bool geo::DriftPartitions::DriftVolume_t::coversDrift ( double  drift) const
inline

Returns whether this drift volume covers specified drift coordinate.

Definition at line 111 of file DriftPartitions.h.

112  { return driftCoverage.contains(drift); }
bool contains(Data_t v) const
Returns whether the specified value is within the range.
Definition: SimpleGeo.h:344
Range_t driftCoverage
Interval of drift direction covered by this drift volume.
static double geo::DriftPartitions::DriftVolume_t::Position ( DriftVolume_t const &  part)
inlinestatic

Returns the drift coordinate of the specified partition.

Definition at line 115 of file DriftPartitions.h.

116  { return part.driftCoverage.lower; }

Member Data Documentation

Range_t geo::DriftPartitions::DriftVolume_t::driftCoverage

Interval of drift direction covered by this drift volume.

Definition at line 103 of file DriftPartitions.h.

std::unique_ptr<TPCPartition_t> geo::DriftPartitions::DriftVolume_t::partition

A partition of the volume in width and depth.

Definition at line 101 of file DriftPartitions.h.


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