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

Last change on this file since 3903 was 3394, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 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
19 enum {
20 kIsLogy = BIT(18),
21 kUseEventNumber = BIT(20)
22 };
23
24 Bool_t fUseEventNumber;
25
26public:
27 MHVsTime(const char *rule=NULL);
28 ~MHVsTime();
29
30 void SetScale(Double_t scale) { fScale = scale; }
31
32 Int_t GetNbins() const;
33
34 void SetName(const char *name);
35 void SetTitle(const char *title);
36
37 Bool_t SetupFill(const MParList *pList);
38 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
39
40 TString GetDataMember() const;
41 TString GetRule() const;
42
43 /*
44// const TH1 *GetHist() const;
45// TH1 *GetHist();
46// TH1 *GetHistByName(const TString name="");
47*/
48 const TGraph *GetGraph() const { return fGraph; }
49 TGraph *GetGraph() { return fGraph; }
50
51 void SetUseEventNumber(Bool_t use = kTRUE) { fUseEventNumber = use; }
52
53 void Draw(Option_t *opt=NULL);
54
55 MParContainer *New() const;
56
57 ClassDef(MHVsTime, 1) // Generalized 1/2/3D-histogram for Mars variables
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.