source: trunk/MagicSoft/Mars/mhist/MHEnergyTime.h@ 1854

Last change on this file since 1854 was 1663, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 925 bytes
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
11class MTime;
12class MParList;
13
14class MHEnergyTime : public MH
15{
16private:
17 MTime *fTime;
18 TH2D fHist; //!
19
20public:
21
22 MHEnergyTime(const char *name=NULL, const char *title=NULL);
23 ~MHEnergyTime();
24
25 Bool_t Fill(const MParContainer *cont);
26
27 void Draw(Option_t *option="");
28 TObject *DrawClone(Option_t *option="") const;
29
30 Bool_t SetupFill(const MParList *plist);
31
32 const TH2D *GetHist() { return &fHist; }
33 const TH2D *GetHist() const { return &fHist; }
34
35 TH1 *GetHistByName(const TString name) { return &fHist; }
36
37 void Divide(const TH2D *h1, const TH2D *h2);
38 void Divide(const MHEnergyTime *h1, const MHEnergyTime *h2)
39 {
40 Divide(h1->GetHist(), h2->GetHist());
41 }
42
43 ClassDef(MHEnergyTime, 1) // Histogram: Energy vs. Time
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.