EvalRois.hh
Go to the documentation of this file.00001
00007 #ifndef EVAL_ROIS_h
00008 #define EVAL_ROIS_h
00009
00010 #include "ChannelModule.hh"
00011 #include <vector>
00012
00021 class EvalRois : public ChannelModule{
00022 public:
00023 EvalRois();
00024 ~EvalRois();
00025
00026 int Initialize();
00027 int Finalize();
00028 int Process(ChannelData* chdata);
00029
00030 static const std::string GetDefaultName(){ return "EvalRois"; }
00031
00033 void AddRoi(double t_start, double t_end){
00034 _regions.push_back(std::make_pair(t_start, t_end));
00035 }
00036
00038 void ClearRegions(){ _regions.clear(); }
00039
00041 int GetNRegions() const { return _regions.size(); }
00042
00043 private:
00044 std::vector<std::pair<double, double> > _regions;
00045
00046
00047 };
00048
00049 #endif