Line | |
---|
1 | #ifndef MARS_MHEnergyTime
|
---|
2 | #define MARS_MHEnergyTime
|
---|
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 MHEnergyTime : public MH
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | MTime *fTime;
|
---|
18 | TH2D fHist; //!
|
---|
19 |
|
---|
20 | public:
|
---|
21 | MHEnergyTime(const char *name=NULL, const char *title=NULL);
|
---|
22 |
|
---|
23 | Bool_t Fill(const MParContainer *cont);
|
---|
24 |
|
---|
25 | void Draw(Option_t *option="");
|
---|
26 |
|
---|
27 | Bool_t SetupFill(const MParList *plist);
|
---|
28 |
|
---|
29 | const TH2D *GetHist() { return &fHist; }
|
---|
30 | const TH2D *GetHist() const { return &fHist; }
|
---|
31 |
|
---|
32 | TH1 *GetHistByName(const TString name) { return &fHist; }
|
---|
33 |
|
---|
34 | void Divide(const TH2D *h1, const TH2D *h2);
|
---|
35 | void Divide(const MHEnergyTime *h1, const MHEnergyTime *h2)
|
---|
36 | {
|
---|
37 | Divide(h1->GetHist(), h2->GetHist());
|
---|
38 | }
|
---|
39 |
|
---|
40 | ClassDef(MHEnergyTime, 1) // Histogram: Energy vs. Time
|
---|
41 | };
|
---|
42 |
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.