LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 97 of file DriftPartitions.h.

Member Typedef Documentation

Type of static object to compare DriftVolume_t objects.

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

105  : partition(std::move(part)), driftCoverage(cover)
106  {}
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 109 of file DriftPartitions.h.

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

109 { return driftCoverage.contains(drift); }
bool contains(Data_t v) const
Returns whether the specified value is within the range.
Definition: SimpleGeo.h:377
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 112 of file DriftPartitions.h.

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

112 { 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 101 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 99 of file DriftPartitions.h.


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