| 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 |  | 
|---|
| 11 | class TF1; | 
|---|
| 12 | class MMcEvt; | 
|---|
| 13 | class MHMcCollectionArea; | 
|---|
| 14 |  | 
|---|
| 15 | class MHMcDifRate : public MParContainer | 
|---|
| 16 | { | 
|---|
| 17 | private: | 
|---|
| 18 |  | 
|---|
| 19 | TH1D fHist;           // histogram with the logarith of the energy | 
|---|
| 20 |  | 
|---|
| 21 | // const MMcEvt *fMcEvt;  //! container to fill histogram from | 
|---|
| 22 |  | 
|---|
| 23 | public: | 
|---|
| 24 | MHMcDifRate(const char *name=NULL, const char *title=NULL); | 
|---|
| 25 |  | 
|---|
| 26 | void SetName(const char *name); | 
|---|
| 27 | void SetTitle(const char *title); | 
|---|
| 28 |  | 
|---|
| 29 | const TH1D *GetHist()       { return &fHist; } | 
|---|
| 30 | const TH1D *GetHist() const { return &fHist; } | 
|---|
| 31 |  | 
|---|
| 32 | TH1 *GetHistByName(const TString name) { return &fHist; } | 
|---|
| 33 |  | 
|---|
| 34 | void Draw(Option_t* option = ""); | 
|---|
| 35 |  | 
|---|
| 36 | //    void Calc(const TH2D &hsel, const TH2D &hall); | 
|---|
| 37 | void Calc(const MHMcCollectionArea &cola, const TF1 &spect); | 
|---|
| 38 |  | 
|---|
| 39 | ClassDef(MHMcDifRate, 1)  // Histogram container for differential trigger rate | 
|---|
| 40 | }; | 
|---|
| 41 |  | 
|---|
| 42 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.