18namespace TestStatistics {
32 vars_proxy_(
"varsProxy",
"proxy set of parameters", this)
39 :
RooAbsReal(other,
name), likelihood_(other.likelihood_), vars_proxy_(
"varsProxy", this, other.vars_proxy_)
58 std::size_t last_component =
likelihood_->getNComponents();
60 auto ret_kahan =
likelihood_->evaluatePartition({0, 1}, 0, last_component);
63 double ret = ret_kahan.Sum() / norm;
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Storage_t::size_type size() const
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooAbsReal that wraps RooAbsL likelihoods for use in RooFit outside of the RooMinimizer context.
std::shared_ptr< RooAbsL > likelihood_
Double_t evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
double globalNormalization() const
RooRealL(const char *name, const char *title, std::shared_ptr< RooAbsL > likelihood)
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...