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

#include <NNClusters.h>

Public Member Functions

 EnergyCut (double eCut)
 
bool operator() (T *hit)
 

Protected Member Functions

 EnergyCut ()
 

Protected Attributes

double _eCut
 

Detailed Description

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

Simple predicate class for applying an energy cut to the objects of type T. Requires float/double T::Energy().

Definition at line 293 of file NNClusters.h.

Constructor & Destructor Documentation

template<class T>
gar::rec::alg::EnergyCut< T >::EnergyCut ( double  eCut)
inline

Definition at line 295 of file NNClusters.h.

295 : _eCut( eCut ) {}
template<class T>
gar::rec::alg::EnergyCut< T >::EnergyCut ( )
inlineprotected

Definition at line 301 of file NNClusters.h.

301 {} ;

Member Function Documentation

template<class T>
bool gar::rec::alg::EnergyCut< T >::operator() ( T *  hit)
inline

Definition at line 297 of file NNClusters.h.

297 { return hit->Energy() > _eCut ; }
Detector simulation of raw signals on wires.

Member Data Documentation

template<class T>
double gar::rec::alg::EnergyCut< T >::_eCut
protected

Definition at line 301 of file NNClusters.h.


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