All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
BEGIN_PROLOG g
while getopts h
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::WireID WireID() const
Definition: Hit.h:233
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:580
geo::Length_t WirePitch(geo::PlaneID const &planeid) const
Returns the distance between two consecutive wires.
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:218
recob::Hit const & hit

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: