76 :
RooAbsPdf(
name, title), x_(
"x",
"Dependent",
this,
x), x0_(
"x0",
"X0",
this,
x0),
77 sigmaL_(
"sigmaL",
"Left Sigma",
this, sigmaL), sigmaR_(
"sigmaR",
"Right Sigma",
this, sigmaR),
78 alphaL_{
"alphaL",
"Left Alpha",
this,
alphaL}, nL_{
"nL",
"Left Order",
this,
nL},
104 :
RooAbsPdf(
name, title), x_(
"x",
"Dependent",
this,
x), x0_(
"x0",
"X0",
this,
x0),
106 alphaL_{
"alphaL",
"Left Alpha",
this,
alphaL}, nL_{
"nL",
"Left Order",
this,
nL},
131 :
RooAbsPdf(
name, title), x_(
"x",
"Dependent",
this,
x), x0_(
"x0",
"X0",
this,
x0),
133 alphaL_{
"alphaL",
"Left Alpha",
this, alpha},
134 nL_{
"nL",
"Left Order",
this,
n}
137 alphaR_ = std::make_unique<RooRealProxy>(
"alphaR",
"Right Alpha",
this, alpha);
138 nR_ = std::make_unique<RooRealProxy>(
"nR",
"Right Order",
this,
n);
166 double a = std::pow(
n / alpha,
n) * std::exp(-0.5 * alpha * alpha);
167 double b =
n / alpha - alpha;
169 return a / std::pow(
b - t,
n);
175 constexpr double sqrt2 = 1.4142135624;
185 double a = std::pow(
n / alpha,
n) * exp(-0.5 * alpha * alpha);
186 double b =
n / alpha - alpha;
193 double a = std::pow(
n / alpha,
n) * exp(-0.5 * alpha * alpha);
194 double b =
n / alpha - alpha;
196 return a *
sigma / (1.0 -
n) * (1.0 / (std::pow(
b -
tmin,
n - 1.0)) - 1.0 / (std::pow(
b -
tmax,
n - 1.0)));
206 const double x0 =
x0_;
207 const double sigmaL = std::abs(
sigmaL_);
208 const double sigmaR = std::abs(
sigmaR_);
221 const double t = (
x -
x0) / (
x <
x0 ? sigmaL : sigmaR);
226 return std::exp(-0.5 * t * t);
245 const double x0 =
x0_;
246 const double sigmaL = std::abs(
sigmaL_);
247 const double sigmaR = std::abs(
sigmaR_);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
bool matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooArgSet is a container object that can hold multiple RooAbsArg objects.
PDF implementing the generalized Asymmetrical Double-Sided Crystall Ball line shape.
std::unique_ptr< RooRealProxy > nR_
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
std::unique_ptr< RooRealProxy > alphaR_
double maxVal(Int_t code) const override
Return maximum value for set of observables identified by code assigned in getMaxVal.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Int_t getMaxVal(const RooArgSet &vars) const override
Advertise that we know the maximum of self for given (m0,alpha,n,sigma).
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
double max(const char *rname=nullptr) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
double min(const char *rname=nullptr) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
void checkRangeOfParameters(const RooAbsReal *callingClass, std::initializer_list< const RooAbsReal * > pars, double min=-std::numeric_limits< double >::max(), double max=std::numeric_limits< double >::max(), bool limitsInAllowedRange=false, std::string const &extraMessage="")
Check if the parameters have a range, and warn if the range extends below / above the set limits.