source: trunk/MagicSoft/Mars/mhist/MHWeather.h@ 8028

Last change on this file since 8028 was 7035, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MHWeather
2#define MARS_MHWeather
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TGraph
8#include <TGraph.h>
9#endif
10
11class MReportCC;
12class MEventRate;
13
14class MHWeather : public MH
15{
16private:
17 TGraph fHumidity; //
18 TGraph fTemperature; //
19 TGraph fWindSpeed; //
20 TGraph fSolarRadiation; //
21 TGraph fEventRate; //
22
23 MReportCC *fReport; //!
24 MEventRate *fRate; //!
25
26 void ResetGraph(TGraph &g) const;
27 void InitGraph(TGraph &g) const;
28 void AddPoint(TGraph &g, Double_t x, Double_t y) const;
29 void DrawGraph(TGraph &g, const char *y=0) const;
30 void UpdateRightAxis(TGraph &g) const;
31 void DrawRightAxis(const char *title) const;
32
33public:
34 MHWeather(const char *name=NULL, const char *title=NULL);
35
36 Bool_t SetupFill(const MParList *plist);
37 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
38
39 void Draw(Option_t *opt="");
40 void Paint(Option_t *opt="");
41
42 ClassDef(MHWeather, 1) // Histogram to display weather data
43};
44
45#endif
46
47
Note: See TracBrowser for help on using the repository browser.