48 m(
"m",
"Mass",this,_m),
49 m0(
"m0",
"Resonance mass",this,_m0),
50 c(
"c",
"Slope parameter",this,_c),
61 m(
"m",
"Mass",this,_m),
62 m0(
"m0",
"Resonance mass",this,_m0),
63 c(
"c",
"Slope parameter",this,_c),
64 p(
"p",
"Power",this,_p)
74 m0(
"m0",this,other.m0),
96template<
class Tm,
class Tm0,
class Tc,
class Tp>
97void compute(
size_t batchSize,
98 double * __restrict
output,
99 Tm M, Tm0 M0, Tc
C, Tp
P)
101 for (
size_t i=0; i<batchSize; i++) {
102 const double t = M[i]/M0[i];
103 const double u = 1 - t*t;
106 for (
size_t i=0; i<batchSize; i++) {
107 if (M[i] >= M0[i])
output[i] = 0.0;
123 if (info.
nBatches==1 && !mData.empty()) {
124 compute(info.
size,
output.data(), mData.data(),
145 if (
matchArgs(allVars,analVars,
m) &&
p == 0.5)
return 1;
166 }
else if (
c == 0. ) {
double atan2(double, double)
RooSpan< double > makeWritableBatchUnInit(std::size_t begin, std::size_t batchSize, const RooArgSet *const normSet=nullptr, Tag_t ownerTag=kUnspecified)
Make a batch and return a span pointing to the pdf-local memory.
Little adapter that gives a bracket operator to types that don't have one.
Bool_t isConstant() const
Check if the "Constant" attribute is set.
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().
BatchHelpers::BatchData _batchData
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooArgusBG is a RooAbsPdf implementation describing the ARGUS background shape.
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
RooSpan< double > evaluateBatch(std::size_t begin, std::size_t batchSize) const
Evaluate function for a batch of input data points.
static std::complex< double > erf(const std::complex< double > z)
complex erf function
static std::complex< double > faddeeva(std::complex< double > z)
evaluate Faddeeva function for complex argument
RooRealConstant provides static functions to create and keep track of RooRealVar constants.
RooRealVar represents a variable that can be changed from the outside.
A simple container to hold a batch of data values.
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.
RooSpan< const typename T::value_type > getValBatch(std::size_t begin, std::size_t batchSize) const
Retrieve a batch of real or category data.
const T & arg() const
Return reference to object held in proxy.
EvaluateInfo getInfo(std::vector< const RooRealProxy * > parameters, size_t begin, size_t batchSize)
static constexpr double pi
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
static void output(int code)