1 |
dkralph |
1.1 |
#ifndef CEFFUSER2D_HH
|
2 |
|
|
#define CEFFUSER2D_HH
|
3 |
|
|
|
4 |
|
|
#include <TH2F.h>
|
5 |
|
|
#include <iostream>
|
6 |
|
|
|
7 |
|
|
class CEffUser2D
|
8 |
|
|
{
|
9 |
|
|
public:
|
10 |
|
|
CEffUser2D();
|
11 |
|
|
~CEffUser2D();
|
12 |
|
|
|
13 |
|
|
void loadEff(TH2F* eff, TH2F* errl, TH2F* 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 TH2F* h,std::ostream& os);
|
23 |
|
|
Float_t getValue(const TH2F* h, const Double_t x, const Double_t y);
|
24 |
|
|
|
25 |
|
|
TH2F *hEff;
|
26 |
|
|
TH2F *hErrl;
|
27 |
|
|
TH2F *hErrh;
|
28 |
|
|
};
|
29 |
|
|
|
30 |
|
|
#endif
|