49 width(
"width",
"width",this,_width),
50 peak(
"peak",
"peak",this,_peak),
51 tail(
"tail",
"tail",this,_tail)
61 peak(
"peak",this,other.peak),
62 tail(
"tail",this,other.tail)
83 static const Double_t xi = 2.3548200450309494;
86 Double_t width_zero2 = width_zero * width_zero;
87 Double_t exponent = ( -0.5 / (width_zero2) * log * log ) - ( width_zero2 * 0.5 );
116 assert(code==1 || code==2) ;
121 static const Double_t sqrt2 = 1.4142135623730950;
122 static const Double_t sqlog2 = 0.832554611157697756;
123 static const Double_t sqlog4 = 1.17741002251547469;
124 static const Double_t log4 = 1.38629436111989062;
125 static const Double_t rootpiby2 = 1.2533141373155003;
126 static const Double_t sqpibylog2 = 2.12893403886245236;
151 if ( log_argument_A < 1.e-7) {
152 log_argument_A = 1.e-7;
156 if ( log_argument_B < 1.e-7) {
157 log_argument_B = 1.e-7;
164 Double_t erf_termA = ( term1_2 - log4 *
TMath::Log( log_argument_A ) ) / ( 2 * term1 * sqlog2 );
165 Double_t erf_termB = ( term1_2 - log4 *
TMath::Log( log_argument_B ) ) / ( 2 * term1 * sqlog2 );
171 }
else if (code==2) {
194 if ( log_argument_A < 1.e-7) {
195 log_argument_A = 1.e-7;
199 if ( log_argument_B < 1.e-7) {
200 log_argument_B = 1.e-7;
207 Double_t erf_termA = ( term1_2 - log4 *
TMath::Log( log_argument_A ) ) / ( 2 * term1 * sqlog2 );
208 Double_t erf_termB = ( term1_2 - log4 *
TMath::Log( log_argument_B ) ) / ( 2 * term1 * sqlog2 );
217 coutF(Eval) <<
"Error in RooNovosibirsk::analyticalIntegral" << std::endl;
include TDocParser_001 C image html pict1_TDocParser_001 png width
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t 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 &, const ArgVector &={})=0
auto & at(RooAbsArg const *arg, RooAbsArg const *=nullptr)
RooNovosibirsk implements the Novosibirsk function.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
double evaluate() const
If tail=eta=0 the Belle distribution becomes gaussian.
void computeBatch(cudaStream_t *, double *output, size_t nEvents, RooFit::Detail::DataMap const &) const
Compute multiple values of Novosibirsk distribution.
double min(const char *rname=0) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
double max(const char *rname=0) const
Query upper 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 Erf(Double_t x)
Computation of the error function erf(x).
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
static void output(int code)