AraWebPlotter/AraPlotUtils.h
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 #ifndef ARAPLOTUTILS_H 00011 #define ARAPLOTUTILS_H 00012 #include "TObject.h" 00013 00014 #define NUM_TIME_RANGES 5 00015 00016 class TCanvas; 00017 class TGraph; 00018 class TMultiGraph; 00019 00020 00021 namespace AraPlotTime { 00022 typedef enum EAraPlotTime{ 00023 kFullTime =1, 00024 kOneHour, 00025 kSixHours, 00026 kTwelveHours, 00027 kOneDay, 00028 kNoTime 00029 } AraPlotTime_t; 00030 00031 const char * getTimeString(AraPlotTime_t plotTime); 00032 const char * getTimeTitleString(AraPlotTime_t plotTime); 00033 UInt_t getStartTime(UInt_t currentTime,AraPlotTime_t plotTime); 00034 } 00035 00036 namespace AraPlotUtils { 00037 void setDefaultStyle(); 00038 int getNiceColour(int index); 00039 int getNiceMarker(int index); 00040 TMultiGraph* plotMultigraph(TCanvas *can, TGraph *gr[], 00041 Int_t numGraphs, 00042 const char *plotTitle=0, const char *xTitle=0, const char *yTitle=0, 00043 int timeDisplay=0); 00044 int updateTouchFile(char *touchFile, UInt_t unixTime); 00045 00046 } 00047 00048 //AraPlotTime_t operator++ (const AraPlotTime_t& x, int); 00049 00050 #endif //ARAPLOTUTILS_H
Generated on Tue Jul 16 16:58:01 2013 for ARA ROOT v3.10 Software by
