source: trunk/MagicSoft/Mars/mhist/MHEnergyTheta.h@ 4439

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