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

Last change on this file since 1388 was 1388, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.6 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 TH2;
10class TH3;
11class TAxis;
12class TArrayD;
13class TCanvas;
14
15class MBinning;
16class MParList;
17
18class MH : public MParContainer
19{
20public:
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);
25 virtual Bool_t Finalize() { return kTRUE; }
26
27 static TCanvas *MakeDefCanvas(TString name="", const char *title="",
28 const UInt_t w=580, const UInt_t h=435);
29 static TCanvas *MakeDefCanvas(const TObject *obj,
30 const UInt_t w=580, const UInt_t h=435);
31
32 static void SetBinning(TH1 *h, const MBinning *binsx);
33 static void SetBinning(TH2 *h, const MBinning *binsx, const MBinning *binsy);
34 static void SetBinning(TH3 *h, const MBinning *binsx, const MBinning *binsy, const MBinning *binsz);
35
36 static void SetBinning(TH1 *h, const TArrayD *binsx);
37 static void SetBinning(TH2 *h, const TArrayD *binsx, const TArrayD *binsy);
38 static void SetBinning(TH3 *h, const TArrayD *binsx, const TArrayD *binsy, const TArrayD *binsz);
39
40 static void SetBinning(TH1 *h, const TAxis *binsx);
41 static void SetBinning(TH2 *h, const TAxis *binsx, const TAxis *binsy);
42 static void SetBinning(TH3 *h, const TAxis *binsx, const TAxis *binsy, const TAxis *binsz);
43
44 static void SetBinning(TH1 *h, TH1 *x);
45
46 ClassDef(MH, 1) //A histogram base class for Mars histograms
47};
48
49#endif
50
Note: See TracBrowser for help on using the repository browser.