LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
lar_cluster3d::OrderHitsAlongWire Class Reference

Public Member Functions

 OrderHitsAlongWire (int plane=0)
 
bool operator() (const reco::ClusterHit3D *left, const reco::ClusterHit3D *right)
 
 OrderHitsAlongWire (int plane=0)
 
bool operator() (const reco::ClusterHit3D *left, const reco::ClusterHit3D *right)
 

Private Attributes

int m_plane
 
size_t m_plane
 

Detailed Description

Definition at line 282 of file HoughSeedFinderAlg.cxx.

Constructor & Destructor Documentation

lar_cluster3d::OrderHitsAlongWire::OrderHitsAlongWire ( int  plane = 0)
inline

Definition at line 285 of file HoughSeedFinderAlg.cxx.

lar_cluster3d::OrderHitsAlongWire::OrderHitsAlongWire ( int  plane = 0)
inline

Definition at line 126 of file SkeletonAlg.cxx.

Member Function Documentation

bool lar_cluster3d::OrderHitsAlongWire::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 128 of file SkeletonAlg.cxx.

References reco::ClusterHit3D::getHits().

129  {
130  for(const auto leftHit : left->getHits())
131  {
132  if (leftHit->getHit().WireID().Plane == m_plane)
133  {
134  for(const auto rightHit : right->getHits())
135  {
136  if (rightHit->getHit().WireID().Plane == m_plane)
137  {
138  return leftHit->getHit().WireID().Wire < rightHit->getHit().WireID().Wire;
139  }
140  }
141  return true;
142  }
143  }
144  return false;
145  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:158
bool lar_cluster3d::OrderHitsAlongWire::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 287 of file HoughSeedFinderAlg.cxx.

References reco::ClusterHit3D::getHits().

288  {
289  int planeToCheck = (m_plane + 1) % 3;
290 
291  return left->getHits()[planeToCheck]->getHit().WireID().Wire < right->getHits()[planeToCheck]->getHit().WireID().Wire;
292  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:158

Member Data Documentation

size_t lar_cluster3d::OrderHitsAlongWire::m_plane
private

Definition at line 147 of file SkeletonAlg.cxx.

int lar_cluster3d::OrderHitsAlongWire::m_plane
private

Definition at line 294 of file HoughSeedFinderAlg.cxx.


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