ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/python/interface/EffUtility.hh
Revision: 1.2
Committed: Wed Apr 15 11:56:56 2009 UTC (16 years ago) by amagnan
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
oups...

File Contents

# Content
1 #ifndef HbbAnalysis_EffUtility_hh
2 #define HbbAnalysis_EffUtility_hh
3
4 namespace HbbAnalysis {//namespace
5
6
7 class EffUtility {
8
9 public:
10
11
12 EffUtility();
13 ~EffUtility();
14
15 void initialise(const unsigned int aNBins, const double aXmin, const double aXmax);
16
17 const unsigned int numberOfBins();
18
19 const double stepSize();
20 const double xMin();
21 const double xMax();
22
23 void incrementPass(unsigned int aBin);
24 void incrementTotal(unsigned int aBin);
25
26 const float getRatio(unsigned int aBin);
27 const float getRatioError(unsigned int aBin);
28 const unsigned int getPassed(unsigned int aBin);
29 const unsigned int getTotal(unsigned int aBin);
30
31 protected:
32
33
34 private:
35
36 bool isInitialised_;
37 unsigned int nBins_;
38 double xMin_;
39 double xMax_;
40 unsigned int *nSelected_;
41 unsigned int *nTotal_;
42
43
44 };//class
45
46
47 }//namespace
48
49
50 #endif //HbbAnalysis_EffCalc_hh