Public Member Functions | List of all members
gar::rec::alg::GenericCluster< T > Class Template Reference

#include <NNClusters.h>

Inheritance diagram for gar::rec::alg::GenericCluster< T >:

Public Member Functions

 GenericCluster (GenericHit< T > *hit)
 
void addHit (GenericHit< T > *hit)
 
void mergeClusters (GenericCluster< T > *cl)
 

Detailed Description

template<class T>
class gar::rec::alg::GenericCluster< T >

Templated class for generic clusters of GenericHits that are clustered with an NN-like clustering algorithm. Effectively this is just a list of hits.

See also
GenericHit
Author
F.Gaede (DESY)
Version
Id
NNClusters.h,v 1.5 2007-06-05 15:35:49 engels Exp

Definition at line 22 of file NNClusters.h.

Constructor & Destructor Documentation

template<class T>
gar::rec::alg::GenericCluster< T >::GenericCluster ( GenericHit< T > *  hit)
inline

C'tor that takes the first hit

Definition at line 167 of file NNClusters.h.

167  {
168  addHit( hit ) ;
169  }
void addHit(GenericHit< T > *hit)
Definition: NNClusters.h:172
Detector simulation of raw signals on wires.

Member Function Documentation

template<class T>
void gar::rec::alg::GenericCluster< T >::addHit ( GenericHit< T > *  hit)
inline

Add a hit to this cluster - updates the hit's pointer to cluster

Definition at line 172 of file NNClusters.h.

172  {
173 
174  hit->second = this ;
175  this->push_back( hit ) ;
176 
177  }
fInnerVessel push_back(Point(-578.400000, 0.000000, 0.000000))
Detector simulation of raw signals on wires.
template<class T>
void gar::rec::alg::GenericCluster< T >::mergeClusters ( GenericCluster< T > *  cl)
inline

Merges all hits from the other cluster cl into this cluster

Definition at line 180 of file NNClusters.h.

180  {
181 
182  for( typename GenericCluster<T>::iterator it = cl->begin() ; it != cl->end() ; it++ ){
183  (*it)->second = this ;
184  }
185  this->merge( *cl ) ;
186  }
intermediate_table::iterator iterator
QAsciiDict< Entry > cl

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