#include <RooJohnsonSU.h>
|
RooRealProxy | x |
|
RooRealProxy | mean |
|
RooRealProxy | width |
|
RooRealProxy | nu |
|
RooRealProxy | tau |
|
Definition at line 31 of file RooJohnsonSU.h.
◆ RooJohnsonSU() [1/3]
RooJohnsonSU::RooJohnsonSU |
( |
| ) |
|
|
inline |
◆ RooJohnsonSU() [2/3]
RooJohnsonSU::RooJohnsonSU |
( |
const char * |
name, |
|
|
const char * |
title, |
|
|
RooAbsReal & |
_x, |
|
|
RooAbsReal & |
_mean, |
|
|
RooAbsReal & |
_width, |
|
|
RooAbsReal & |
_nu, |
|
|
RooAbsReal & |
_tau |
|
) |
| |
Definition at line 39 of file RooJohnsonSU.cpp.
45 RooAbsPdf(name,title),
47 mean(
"mean",
"mean",
this,_mean),
48 width(
"width",
"width",
this,_width),
49 nu(
"nu",
"nu",
this,_nu),
50 tau(
"tau",
"tau",
this,_tau)
◆ RooJohnsonSU() [3/3]
RooJohnsonSU::RooJohnsonSU |
( |
const RooJohnsonSU & |
other, |
|
|
const char * |
name = 0 |
|
) |
| |
◆ ~RooJohnsonSU()
virtual RooJohnsonSU::~RooJohnsonSU |
( |
| ) |
|
|
inlinevirtual |
◆ analyticalIntegral()
Double_t RooJohnsonSU::analyticalIntegral |
( |
Int_t |
code, |
|
|
const char * |
rangeName = 0 |
|
) |
| const |
|
protected |
Definition at line 94 of file RooJohnsonSU.cpp.
99 double w = exp(
tau *
tau);
100 double omega = -
nu *
tau;
101 double c = 0.5 * (w-1) * (w * TMath::CosH(2 * omega) + 1);
103 double zmax = (-
x.max(rangeName) + (
mean + c *
width * sqrt(w) * TMath::SinH(omega) )) / c /
width;
104 double zmin = (-
x.min(rangeName) + (
mean + c *
width * sqrt(w) * TMath::SinH(omega) )) / c /
width;
105 static const Double_t
pi = atan2(0.0,-1.0);
106 static const Double_t PiBy2 =
pi/2.0;
107 static const Double_t rootPiBy2 = sqrt(PiBy2);
113 ret = -0.25/rootPiBy2* ( RooMath::erf( (
nu*
tau + TMath::ASinH( zmax ) )/(sqrt(2)*
tau) )-
114 RooMath::erf( (
nu*
tau + TMath::ASinH( zmin ) )/(sqrt(2)*
tau) ) );
124 cout <<
"Error in RooJohnsonSU::analyticalIntegral" << endl;
◆ clone()
TObject* RooJohnsonSU::clone |
( |
const char * |
newname | ) |
const |
|
inline |
◆ evaluate()
Double_t RooJohnsonSU::evaluate |
( |
| ) |
const |
|
protected |
Definition at line 67 of file RooJohnsonSU.cpp.
71 double w = exp(
tau *
tau);
72 double omega = -
nu *
tau;
73 double c = 0.5 * (w-1) * (w * TMath::CosH(2 * omega) + 1);
75 double z = (
x - (
mean + c *
width * sqrt(w) * TMath::SinH(omega) )) / c /
width;
76 double r = -
nu + TMath::ASinH(z) /
tau;
78 double val = 1. / (c *
width * 2 * TMath::Pi());
79 val *= 1. / (
tau * sqrt(z*z+1));
80 val *= exp(-0.5 * r * r);
◆ getAnalyticalIntegral()
Int_t RooJohnsonSU::getAnalyticalIntegral |
( |
RooArgSet & |
allVars, |
|
|
RooArgSet & |
analVars, |
|
|
const char * |
rangeName = 0 |
|
) |
| const |
|
protected |
Definition at line 87 of file RooJohnsonSU.cpp.
89 if (matchArgs(allVars,analVars,
x))
return 1 ;
◆ mean
RooRealProxy RooJohnsonSU::mean |
|
protected |
◆ nu
RooRealProxy RooJohnsonSU::nu |
|
protected |
◆ tau
RooRealProxy RooJohnsonSU::tau |
|
protected |
◆ width
RooRealProxy RooJohnsonSU::width |
|
protected |
RooRealProxy RooJohnsonSU::x |
|
protected |
The documentation for this class was generated from the following files: