QEnergyFilter.hh
Go to the documentation of this file.00001
00002 #ifndef _Q_ENERGY_FILTER_HH_
00003 #define _Q_ENERGY_FILTER_HH_
00004
00005 #include <list>
00006
00007 #include "QCoincidenceFilter.hh"
00008
00009 namespace Cuore { class QInterval; }
00010
00020 class QEnergyFilter: public QCoincidenceFilter
00021 {
00022 public:
00023 QEnergyFilter();
00024
00025 virtual ~QEnergyFilter();
00026
00031 virtual bool Filter(const QCoincidence& coinc) const;
00032
00037 virtual std::string Dump() const;
00038
00043 void SetCuts(const std::list<Cuore::QInterval>& tcuts) { fCuts = tcuts; }
00044
00045 private:
00046 std::list<Cuore::QInterval> fCuts;
00047
00048
00049
00050
00051 class tempClass
00052 {
00053 public:
00054 double fEnergyKeV;
00055 int fEventNumber;
00056
00057 bool operator<(const tempClass& other) const
00058 { return fEventNumber < other.fEventNumber; }
00059 };
00060
00061
00062 };
00063 #endif