00001 00002 #ifndef _Q_TOTALENERGYFILTER_HH_ 00003 #define _Q_TOTALENERGYFILTER_HH_ 00004 00005 00006 #include "QInterval.hh" 00007 #include "QCoincidenceFilter.hh" 00008 00009 00010 namespace Cuore { class QInterval; } 00011 00012 00024 class QTotalEnergyFilter: public QCoincidenceFilter{ 00025 public: 00026 00027 QTotalEnergyFilter(); 00028 00029 virtual ~QTotalEnergyFilter(); 00030 00034 virtual bool Filter(const QCoincidence& coinc) const; 00035 00039 void SetEnergyCut(const Cuore::QInterval& eCut) 00040 { fCut = eCut;} 00041 00046 virtual std::string Dump() const ; 00047 00048 private: 00049 00050 00051 double fTotalEnergy; 00052 Cuore::QInterval fCut; 00053 00054 }; 00055 #endif