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

Last change on this file since 9484 was 9153, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.6 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 MReportPyrometer;
13class MEventRate;
14
15class MHWeather : public MH
16{
17private:
18 TGraph fHumidity; // Humidity from weather station
19 TGraph fTemperature; // Temperature from weather station
20 TGraph fWindSpeed; // Wind Speed from weather station
21
22 TGraph fEventRate; // Event rate from event times
23
24 TGraph fCloudiness; // Cloudiness from Pyrometer
25 TGraph fTempAir; // Temperature of the air from Pyrometer
26 TGraph fTempSky; // Temperature of the sky from Pyrometer
27
28 MReportCC *fReportCC; //! CC report with data from weather station
29 MReportPyrometer *fReportPyro; //! Pyrometer report
30 MEventRate *fRate; //! Event rate
31
32 void ResetGraph(TGraph &g) const;
33 void InitGraph(TGraph &g) const;
34 void AddPoint(TGraph &g, Double_t x, Double_t y) const;
35 void DrawGraph(TGraph &g, const char *y=0) const;
36 void UpdateRightAxis(TGraph &g) const;
37 void DrawRightAxis(const char *title, Int_t col=kBlack) const;
38
39public:
40 MHWeather(const char *name=NULL, const char *title=NULL);
41
42 Bool_t SetupFill(const MParList *plist);
43 Int_t Fill(const MParContainer *par, const Stat_t w=1);
44
45 // If this is needed be aware that it would be called twice in star
46 // Bool_t Finalize()
47
48 void Draw(Option_t *opt="");
49 void Paint(Option_t *opt="");
50
51 ClassDef(MHWeather, 2) // Histogram to display weather and pyrometer data
52};
53
54#endif
55
56
Note: See TracBrowser for help on using the repository browser.