20namespace TestStatistics {
34 likelihood_(std::move(likelihood)),
35 vars_proxy_(
"varsProxy",
"proxy set of parameters", this)
43 :
RooAbsReal(other,
name), likelihood_(other.likelihood_), vars_proxy_(
"varsProxy", this, other.vars_proxy_)
62 std::size_t last_component =
likelihood_->getNComponents();
64 auto ret_kahan =
likelihood_->evaluatePartition({0, 1}, 0, last_component);
67 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
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
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.
void logEvalError(const char *message, const char *serverValueString=nullptr) const
Log evaluation error message.
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...