| 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 |
|
|---|
| 11 | class MReportCC;
|
|---|
| 12 | class MReportPyrometer;
|
|---|
| 13 | class MEventRate;
|
|---|
| 14 |
|
|---|
| 15 | class MHWeather : public MH
|
|---|
| 16 | {
|
|---|
| 17 | private:
|
|---|
| 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 |
|
|---|
| 39 | public:
|
|---|
| 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 |
|
|---|