Public Member Functions | List of all members
lar_cluster3d::SeedFinderAlgBase::Sort3DHitsByAbsArcLen3D Struct Reference

Define a comparator which will sort hits by the absolute value of arc length so hits are ordered closed to PCA origin to furthest. More...

#include <SeedFinderAlgBase.h>

Public Member Functions

bool operator() (const reco::ClusterHit3D *left, const reco::ClusterHit3D *right)
 
bool operator() (const reco::ClusterHit3D *left, const reco::ClusterHit3D *right)
 

Detailed Description

Define a comparator which will sort hits by the absolute value of arc length so hits are ordered closed to PCA origin to furthest.

Definition at line 60 of file SeedFinderAlgBase.h.

Member Function Documentation

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

Definition at line 55 of file SeedFinderAlgBase.h.

56  {
57  return fabs(left->getArclenToPoca()) < fabs(right->getArclenToPoca());
58  }
float getArclenToPoca() const
Definition: Cluster3D.h:170
bool lar_cluster3d::SeedFinderAlgBase::Sort3DHitsByAbsArcLen3D::operator() ( const reco::ClusterHit3D left,
const reco::ClusterHit3D right 
)
inline

Definition at line 62 of file SeedFinderAlgBase.h.

63  {
64  return fabs(left->getArclenToPoca()) < fabs(right->getArclenToPoca());
65  }
float getArclenToPoca() const
Definition: Cluster3D.h:170

The documentation for this struct was generated from the following file: