LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ClusterMatchTQ.cxx File Reference

Go to the source code of this file.

Classes

struct  CluLen
 

Namespaces

 cluster
 Cluster finding and building.
 

Functions

bool SortByLength (CluLen const &c1, CluLen const &c2)
 
bool SortByWire (art::Ptr< recob::Hit > const &h1, art::Ptr< recob::Hit > const &h2)
 

Function Documentation

bool SortByLength ( CluLen const &  c1,
CluLen const &  c2 
)

Definition at line 24 of file ClusterMatchTQ.cxx.

References CluLen::length.

Referenced by cluster::ClusterMatchTQ::ClusterMatch().

24  {
25  return (c1.length>c2.length);
26 }
TCanvas * c1
Definition: plotHisto.C:7
TCanvas * c2
Definition: plot_hist.C:75
bool SortByWire ( art::Ptr< recob::Hit > const &  h1,
art::Ptr< recob::Hit > const &  h2 
)

Definition at line 28 of file ClusterMatchTQ.cxx.

References geo::WireID::Wire, and recob::Hit::WireID().

Referenced by cluster::ClusterMatchTQ::ClusterMatch(), trkf::SpacePts::produce(), and vertex::VertexFinder2D::produce().

28  {
29  return h1->WireID().Wire < h2->WireID().Wire;
30 }
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:313