source: trunk/MagicSoft/Mars/mhistmc/MHMcIntRate.h@ 4200

Last change on this file since 4200 was 1974, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 849 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
24 void SetName(const char *name);
25 void SetTitle(const char *title);
26
27 const TH1D *GetHist() { return &fHist; }
28 const TH1D *GetHist() const { return &fHist; }
29
30 TH1 *GetHistByName(const TString name) { return &fHist; }
31
32 void Draw(Option_t* option = "");
33
34 void Calc(const MHMcDifRate &rate);
35
36 ClassDef(MHMcIntRate, 1) // Histogram container for integral event rate
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.