Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
21namespace RooFit {
22namespace TestStatistics {
23
25public:
26 LikelihoodSerial(std::shared_ptr<RooAbsL> _likelihood,
27 std::shared_ptr<WrapperCalculationCleanFlags> calculation_is_clean, SharedOffset offset);
28
29 void initVars();
30
31 void evaluate() override;
32 inline ROOT::Math::KahanSum<double> getResult() const override { return result; }
33
34private:
36
37 RooArgList _vars; ///< Variables
38 RooArgList _saveVars; ///< Copy of variables
39};
40
41} // namespace TestStatistics
42} // namespace RooFit
43
44#endif // ROOT_ROOFIT_LikelihoodSerial
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
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(std::shared_ptr< RooAbsL > _likelihood, std::shared_ptr< WrapperCalculationCleanFlags > calculation_is_clean, SharedOffset offset)
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 CodegenImpl.h:64