source: trunk/MagicSoft/Mars/mhist/MHMcIntRate.h@ 1863

Last change on this file since 1863 was 1663, checked in by tbretz, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 922 bytes
Line 
1#ifndef MARS_MHMcIntRate
2#define MARS_MHMcIntRate
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7#ifndef ROOT_TH1
8#include <TH1.h>
9#endif
10
11class MHMcDifRate;
12
13class MHMcIntRate : public MParContainer
14{
15private:
16
17 TH1D fHist; // histogram with the logarith of the energy
18
19 // const MMcEvt *fMcEvt; //! container to fill histogram from
20
21public:
22 MHMcIntRate(const char *name=NULL, const char *title=NULL);
23 ~MHMcIntRate();
24
25 void SetName(const char *name);
26 void SetTitle(const char *title);
27
28 const TH1D *GetHist() { return &fHist; }
29 const TH1D *GetHist() const { return &fHist; }
30
31 TH1 *GetHistByName(const TString name) { return &fHist; }
32
33 void Draw(Option_t* option = "");
34 TObject *DrawClone(Option_t* option = "") const;
35
36 void Calc(const MHMcDifRate &rate);
37
38 ClassDef(MHMcIntRate, 1) // Histogram container for integral event rate
39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.