00001 //=========================================================== 00002 // Select cells above threshold 00003 //=========================================================== 00004 00005 #ifndef ATLFAST_CELLSABOVETHRESHOLD_H 00006 #define ATLFAST_CELLSABOVETHRESHOLD_H 00007 #include "AtlfastAlgs/ICellSelector.h" 00008 #include "AtlfastEvent/Cell.h" 00009 00010 namespace Atlfast { 00015 class CellsAboveThreshold:public ICellSelector { 00016 public: 00021 CellsAboveThreshold(double ET=0.):m_thresh(ET){} 00022 ~CellsAboveThreshold(){} 00027 virtual bool operator()(const ICell* cptr) const 00028 { return (cptr->eT()>m_thresh) ? true:false;} 00029 private: 00031 double m_thresh; 00032 }; 00033 00034 } 00035 #endif 00036 00037 00038 00039 00040 00041