Line | |
---|
1 | #ifndef MARS_MHEnergyTheta
|
---|
2 | #define MARS_MHEnergyTheta
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 | #ifndef ROOT_TH2
|
---|
8 | #include "TH2.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class MTime;
|
---|
12 | class MParList;
|
---|
13 |
|
---|
14 | class MHEnergyTheta : public MH
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | TH2D fHist; //!
|
---|
18 |
|
---|
19 | public:
|
---|
20 |
|
---|
21 | MHEnergyTheta(const char *name=NULL, const char *title=NULL);
|
---|
22 | ~MHEnergyTheta();
|
---|
23 |
|
---|
24 | Bool_t Fill(const MParContainer *cont, Double_t w=1);
|
---|
25 |
|
---|
26 | void Draw(Option_t *option="");
|
---|
27 | TObject *DrawClone(Option_t *option="") const;
|
---|
28 |
|
---|
29 | Bool_t SetupFill(const MParList *plist);
|
---|
30 |
|
---|
31 | const TH2D *GetHist() { return &fHist; }
|
---|
32 | const TH2D *GetHist() const { return &fHist; }
|
---|
33 |
|
---|
34 | TH1 *GetHistByName(const TString name) { return &fHist; }
|
---|
35 |
|
---|
36 | void Divide(const TH2D *h1, const TH2D *h2);
|
---|
37 | void Divide(const MHEnergyTheta *h1, const MHEnergyTheta *h2)
|
---|
38 | {
|
---|
39 | Divide(h1->GetHist(), h2->GetHist());
|
---|
40 | }
|
---|
41 |
|
---|
42 | ClassDef(MHEnergyTheta, 1) // Histogram: Energy vs. Theta
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.