ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Common/CEffUser2D.hh
Revision: 1.2
Committed: Tue Jul 26 07:18:45 2011 UTC (13 years, 9 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +7 -7 lines
Log Message:
*** empty log message ***

File Contents

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