source: trunk/MagicSoft/Mars/mhist/MHMcDifRate.h@ 1682

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