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

Public Member Functions

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

Private Attributes

recob::Hit const & hit
 
geo::WireReadoutGeom const & wireReadoutGeom
 

Detailed Description

Definition at line 84 of file TrackCalorimetryAlg.cxx.

Constructor & Destructor Documentation

dist_projected::dist_projected ( recob::Hit const &  h,
geo::WireReadoutGeom const &  wireReadoutGeom 
)
inline

Definition at line 86 of file TrackCalorimetryAlg.cxx.

88  {}
geo::WireReadoutGeom const & wireReadoutGeom
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 89 of file TrackCalorimetryAlg.cxx.

90  {
91  float dw_i = ((int)(i.first.Wire) - (int)(hit.WireID().Wire)) *
92  wireReadoutGeom.Plane(i.first.asPlaneID()).WirePitch();
93  float dw_j = ((int)(j.first.Wire) - (int)(hit.WireID().Wire)) *
94  wireReadoutGeom.Plane(j.first.asPlaneID()).WirePitch();
95  float dt_i = i.second - hit.PeakTime();
96  float dt_j = j.second - hit.PeakTime();
97  return std::hypot(dw_i, dt_i) < std::hypot(dw_j, dt_j);
98  }
geo::WireReadoutGeom const & wireReadoutGeom
Detector simulation of raw signals on wires.
PlaneGeo const & Plane(TPCID const &tpcid, View_t view) const
Returns the specified wire.

Member Data Documentation

recob::Hit const& dist_projected::hit
private

Definition at line 101 of file TrackCalorimetryAlg.cxx.

geo::WireReadoutGeom const& dist_projected::wireReadoutGeom
private

Definition at line 102 of file TrackCalorimetryAlg.cxx.


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