LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 260 of file HoughSeedFinderAlg.cxx.

Constructor & Destructor Documentation

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

Definition at line 262 of file HoughSeedFinderAlg.cxx.

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

Definition at line 112 of file SkeletonAlg.cxx.

Member Function Documentation

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

Definition at line 114 of file SkeletonAlg.cxx.

References reco::ClusterHit3D::getHits().

115  {
116  for (const auto leftHit : left->getHits()) {
117  if (leftHit->WireID().Plane == m_plane) {
118  for (const auto rightHit : right->getHits()) {
119  if (rightHit->WireID().Plane == m_plane) {
120  return leftHit->WireID().Wire < rightHit->WireID().Wire;
121  }
122  }
123  return true;
124  }
125  }
126  return false;
127  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:168
bool lar_cluster3d::OrderHitsAlongWire::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 264 of file HoughSeedFinderAlg.cxx.

References reco::ClusterHit3D::getHits().

265  {
266  int planeToCheck = (m_plane + 1) % 3;
267 
268  return left->getHits()[planeToCheck]->WireID().Wire <
269  right->getHits()[planeToCheck]->WireID().Wire;
270  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:168

Member Data Documentation

size_t lar_cluster3d::OrderHitsAlongWire::m_plane
private

Definition at line 130 of file SkeletonAlg.cxx.

int lar_cluster3d::OrderHitsAlongWire::m_plane
private

Definition at line 273 of file HoughSeedFinderAlg.cxx.


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