13#ifndef RooFit_RooNormalizedPdf_h
14#define RooFit_RooNormalizedPdf_h
25 :
_pdf(
"numerator",
"numerator", this,
pdf),
27 "denominator",
"denominator", this,
52 const char *rangeName =
nullptr)
const override
#define ClassDefOverride(name, id)
Common abstract base class for objects that represent a value and a "shape" in RooFit.
void SetName(const char *name) override
Set the name of the TNamed.
Abstract interface for all probability density functions.
virtual double expectedEvents(const RooArgSet *nset) const
Return expected number of events to be used in calculation of extended likelihood.
const char * normRange() const
virtual std::unique_ptr< RooAbsReal > createExpectedEventsFunc(const RooArgSet *nset) const
Returns an object that represents the expected number of events for a given normalization set,...
double analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Analytical integral with normalization (see RooAbsReal::analyticalIntegralWN() for further informatio...
double normalizeWithNaNPacking(double rawVal, double normVal) const
virtual ExtendMode extendMode() const
Returns ability of PDF to provide extended likelihood terms.
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
virtual Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=nullptr) const
Variant of getAnalyticalIntegral that is also passed the normalization set that should be applied to ...
const RooNumIntConfig * getIntegratorConfig() const
Return the numeric integration configuration used for this object.
RooFit::OwningPtr< RooAbsReal > createIntegral(const RooArgSet &iset, const RooCmdArg &arg1, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}) const
Create an object that represents the integral of the function over one or more observables listed in ...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooAbsReal const & normIntegral() const
bool selfNormalized() const override
Shows if a PDF is self-normalized, which means that no attempt is made to add a normalization term.
bool canComputeBatchWithCuda() const override
bool forceAnalyticalInt(const RooAbsArg &) const override
double expectedEvents(const RooArgSet *) const override
Return expected number of events to be used in calculation of extended likelihood.
RooRealProxy _normIntegral
double getValV(const RooArgSet *) const override
Return current value, normalized by integrating over the observables in nset.
RooAbsPdf const & pdf() const
RooNormalizedPdf(const RooNormalizedPdf &other, const char *name)
RooTemplateProxy< RooAbsPdf > _pdf
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *, const char *rangeName=nullptr) const override
Forward determination of analytical integration capabilities to input p.d.f.
RooNormalizedPdf(RooAbsPdf &pdf, RooArgSet const &normSet)
std::unique_ptr< RooAbsReal > createExpectedEventsFunc(const RooArgSet *) const override
Returns an object that represents the expected number of events for a given normalization set,...
double analyticalIntegralWN(Int_t code, const RooArgSet *, const char *rangeName=nullptr) const override
Forward calculation of analytical integrals to input p.d.f.
TObject * clone(const char *newname) const override
void doEval(RooFit::EvalContext &) const override
Base function for computing multiple values of a RooAbsReal.
ExtendMode extendMode() const override
Returns ability of PDF to provide extended likelihood terms.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
Mother of all ROOT objects.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...