1 | #ifndef MARS_MH
|
---|
2 | #define MARS_MH
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1;
|
---|
9 | class TH2;
|
---|
10 | class TH3;
|
---|
11 | class TAxis;
|
---|
12 | class TArrayD;
|
---|
13 | class TCanvas;
|
---|
14 |
|
---|
15 | class MBinning;
|
---|
16 | class MParList;
|
---|
17 |
|
---|
18 | class MH : public MParContainer
|
---|
19 | {
|
---|
20 | public:
|
---|
21 | MH(const char *name=NULL, const char *title=NULL);
|
---|
22 |
|
---|
23 | virtual Bool_t SetupFill(const MParList *pList) { return kTRUE; }
|
---|
24 | virtual Bool_t Fill(const MParContainer *par) = 0;
|
---|
25 |
|
---|
26 | static TCanvas *MakeDefCanvas(TString name="", const char *title="",
|
---|
27 | const UInt_t w=700, const UInt_t h=500);
|
---|
28 | static TCanvas *MakeDefCanvas(const TObject *obj,
|
---|
29 | const UInt_t w=700, const UInt_t h=500);
|
---|
30 |
|
---|
31 | static void SetBinning(TH1 *h, const MBinning *binsx);
|
---|
32 | static void SetBinning(TH2 *h, const MBinning *binsx, const MBinning *binsy);
|
---|
33 | static void SetBinning(TH3 *h, const MBinning *binsx, const MBinning *binsy, const MBinning *binsz);
|
---|
34 |
|
---|
35 | static void SetBinning(TH1 *h, const TArrayD *binsx);
|
---|
36 | static void SetBinning(TH2 *h, const TArrayD *binsx, const TArrayD *binsy);
|
---|
37 | static void SetBinning(TH3 *h, const TArrayD *binsx, const TArrayD *binsy, const TArrayD *binsz);
|
---|
38 |
|
---|
39 | static void SetBinning(TH1 *h, const TAxis *binsx);
|
---|
40 | static void SetBinning(TH2 *h, const TAxis *binsx, const TAxis *binsy);
|
---|
41 | static void SetBinning(TH3 *h, const TAxis *binsx, const TAxis *binsy, const TAxis *binsz);
|
---|
42 |
|
---|
43 | static void SetBinning(TH1 *h, TH1 *x);
|
---|
44 |
|
---|
45 | ClassDef(MH, 1) //A histogram base class for Mars histograms
|
---|
46 | };
|
---|
47 |
|
---|
48 | #endif
|
---|
49 |
|
---|