ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/EffUtility.hh
Revision: 1.1.1.1 (vendor branch)
Committed: Wed Apr 15 10:24:16 2009 UTC (16 years ago) by amagnan
Content type: text/plain
Branch: v00-00-00, MAIN
CVS Tags: v01-00-00, beforeMETHacks, v00-05-03, v00-05-02, v00-05-01, v00-05-00, HbbAnaFor35X, v00-04-02, v00-04-01, v00-04-00, v00-03-00, v00-02-01, v00-02-00, v00-01-00, HbbAnaFor22X, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
Imported sources

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