source: trunk/MagicSoft/Mars/mhist/MH.h@ 1295

Last change on this file since 1295 was 1283, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MH
2#define MARS_MH
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TH1;
9class TAxis;
10class TArrayD;
11class TCanvas;
12
13class MBinning;
14class MParList;
15
16class MH : public MParContainer
17{
18public:
19 MH(const char *name=NULL, const char *title=NULL);
20
21 virtual Bool_t SetupFill(const MParList *pList) { return kTRUE; }
22 virtual Bool_t Fill(const MParContainer *par) = 0;
23
24 static TCanvas *MakeDefCanvas(TString name="", const char *title="",
25 const UInt_t w=700, const UInt_t h=500);
26 static TCanvas *MakeDefCanvas(const TObject *obj,
27 const UInt_t w=700, const UInt_t h=500);
28
29 static void SetBinning(TH1 *h, const MBinning *binsx);
30 static void SetBinning(TH1 *h, const MBinning *binsx, const MBinning *binsy);
31 static void SetBinning(TH1 *h, const MBinning *binsx, const MBinning *binsy, const MBinning *binsz);
32
33 static void SetBinning(TH1 *h, const TArrayD *binsx);
34 static void SetBinning(TH1 *h, const TArrayD *binsx, const TArrayD *binsy);
35 static void SetBinning(TH1 *h, const TArrayD *binsx, const TArrayD *binsy, const TArrayD *binsz);
36
37 static void SetBinning(TH1 *h, const TAxis *binsx);
38 static void SetBinning(TH1 *h, const TAxis *binsx, const TAxis *binsy);
39 static void SetBinning(TH1 *h, const TAxis *binsx, const TAxis *binsy, const TAxis *binsz);
40
41 static void SetBinning(TH1 *h, TH1 *x);
42
43 ClassDef(MH, 1) //A histogram base class for Mars histograms
44};
45
46#endif
47
Note: See TracBrowser for help on using the repository browser.