Revision: | 1.1.1.1 (vendor branch) |
Committed: | Wed Jan 26 14:37:51 2011 UTC (14 years, 3 months ago) by auterman |
Content type: | text/plain |
Branch: | Limits, MAIN |
CVS Tags: | start, HEAD |
Changes since 1.1: | +0 -0 lines |
Log Message: | Limt calculation code |
# | Content |
---|---|
1 | #ifndef SIGNIFICANCE_H |
2 | #define SIGNIFICANCE_H |
3 | |
4 | #include <cmath> |
5 | |
6 | class TSignificance |
7 | { |
8 | public: |
9 | TSignificance(double b, double sigma):_n(sqrt(b+sigma*sigma)){}; |
10 | virtual ~TSignificance(){}; |
11 | double operator()(const double s, const double * par){ |
12 | return (_n ? s/_n : 0) - par[0]; }; //par[0] being the wished CL |
13 | |
14 | private: |
15 | double _n; |
16 | }; |
17 | |
18 | |
19 | #endif |