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 00042 void Invert(bool invert) { fInvert = invert; } 00047 virtual std::string Dump() const ; 00048 00049 private: 00050 00051 00052 double fTotalEnergy; 00053 Cuore::QInterval fCut; 00054 bool fInvert; 00055 }; 00056 #endif