source: releases/Mars.2014.05.26/mhist/MHRate.h@ 18459

Last change on this file since 18459 was 9153, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MHRate
2#define MARS_MHRate
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TGraph
8#include <TGraph.h>
9#endif
10#ifndef ROOT_TProfile
11#include <TProfile.h>
12#endif
13#ifndef MARS_MTime
14#include "MTime.h"
15#endif
16
17//class MTime;
18class MEventRate;
19class MPointingPos;
20
21class MHRate : public MH
22{
23private:
24 TGraph fRateTime; // Graph of rate versus time
25 TProfile fRateZd; // Profile of rate vs Zd
26 TH1D fRate; // Rate histogram
27
28 //MTime *fTime; //!
29 MPointingPos *fPointPos; //!
30 MEventRate *fEvtRate; //!
31
32 MTime fLast; //!
33
34 Double_t fMean; //!
35 Int_t fCounter; //!
36
37 void ResetGraph(TGraph &g) const;
38 void InitGraph(TGraph &g) const;
39 void AddPoint(TGraph &g, Double_t x, Double_t y) const;
40 void DrawGraph(TGraph &g, const char *y=0) const;
41 //void UpdateRightAxis(TGraph &g) const;
42 //void DrawRightAxis(const char *title) const;
43
44public:
45 MHRate(const char *name=NULL, const char *title=NULL);
46
47 Bool_t SetupFill(const MParList *plist);
48 Int_t Fill(const MParContainer *par, const Stat_t w=1);
49
50 void Draw(Option_t *opt="");
51 void Paint(Option_t *opt="");
52
53 ClassDef(MHRate, 1) // Histogram to display information about rate
54};
55
56#endif
57
58
Note: See TracBrowser for help on using the repository browser.