| Line | |
|---|
| 1 | #ifndef MARS_MHMcEfficiency
|
|---|
| 2 | #define MARS_MHMcEfficiency
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 | #ifndef ROOT_TH2
|
|---|
| 8 | #include <TH2.h>
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | class MMcEvt;
|
|---|
| 12 | class MHMcEnergyImpact;
|
|---|
| 13 |
|
|---|
| 14 | class MHMcEfficiency : public MParContainer
|
|---|
| 15 | {
|
|---|
| 16 | private:
|
|---|
| 17 |
|
|---|
| 18 | TH2D fHist; // histogram with the logarith of the energy
|
|---|
| 19 |
|
|---|
| 20 | // const MMcEvt *fMcEvt; //! container to fill histogram from
|
|---|
| 21 |
|
|---|
| 22 | public:
|
|---|
| 23 | MHMcEfficiency(const char *name=NULL, const char *title=NULL);
|
|---|
| 24 |
|
|---|
| 25 | void SetName(const char *name);
|
|---|
| 26 | void SetTitle(const char *title);
|
|---|
| 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 Draw(Option_t* option = "");
|
|---|
| 34 |
|
|---|
| 35 | void Calc(const TH2D &hsel, const TH2D &hall);
|
|---|
| 36 | void Calc(const MHMcEnergyImpact &mcsel, const MHMcEnergyImpact &mcall);
|
|---|
| 37 |
|
|---|
| 38 | ClassDef(MHMcEfficiency, 1) // Histogram container for 2D trigger efficiency
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.