Line | |
---|
1 | #ifndef MARS_MMath
|
---|
2 | #define MARS_MMath
|
---|
3 |
|
---|
4 | #ifndef ROOT_TMath
|
---|
5 | #include <TMath.h> // TMath is included here for convinience
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TVector3;
|
---|
9 |
|
---|
10 | namespace MMath
|
---|
11 | {
|
---|
12 | Double_t GaussProb(Double_t x, Double_t sigma, Double_t mean=0);
|
---|
13 |
|
---|
14 | Double_t Significance(Double_t s, Double_t b);
|
---|
15 | Double_t SignificanceSym(Double_t s, Double_t b);
|
---|
16 | Double_t SignificanceLiMa(Double_t s, Double_t b, Double_t alpha=1);
|
---|
17 | Double_t SignificanceLiMaSigned(Double_t s, Double_t b, Double_t alpha=1);
|
---|
18 |
|
---|
19 | void ReducePrecision(Float_t &val);
|
---|
20 |
|
---|
21 | TVector3 GetParab(const TVector3 &x, const TVector3 &y);
|
---|
22 | Double_t InterpolParabLin(const TVector3 &vx, const TVector3 &vy, Double_t x);
|
---|
23 | Double_t InterpolParabLog(const TVector3 &vx, const TVector3 &vy, Double_t x);
|
---|
24 | Double_t InterpolParabCos(const TVector3 &vx, const TVector3 &vy, Double_t x);
|
---|
25 |
|
---|
26 | Double_t Sgn(Double_t d);
|
---|
27 | }
|
---|
28 |
|
---|
29 | inline Double_t MMath::Sgn(Double_t d) { return d<0 ? -1 : 1; }
|
---|
30 |
|
---|
31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.