Classes | |
| class | AlgCluster |
| class | EnergyCut |
| class | GenericCluster |
| class | GenericClusterVec |
| class | GenericHit |
| class | GenericHitVec |
| class | KNNClusterAlg |
| class | NNDistance |
| class | StripSplitterAlg |
| class | XIndex |
Typedefs | |
| typedef std::vector< gar::rec::CaloHit * > | CaloHitVec |
| typedef std::vector< gar::rec::Track * > | TrackVec |
| typedef std::vector< gar::rec::Cluster * > | ClusterVec |
Functions | |
| template<class In , class Out , class Pred > | |
| void | cluster (In first, In last, Out result, Pred *pred) |
| template<class T , class Pred > | |
| void | addToGenericHitVec (GenericHitVec< T > &v, CaloHitVec vec, Pred pred) |
| template<class T , class Pred , class Order > | |
| void | addToGenericHitVec (GenericHitVec< T > &v, CaloHitVec vec, Pred pred, Order order) |
Definition at line 36 of file KNNClusterAlg.h.
Definition at line 38 of file KNNClusterAlg.h.
Definition at line 37 of file KNNClusterAlg.h.
| void gar::rec::alg::addToGenericHitVec | ( | GenericHitVec< T > & | v, |
| CaloHitVec | vec, | ||
| Pred | pred | ||
| ) |
Helper method that copies all hit pointers from an LCIO collection that fullfill the predicate to a GenericHitVec. The predicate can either be a bool funtion or functor that takes a T*, e.g.
Definition at line 208 of file NNClusters.h.
| void gar::rec::alg::addToGenericHitVec | ( | GenericHitVec< T > & | v, |
| CaloHitVec | vec, | ||
| Pred | pred, | ||
| Order | order | ||
| ) |
Same as addToGenericHitVec(GenericHitVec<T>& v, CaloHitList vec, Pred pred ) except that an additional order function/functor can be given that defines the index of the hit, e.g.
Definition at line 226 of file NNClusters.h.
| void gar::rec::alg::cluster | ( | In | first, |
| In | last, | ||
| Out | result, | ||
| Pred * | pred | ||
| ) |
Simple nearest neighbour (NN) clustering algorithm. Users have to provide an input iterator of GenericHit objects and an output iterator for the clusters found. The predicate has to have a method with the following signature: bool mergeHits( GenericHit<T>*, GenericHit<T>*) where T is the original (LCIO) type of the hit objects. All pairs of hits for which this method returns 'true' will be merged into one output cluster - all other pairs of hits will be in distinct clusters.
$see GenericCluster
Definition at line 41 of file NNClusters.h.
1.8.11