13#ifndef RooFit_RooNormalizedPdf_h
14#define RooFit_RooNormalizedPdf_h
24 :
_pdf(
"numerator",
"numerator", this,
pdf),
26 "denominator",
"denominator", this,
54 const char *rangeName =
nullptr)
const override
56 return _pdf->getAnalyticalIntegralWN(allVars, analVars, normSet ? normSet : &
_normSet, rangeName);
61 return _pdf->analyticalIntegralWN(code, normSet ? normSet : &
_normSet, rangeName);
RooTemplateProxy< RooAbsReal > RooRealProxy
Compatibility typedef replacing the old RooRealProxy class.
int Int_t
Signed integer 4 bytes (int).
#define ClassDefOverride(name, id)
void SetName(const char *name) override
Set the name of the TNamed.
RooAbsArg()
Default constructor.
TString _normRange
Normalization range.
const char * normRange() const
RooAbsPdf()
Default constructor.
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 analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Forward calculation of analytical integrals to input p.d.f.
RooAbsPdf const & pdf() const
RooNormalizedPdf(const RooNormalizedPdf &other, const char *name)
RooTemplateProxy< RooAbsPdf > _pdf
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Forward determination of analytical integration capabilities to input p.d.f.
double getValV(const RooArgSet *normSet) const override
Return current value, normalized by integrating over the observables in nset.
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,...
TObject * clone(const char *newname) const override
double getCorrection() const override
This function returns the penalty term.
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.
TObject()
TObject constructor.