1 |
#ifndef CEFFUSER2D_HH
|
2 |
#define CEFFUSER2D_HH
|
3 |
|
4 |
#include <TH2D.h>
|
5 |
#include <iostream>
|
6 |
|
7 |
class CEffUser2D
|
8 |
{
|
9 |
public:
|
10 |
CEffUser2D();
|
11 |
~CEffUser2D();
|
12 |
|
13 |
void loadEff(TH2D* eff, TH2D* errl, TH2D* errh);
|
14 |
Float_t getEff(const Double_t x, const Double_t y);
|
15 |
Float_t getErrLow(const Double_t x, const Double_t y);
|
16 |
Float_t getErrHigh(const Double_t x, const Double_t y);
|
17 |
void printEff(std::ostream& os);
|
18 |
void printErrLow(std::ostream& os);
|
19 |
void printErrHigh(std::ostream& os);
|
20 |
|
21 |
protected:
|
22 |
void printHist2D(const TH2D* h,std::ostream& os);
|
23 |
Float_t getValue(const TH2D* h, const Double_t x, const Double_t y);
|
24 |
|
25 |
TH2D *hEff;
|
26 |
TH2D *hErrl;
|
27 |
TH2D *hErrh;
|
28 |
};
|
29 |
|
30 |
#endif
|