Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
LikelihoodSerial.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 * Authors:
4 * PB, Patrick Bos, Netherlands eScience Center, p.bos@esciencecenter.nl
5 *
6 * Copyright (c) 2021, CERN
7 *
8 * Redistribution and use in source and binary forms,
9 * with or without modification, are permitted according to the terms
10 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11 */
12
13#ifndef ROOT_ROOFIT_LikelihoodSerial
14#define ROOT_ROOFIT_LikelihoodSerial
15
17#include "RooArgList.h"
18
20
21#include <map>
22
23namespace RooFit {
24namespace TestStatistics {
25
27public:
28 LikelihoodSerial(std::shared_ptr<RooAbsL> likelihood,
29 std::shared_ptr<WrapperCalculationCleanFlags> calculation_is_clean);
30 inline LikelihoodSerial *clone() const override { return new LikelihoodSerial(*this); }
31
32 void initVars();
33
34 void evaluate() override;
35 inline ROOT::Math::KahanSum<double> getResult() const override { return result; }
36
37private:
39
40 RooArgList _vars; ///< Variables
41 RooArgList _saveVars; ///< Copy of variables
42
44};
45
46} // namespace TestStatistics
47} // namespace RooFit
48
49#endif // ROOT_ROOFIT_LikelihoodSerial
The Kahan summation is a compensated summation algorithm, which significantly reduces numerical error...
Definition Util.h:122
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
Serial likelihood calculation strategy implementation.
ROOT::Math::KahanSum< double > getResult() const override
Return the latest result of a likelihood evaluation.
RooArgList _saveVars
Copy of variables.
void evaluate() override
Triggers (possibly asynchronous) evaluation of the likelihood.
ROOT::Math::KahanSum< double > result
void initVars()
Helper function for the constructor.
LikelihoodSerial * clone() const override
Virtual base class for implementation of likelihood calculation strategies.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26