All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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 306 of file HoughSeedFinderAlg.cxx.

Constructor & Destructor Documentation

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

Definition at line 308 of file HoughSeedFinderAlg.cxx.

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

Definition at line 121 of file SkeletonAlg.cxx.

Member Function Documentation

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

Definition at line 123 of file SkeletonAlg.cxx.

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

Definition at line 311 of file HoughSeedFinderAlg.cxx.

312  {
313  int planeToCheck = (m_plane + 1) % 3;
314 
315  return left->getHits()[planeToCheck]->WireID().Wire <
316  right->getHits()[planeToCheck]->WireID().Wire;
317  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:170

Member Data Documentation

size_t lar_cluster3d::OrderHitsAlongWire::m_plane
private

Definition at line 142 of file SkeletonAlg.cxx.

int lar_cluster3d::OrderHitsAlongWire::m_plane
private

Definition at line 320 of file HoughSeedFinderAlg.cxx.


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