Public Member Functions | Private Attributes | List of all members
dist_projected Class Reference

Public Member Functions

 dist_projected (recob::Hit const &h, geo::GeometryCore const &g)
 
bool operator() (std::pair< geo::WireID, float > i, std::pair< geo::WireID, float > j)
 

Private Attributes

recob::Hit const & hit
 
geo::GeometryCore const & geom
 

Detailed Description

Definition at line 91 of file TrackCalorimetryAlg.cxx.

Constructor & Destructor Documentation

dist_projected::dist_projected ( recob::Hit const &  h,
geo::GeometryCore const &  g 
)
inline

Definition at line 93 of file TrackCalorimetryAlg.cxx.

93 : hit(h), geom(g) {}
geo::GeometryCore const & geom
static constexpr double g
Definition: Units.h:144
recob::Hit const & hit

Member Function Documentation

bool dist_projected::operator() ( std::pair< geo::WireID, float >  i,
std::pair< geo::WireID, float >  j 
)
inline

Definition at line 95 of file TrackCalorimetryAlg.cxx.

96  {
97  float dw_i = ((int)(i.first.Wire) - (int)(hit.WireID().Wire)) * geom.WirePitch(i.first.Plane);
98  float dw_j = ((int)(j.first.Wire) - (int)(hit.WireID().Wire)) * geom.WirePitch(j.first.Plane);
99  float dt_i = i.second - hit.PeakTime();
100  float dt_j = j.second - hit.PeakTime();
101  return std::hypot(dw_i, dt_i) < std::hypot(dw_j, dt_j);
102  }
geo::GeometryCore const & geom
geo::Length_t WirePitch(geo::PlaneID const &planeid) const
Returns the distance between two consecutive wires.
std::enable_if_t< std::is_arithmetic_v< T >, T > hypot(T x, T y)
Definition: hypot.h:60
Detector simulation of raw signals on wires.

Member Data Documentation

geo::GeometryCore const& dist_projected::geom
private

Definition at line 106 of file TrackCalorimetryAlg.cxx.

recob::Hit const& dist_projected::hit
private

Definition at line 105 of file TrackCalorimetryAlg.cxx.


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