#include <RoccoR.h>
|
| CrystalBall () |
|
void | init () |
|
double | pdf (double x) const |
|
double | pdf (double x, double ks, double dm) const |
|
double | cdf (double x) const |
|
double | invcdf (double u) const |
|
|
double | m |
|
double | s |
|
double | a |
|
double | n |
|
double | B |
|
double | C |
|
double | D |
|
double | N |
|
double | NA |
|
double | Ns |
|
double | NC |
|
double | F |
|
double | G |
|
double | k |
|
double | cdfMa |
|
double | cdfPa |
|
|
static const double | pi = M_PI |
|
static const double | sqrtPiOver2 = 0.8862269254527579 |
|
static const double | sqrt2 = 1.4142135623730951 |
|
◆ CrystalBall()
31 :
m(0),
s(1),
a(10),
n(10){
◆ cdf()
double cdf |
( |
double |
x | ) |
const |
|
inline |
75 if(d<-
a)
return NC / pow(
F-
s*d/
G,
n-1);
76 if(d>
a)
return NC * (
C - pow(
F+
s*d/
G, 1-
n) );
◆ init()
37 double ex = exp(-fa*fa/2);
38 double A = pow(
n/fa,
n) * ex;
39 double C1 =
n/fa/(
n-1) * ex;
◆ invcdf()
double invcdf |
( |
double |
u | ) |
const |
|
inline |
◆ pdf() [1/2]
double pdf |
( |
double |
x | ) |
const |
|
inline |
61 if(d<-
a)
return NA*pow(
B-d, -
n);
62 if(d>
a)
return NA*pow(
B+d, -
n);
◆ pdf() [2/2]
double pdf |
( |
double |
x, |
|
|
double |
ks, |
|
|
double |
dm |
|
) |
| const |
|
inline |
67 double d=(x-
m-
dm)/(
s*ks);
68 if(d<-
a)
return NA/ks*pow(
B-d, -
n);
69 if(d>
a)
return NA/ks*pow(
B+d, -
n);
70 return N/ks*exp(-d*d/2);
◆ cdfMa
◆ cdfPa
◆ NA
◆ NC
◆ Ns
◆ pi
constexpr double pi = M_PI |
|
staticconstexpr |
◆ sqrt2
constexpr double sqrt2 = 1.4142135623730951 |
|
staticconstexpr |
◆ sqrtPiOver2
constexpr double sqrtPiOver2 = 0.8862269254527579 |
|
staticconstexpr |
The documentation for this struct was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Muons/interface/RoccoR.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Muons/src/RoccoR.cc