54 dm(
"dm",
"Dstar-D0 Mass Diff",this, _dm),
55 dm0(
"dm0",
"Threshold",this, _dm0),
56 C(
"C",
"Shape Parameter",this, _c),
57 A(
"A",
"Shape Parameter 2",this, _a),
58 B(
"B",
"Shape Parameter 3",this, _b)
65 RooAbsPdf(other,
name), dm(
"dm",this,other.dm), dm0(
"dm0",this,other.dm0),
66 C(
"C",this,other.C), A(
"A",this,other.A), B(
"B",this,other.B)
75 if (arg <= 0 )
return 0;
79 return (val > 0 ? val : 0) ;
85 return RooBatchCompute::dispatch->
computeDstD0BG(
this, evalData,
dm->
getValues(evalData, normSet),
dm0->
getValues(evalData, normSet),
C->
getValues(evalData, normSet),
A->
getValues(evalData, normSet),
B->
getValues(evalData, normSet));
106 if (max <=
dm0 )
return 0;
107 else if (min <
dm0) min =
dm0;
110 if (
A != 0 ) doNumerical=
kTRUE;
119 if ( ! doNumerical ) {
121 B * (0.5* (max*max - min*min)/
dm0 - (max- min));
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual RooSpan< const double > getValues(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet=nullptr) const
by this change, please consult the release notes for ROOT 6.24 for guidance on how to make this trans...
RooAbsFunc * bindVars(const RooArgSet &vars, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE) const
Create an interface adaptor f(vars) that binds us to the specified variables (in arbitrary order).
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual RooSpan< double > computeDstD0BG(const RooAbsReal *, RunContext &, RooSpan< const double > dm, RooSpan< const double > dm0, RooSpan< const double > C, RooSpan< const double > A, RooSpan< const double > B)=0
Special p.d.f shape that can be used to model the background of D*-D0 mass difference distributions.
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
if (matchArgs(allVars,analVars,dm)) return 1 ;
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooSpan< double > evaluateSpan(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet) const
Compute multiple values of D*-D0 mass difference distribution.
RooIntegrator1D implements an adaptive one-dimensional numerical integration algorithm.
virtual Double_t integral(const Double_t *yvec=0)
Calculate numeric integral at given set of function binding parameters.
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.
const T & arg() const
Return reference to object held in proxy.
R__EXTERN RooBatchComputeInterface * dispatch
This dispatch pointer points to an implementation of the compute library, provided one has been loade...
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
This struct enables passing computation data around between elements of a computation graph.