ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/Limits/significance.h
Revision: 1.1
Committed: Wed Jan 26 14:37:51 2011 UTC (14 years, 3 months ago) by auterman
Content type: text/plain
Branch point for: Limits, MAIN
Log Message:
Initial revision

File Contents

# User Rev Content
1 auterman 1.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