Line | |
---|
1 | #ifndef MARS_MHVsTime
|
---|
2 | #define MARS_MHVsTime
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TGraph;
|
---|
9 | class MDataChain;
|
---|
10 |
|
---|
11 | class MHVsTime : public MH
|
---|
12 | {
|
---|
13 | protected:
|
---|
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 |
|
---|
27 | public:
|
---|
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.