48 width(
"width",
"width",this,_width),
49 peak(
"peak",
"peak",this,_peak),
50 tail(
"tail",
"tail",this,_tail)
60 peak(
"peak",this,other.peak),
61 tail(
"tail",this,other.tail)
82 static const double xi = 2.3548200450309494;
85 double width_zero2 = width_zero * width_zero;
86 double exponent = ( -0.5 / (width_zero2) * log * log ) - ( width_zero2 * 0.5 );
115 assert(code==1 || code==2) ;
120 static const double sqrt2 = 1.4142135623730950;
121 static const double sqlog2 = 0.832554611157697756;
122 static const double sqlog4 = 1.17741002251547469;
123 static const double log4 = 1.38629436111989062;
124 static const double rootpiby2 = 1.2533141373155003;
125 static const double sqpibylog2 = 2.12893403886245236;
128 double A =
x.
min(rangeName);
129 double B =
x.
max(rangeName);
137 double xscale = sqrt2*
width;
150 if ( log_argument_A < 1.e-7) {
151 log_argument_A = 1.e-7;
155 if ( log_argument_B < 1.e-7) {
156 log_argument_B = 1.e-7;
160 double term1_2 = term1 * term1;
163 double erf_termA = ( term1_2 - log4 *
TMath::Log( log_argument_A ) ) / ( 2 * term1 * sqlog2 );
164 double erf_termB = ( term1_2 - log4 *
TMath::Log( log_argument_B ) ) / ( 2 * term1 * sqlog2 );
170 }
else if (code==2) {
171 double A =
x.
min(rangeName);
172 double B =
x.
max(rangeName);
180 double xscale = sqrt2*
width;
193 if ( log_argument_A < 1.e-7) {
194 log_argument_A = 1.e-7;
198 if ( log_argument_B < 1.e-7) {
199 log_argument_B = 1.e-7;
203 double term1_2 = term1 * term1;
206 double erf_termA = ( term1_2 - log4 *
TMath::Log( log_argument_A ) ) / ( 2 * term1 * sqlog2 );
207 double erf_termB = ( term1_2 - log4 *
TMath::Log( log_argument_B ) ) / ( 2 * term1 * sqlog2 );
216 coutF(Eval) <<
"Error in RooNovosibirsk::analyticalIntegral" << std::endl;
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
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
virtual void compute(cudaStream_t *, Computer, RestrictArr, size_t, const VarVector &, ArgVector &)=0
RooSpan< const double > at(RooAbsArg const *arg, RooAbsArg const *caller=nullptr)
RooNovosibirsk implements the Novosibirsk function.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
double evaluate() const override
If tail=eta=0 the Belle distribution becomes gaussian.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
void computeBatch(cudaStream_t *, double *output, size_t nEvents, RooFit::Detail::DataMap const &) const override
Compute multiple values of Novosibirsk distribution.
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.
R__EXTERN RooBatchComputeInterface * dispatchCUDA
R__EXTERN RooBatchComputeInterface * dispatchCPU
This dispatch pointer points to an implementation of the compute library, provided one has been loade...
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Double_t Erf(Double_t x)
Computation of the error function erf(x).
Double_t ASinH(Double_t)
Returns the area hyperbolic sine of x.
Double_t Log(Double_t x)
Returns the natural logarithm of x.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.