#include <NNClusters.h>
Public Types | |
typedef HitClass | hit_type |
Public Member Functions | |
NNDistance (float dCut) | |
bool | mergeHits (GenericHit< HitClass > *h0, GenericHit< HitClass > *h1) |
Protected Member Functions | |
NNDistance () | |
Protected Attributes | |
float | _dCutSquared |
float | _dCut |
Simple predicate class for NN clustering. Requires PosType* HitClass::Position(), e.g for CalorimeterHits use:
NNDistance<CaloHit,float> dist( myDistCut ) ;
Definition at line 256 of file NNClusters.h.
typedef HitClass gar::rec::alg::NNDistance< HitClass, PosType >::hit_type |
Required typedef for cluster algorithm
Definition at line 261 of file NNClusters.h.
|
inline |
|
protected |
|
inline |
Merge condition: true if distance is less than dCut given in the C'tor.
Definition at line 268 of file NNClusters.h.
|
protected |
Definition at line 285 of file NNClusters.h.
|
protected |
Definition at line 284 of file NNClusters.h.