TriggerHistory.hh
00001 #ifndef TRIGGERHISTORY_h
00002 #define TRIGGERHISTORY_h
00003
00004 #include "BaseModule.hh"
00005 #include "stdint.h"
00006
00007 class TCanvas;
00008 class TGraphErrors;
00009 class TMultiGraph;
00010 class TLegend;
00011 class RootGraphix;
00012
00013 class TriggerHistory : public BaseModule{
00014 public:
00015 TriggerHistory(const std::string& name=GetDefaultName());
00016 ~TriggerHistory();
00017
00018 static std::string GetDefaultName(){ return "TriggerHistory"; }
00019
00020 int Initialize();
00021 int Process(EventPtr evt);
00022 int Finalize();
00023
00024 private:
00025 RootGraphix* _graphix;
00026 TCanvas* _canvas;
00027 TGraphErrors* _triggergraph;
00028 TGraphErrors* _eventgraph;
00029 TMultiGraph* _multigraph;
00030 TLegend* _legend;
00031 uint32_t _last_update_time;
00032 uint32_t _last_triggerid;
00033 uint32_t _last_eventid;
00034 int _update_interval;
00035 int _max_points;
00036 bool _draw_errors_x;
00037 bool _draw_errors_y;
00038 bool _connect_points;
00039 };
00040
00041
00042 #endif