00001 #ifndef __EMCTRACEDFEMPLOTTER_H__ 00002 #define __EMCTRACEDFEMPLOTTER_H__ 00003 00004 class emcTracedFEM; 00005 class TGraph; 00006 00007 #include <ctime> 00008 #include <vector> 00009 00012 class emcTracedFEMPlotter 00013 { 00014 public: 00015 00017 emcTracedFEMPlotter(const emcTracedFEM& tf, time_t tics0); 00018 00021 emcTracedFEMPlotter(const emcTracedFEM& tf, int tics0); 00022 00024 emcTracedFEMPlotter(const emcTracedFEM& tf); 00025 00029 TGraph* CopyGraph(int ichannel); 00030 00032 ~emcTracedFEMPlotter(); 00033 00035 bool Draw(int ichannel, const char* option=""); 00036 00039 bool Write(int ichannel, const char* name); 00040 00041 private: 00043 emcTracedFEMPlotter(const emcTracedFEMPlotter&); 00044 00046 void MakeGraph(int ichannel); 00047 00049 bool ValidChannel(int ichannel) const; 00050 00051 private: 00052 emcTracedFEM* fTracedFEM; 00053 std::vector<TGraph*> fGraphs; 00054 time_t fTics0; 00055 }; 00056 00057 #endif