LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
reco3d Namespace Reference

Classes

struct  ChannelDoublet
 
struct  HitOrChan
 
struct  HitTriplet
 
struct  InductionWireWithXPos
 
class  IntersectionCache
 
class  PlotSpacePoints
 
class  SpacePointSolver
 
class  TripletFinder
 
struct  XYZ
 

Functions

bool LessThanXHit (const ChannelDoublet &a, const ChannelDoublet &b)
 
bool SameXHit (const ChannelDoublet &a, const ChannelDoublet &b)
 

Function Documentation

bool reco3d::LessThanXHit ( const ChannelDoublet a,
const ChannelDoublet b 
)

Definition at line 133 of file TripletFinder.cxx.

References reco3d::ChannelDoublet::a, reco3d::HitOrChan::chan, and reco3d::HitOrChan::hit.

Referenced by reco3d::TripletFinder::Triplets().

134  {
135  // Make sure the bad hits get sorted too
136  if(a.a.hit == 0 && b.a.hit == 0) return a.a.chan < b.a.chan;
137  // But mostly just order the real hits (in some arbitrary order)
138  return a.a.hit < b.a.hit;
139  }
bool reco3d::SameXHit ( const ChannelDoublet a,
const ChannelDoublet b 
)

Definition at line 141 of file TripletFinder.cxx.

References reco3d::ChannelDoublet::a, reco3d::HitOrChan::chan, and reco3d::HitOrChan::hit.

Referenced by reco3d::TripletFinder::Triplets().

142  {
143  if(a.a.hit == 0 && b.a.hit == 0) return a.a.chan == b.a.chan;
144  return a.a.hit == b.a.hit;
145  }