LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 > i, std::pair< geo::WireID, float > j)
 

Private Attributes

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

Detailed Description

Definition at line 86 of file TrackCalorimetryAlg.cxx.

Constructor & Destructor Documentation

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

Definition at line 88 of file TrackCalorimetryAlg.cxx.

88  :
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 >  i,
std::pair< geo::WireID, float >  j 
)
inline

Definition at line 90 of file TrackCalorimetryAlg.cxx.

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

Member Data Documentation

geo::GeometryCore const& dist_projected::geom
private

Definition at line 101 of file TrackCalorimetryAlg.cxx.

recob::Hit const& dist_projected::hit
private

Definition at line 100 of file TrackCalorimetryAlg.cxx.


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