23namespace TestStatistics {
49 throw std::logic_error(
"in LikelihoodSerial constructor: _likelihood is not of a valid subclass!");
70 std::unique_ptr<RooArgSet> vars{
likelihood_->getParameters()};
91 throw std::logic_error(
"in LikelihoodSerial::evaluate_task: likelihood types other than binned, unbinned and simultaneous not yet implemented!");
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgList _saveVars
Copy of variables.
void evaluate() override
Triggers (possibly asynchronous) evaluation of the likelihood.
LikelihoodType likelihood_type
ROOT::Math::KahanSum< double > result
void initVars()
Helper function for the constuctor.
LikelihoodSerial(std::shared_ptr< RooAbsL > likelihood, std::shared_ptr< WrapperCalculationCleanFlags > calculation_is_clean)
RooArgList _vars
Variables.
Virtual base class for implementation of likelihood calculation strategies.
std::shared_ptr< RooAbsL > likelihood_
ROOT::Math::KahanSum< double > applyOffsetting(ROOT::Math::KahanSum< double > current_value)
Likelihood class that sums over multiple -log components.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...