source: trunk/MagicSoft/Mars/mhvstime/MHVsTime.h@ 4787

Last change on this file since 4787 was 4703, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHVsTime
2#define MARS_MHVsTime
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TGraph;
9class MDataChain;
10
11class MHVsTime : public MH
12{
13protected:
14 // Could be const but root < 3.02/06 doesn't like this...
15 TGraph *fGraph; // Histogram to fill
16 MDataChain *fData; // Object from which the data is filled
17 Double_t fScale; // Scale for axis (eg unit)
18 Int_t fMaxPts; // Maximum number of data points
19
20 enum {
21 kIsLogy = BIT(18),
22 kUseEventNumber = BIT(20)
23 };
24
25 Bool_t fUseEventNumber;
26
27public:
28 MHVsTime(const char *rule=NULL);
29 ~MHVsTime();
30
31 void SetScale(Double_t scale) { fScale = scale; }
32
33 Int_t GetNbins() const;
34
35 void SetName(const char *name);
36 void SetTitle(const char *title);
37
38 Bool_t SetupFill(const MParList *pList);
39 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
40
41 TString GetDataMember() const;
42 TString GetRule() const;
43
44 /*
45 const TH1 *GetHist() const;
46 TH1 *GetHist();
47 TH1 *GetHistByName(const TString name="");
48 */
49 const TGraph *GetGraph() const { return fGraph; }
50 TGraph *GetGraph() { return fGraph; }
51
52 void SetUseEventNumber(Bool_t use = kTRUE) { fUseEventNumber = use; }
53
54 void Draw(Option_t *opt=NULL);
55
56 MParContainer *New() const;
57
58 void SetMaxPts(Int_t n) { fMaxPts=n; }
59
60 ClassDef(MHVsTime, 1) // Generalized 1/2/3D-histogram for Mars variables
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.