-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignificance.h
57 lines (30 loc) · 1.32 KB
/
Significance.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef SIGNIFICANCE_H
#define SIGNIFICANCE_H
#pragma once
#include "TObject.h"
#include "RooStats/RooStatsUtils.h"
class Significance : public TObject {
public:
enum Prescription {
PRESCRIPTION1 = 1,
PRESCRIPTION2 = 2,
PRESCRIPTION3 = 3
};
static const Prescription RECOMMENDED = PRESCRIPTION3;
Significance();
/**
* Compute the recommended significance
*/
static double Recommended(double n, double b, double sigma) { return AsymptoticPoissonPoissonModel(n,b,sigma); }
static double GaussApproxNoUncert(double n, double b);
static double GaussApproxWithUncert(double n, double b, double sigma);
static double PoissonNoUncert(double n, double b, Prescription p = RECOMMENDED);
static double AsymptoticPoissonPoissonModel(double n, double b, double sigma);
static double AsymptoticPoissonGaussianModel(double n, double b, double sigma);
static double BinomialModel(double n, double b, double sigma);
static double ModifiedBinomialModel(double n, double b, double sigma, Prescription p = RECOMMENDED);
static double PoissonGammaModel(double n, double b, double sigma, Prescription p = RECOMMENDED);
static double applyPrescription(double n, double b, double Ze, double Zd, Prescription p);
ClassDef(Significance,1);
};
#endif