Public Member Functions | Public Attributes | Protected Member Functions | Private Types | List of all members
gar::rec::alg::GenericHit< T > Class Template Reference

#include <NNClusters.h>

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

Public Member Functions

 GenericHit (T *hit, int index0=0)
 
 GenericHit (T *hit, GenericCluster< T > *cl, int index0=0)
 

Public Attributes

int Index0
 

Protected Member Functions

 GenericHit ()
 

Private Types

typedef T value_type
 
typedef std::pair< T *, GenericCluster< T > * > Pair
 

Detailed Description

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

Templated class for generic hit type objects that are to be clustered with an NN-like clustering algorithm. Holds a pointer to a generalized cluster object that is templated with the same type.

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

Definition at line 121 of file NNClusters.h.

Member Typedef Documentation

template<class T>
typedef std::pair< T*, GenericCluster<T>* > gar::rec::alg::GenericHit< T >::Pair
private

Definition at line 124 of file NNClusters.h.

template<class T>
typedef T gar::rec::alg::GenericHit< T >::value_type
private

Definition at line 123 of file NNClusters.h.

Constructor & Destructor Documentation

template<class T>
gar::rec::alg::GenericHit< T >::GenericHit ( T *  hit,
int  index0 = 0 
)
inline

Default c'tor takes a pointer to the original hit type object. The optioal index can be used to code nearest neighbour bins, e.g. in z-coordinate to speed up the clustering process.

Definition at line 131 of file NNClusters.h.

131  : Index0( index0 ) {
132  Pair::first = hit ;
133  Pair::second = 0 ;
134  }
second_as<> second
Type of time stored in seconds, in double precision.
Definition: spacetime.h:85
template<class T>
gar::rec::alg::GenericHit< T >::GenericHit ( T *  hit,
GenericCluster< T > *  cl,
int  index0 = 0 
)
inline

C'tor that also takes a pointer to the cluster this hit belongs to - in case seed hits/clusters are used.

Definition at line 138 of file NNClusters.h.

138  : Index0( index0 ) {
139  Pair::first = hit ;
140  Pair::second = cl ;
141  }
QAsciiDict< Entry > cl
second_as<> second
Type of time stored in seconds, in double precision.
Definition: spacetime.h:85
template<class T>
gar::rec::alg::GenericHit< T >::GenericHit ( )
protected

Don't allow default c'tor w/o hit

Member Data Documentation

template<class T>
int gar::rec::alg::GenericHit< T >::Index0

Index that can be used to code nearest neighbour bins, e.g. in z-coordinate to speed up the clustering process.

Definition at line 146 of file NNClusters.h.


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