LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 91 of file DriftPartitions.h.

Member Typedef Documentation

Type of static object to compare DriftVolume_t objects.

Definition at line 112 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 99 of file DriftPartitions.h.

100  : partition(std::move(part)), driftCoverage(cover) {}
std::unique_ptr< TPCPartition_t > partition
A partition of the volume in width and depth.
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 103 of file DriftPartitions.h.

References lar::util::simple_geo::Range< Data >::contains().

104  { 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 107 of file DriftPartitions.h.

References driftCoverage, and lar::util::simple_geo::Range< Data >::lower.

108  { return part.driftCoverage.lower; }
TString part[npart]
Definition: Style.C:32

Member Data Documentation

Range_t geo::DriftPartitions::DriftVolume_t::driftCoverage

Interval of drift direction covered by this drift volume.

Definition at line 95 of file DriftPartitions.h.

Referenced by Position().

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

A partition of the volume in width and depth.

Definition at line 93 of file DriftPartitions.h.


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