source: trunk/MagicSoft/Mars/mhist/MH3.h@ 1299

Last change on this file since 1299 was 1299, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MH3
2#define MARS_MH3
3
4#ifndef ROOT_TH1
5#include <TH1.h>
6#endif
7#ifndef MARS_MH
8#include "MH.h"
9#endif
10
11class TH1;
12class TMethodCall;
13class MDataChain;
14
15class MH3 : public MH
16{
17protected:
18 const Int_t fDimension; // Number of dimensions of histogram
19
20 TH1 *fHist; // Histogram to fill
21
22 TString fDataMember[3]; // Data member which should be filled into the histogram x
23
24 MDataChain *fData[3]; // Object from which the data is filled
25
26 Double_t fScale[3];
27
28public:
29 MH3(const char *memberx);
30 MH3(const char *memberx, const char *membery);
31 MH3(const char *memberx, const char *membery, const char *memberz);
32 ~MH3();
33
34 void SetScaleX(Double_t scale) { fScale[0] = scale; }
35 void SetScaleY(Double_t scale) { fScale[1] = scale; }
36 void SetScaleZ(Double_t scale) { fScale[2] = scale; }
37
38 Int_t GetDimension() const { return fDimension; }
39
40 void SetName(const char *name);
41 void SetTitle(const char *title);
42
43 Bool_t SetupFill(const MParList *pList);
44 Bool_t Fill(const MParContainer *par);
45
46 TH1 &GetHist() { return *fHist; }
47 const TH1 &GetHist() const { return *fHist; }
48
49 void Draw(Option_t *opt=NULL);
50 TObject *DrawClone(Option_t *opt=NULL) const;
51
52 ClassDef(MH3, 1) // Generalized 1/2/3D-histogram for Mars variables
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.