Public Member Functions | Private Attributes | List of all members
lar_cluster3d::OrderHitsAlongWire Class Reference

Public Member Functions

 OrderHitsAlongWire (int view=0)
 
bool operator() (const reco::ClusterHit3D *left, const reco::ClusterHit3D *right)
 
 OrderHitsAlongWire (int view=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)
 
 OrderHitsAlongWire (int plane=0)
 
bool operator() (const reco::ClusterHit3D *left, const reco::ClusterHit3D *right)
 

Private Attributes

int m_view
 
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  view = 0)
inline

Definition at line 285 of file HoughSeedFinderAlg.cxx.

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

Definition at line 127 of file SkeletonAlg.cxx.

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

Definition at line 306 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:171
bool lar_cluster3d::OrderHitsAlongWire::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 129 of file SkeletonAlg.cxx.

130  {
131  int viewToCheck = (m_view + 1) % 3;
132 
133  return left->getHits()[viewToCheck]->getHit().WireID().Wire < right->getHits()[viewToCheck]->getHit().WireID().Wire;
134  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:171
bool lar_cluster3d::OrderHitsAlongWire::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 287 of file HoughSeedFinderAlg.cxx.

288  {
289  int viewToCheck = (m_view + 1) % 3;
290 
291  return left->getHits()[viewToCheck]->getHit().WireID().Wire < right->getHits()[viewToCheck]->getHit().WireID().Wire;
292  }
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:171
bool lar_cluster3d::OrderHitsAlongWire::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 309 of file HoughSeedFinderAlg.cxx.

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

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 318 of file HoughSeedFinderAlg.cxx.

int lar_cluster3d::OrderHitsAlongWire::m_view
private

Definition at line 294 of file HoughSeedFinderAlg.cxx.


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