ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Util/interface/CEffUser2D.h
Revision: 1.1
Committed: Sun Oct 23 11:45:14 2011 UTC (13 years, 6 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: synced_FSR_2, synced_FSR, synched2, synched, AN490
Log Message:
*** empty log message ***

File Contents

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