18namespace TestStatistics {
32 vars_proxy_(
"varsProxy",
"proxy set of parameters", this)
40 :
RooAbsReal(other,
name), likelihood_(other.likelihood_), vars_proxy_(
"varsProxy", this, other.vars_proxy_)
59 std::size_t last_component =
likelihood_->getNComponents();
61 auto ret_kahan =
likelihood_->evaluatePartition({0, 1}, 0, last_component);
64 double ret = ret_kahan.Sum() / norm;
RooFit::OwningPtr< RooArgSet > getParameters(const RooAbsData *data, bool stripDisconnected=true) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
virtual bool add(const RooAbsArg &var, bool silent=false)
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...
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.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
RooAbsReal that wraps RooAbsL likelihoods for use in RooFit outside of the RooMinimizer context.
std::shared_ptr< RooAbsL > likelihood_
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooSetProxy vars_proxy_
sets up client-server connections
double globalNormalization() const
RooArgSet vars_obs_
list of observables
RooRealL(const char *name, const char *title, std::shared_ptr< RooAbsL > likelihood)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...