LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
dist_projected Class Reference

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 87 of file TrackCalorimetryAlg.cxx.

Constructor & Destructor Documentation

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

Definition at line 89 of file TrackCalorimetryAlg.cxx.

89 : hit(h), geom(g) {}
geo::GeometryCore const & geom
recob::Hit const & hit

Member Function Documentation

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

Definition at line 90 of file TrackCalorimetryAlg.cxx.

91  {
92  float dw_i =
93  ((int)(i.first.Wire) - (int)(hit.WireID().Wire)) * geom.WirePitch(i.first.asPlaneID());
94  float dw_j =
95  ((int)(j.first.Wire) - (int)(hit.WireID().Wire)) * geom.WirePitch(j.first.asPlaneID());
96  float dt_i = i.second - hit.PeakTime();
97  float dt_j = j.second - hit.PeakTime();
98  return std::hypot(dw_i, dt_i) < std::hypot(dw_j, dt_j);
99  }
geo::GeometryCore const & geom
Detector simulation of raw signals on wires.
Length_t WirePitch(PlaneID const &planeid=plane_zero) const
Returns the distance between two consecutive wires.

Member Data Documentation

geo::GeometryCore const& dist_projected::geom
private

Definition at line 103 of file TrackCalorimetryAlg.cxx.

recob::Hit const& dist_projected::hit
private

Definition at line 102 of file TrackCalorimetryAlg.cxx.


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