ARA ROOT v3.11 Software

AraWebPlotter/AraTimeHistoHandler.h

00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #ifndef ARATIMEHISTOHANDLER_H
00009 #define ARATIMEHISTOHANDLER_H
00010 
00011 #include "TNamed.h"
00012 #include "TGraphErrors.h"
00013 #include "TGraph.h"
00014 #include "AraPlotUtils.h"
00015 //#include <zlib.h>
00016 
00017 #include <map>
00018 
00019 typedef std::pair<Int_t,Double_t> variablePair;
00020 typedef std::map<UInt_t,variablePair> variableMap;
00021 
00022 class AraTimeHistoHandler : public TNamed
00023 {
00024  public:
00025    AraTimeHistoHandler();
00026    AraTimeHistoHandler(const char *name, const char *title, Int_t binWidth=60);
00027    void addVariable(UInt_t unixTime, Double_t variable);
00028    
00029    void addAraTimeHistoHandler(AraTimeHistoHandler *other);
00030 
00031   //  TGraph *getAllTimeGraph(int numPoints=60);
00032    UInt_t getLastTime();
00033    TGraph *getTimeGraph(UInt_t firstTime, UInt_t lastTime, Int_t numPoints=60);
00034    TGraph *getTimeGraph(AraPlotTime::AraPlotTime_t plotTime, Int_t numPoints=60);
00035    TGraph *getCurrentTimeGraph(AraPlotTime::AraPlotTime_t plotTime, Int_t numPoints=60);
00036 
00037 
00038  private:
00039    Int_t fBinWidthInSeconds;
00040    variableMap theMap;
00041    variableMap theMapSq;
00042    
00043    
00044   ClassDef(AraTimeHistoHandler,1);
00045 
00046 };
00047 
00048 #endif //ARATIMEHISTOHANDLER_H

Generated on Fri Jul 26 15:27:35 2013 for ARA ROOT v3.11 Software by doxygen 1.4.7