Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooBinnedL.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_TESTSTATISTICS_RooBinnedL
14#define ROOT_ROOFIT_TESTSTATISTICS_RooBinnedL
15
17#include "RooAbsReal.h"
18
19#include "Math/Util.h" // KahanSum
20
21#include <vector>
22
23// forward declarations
24class RooAbsPdf;
25class RooAbsData;
27
28namespace RooFit {
29namespace TestStatistics {
30
31class RooBinnedL : public RooAbsL {
32public:
34 ~RooBinnedL() override;
36 evaluatePartition(Section bins, std::size_t components_begin, std::size_t components_end) override;
37
38 std::string GetClassName() const override { return "RooBinnedL"; }
39
40private:
41 mutable bool _first = true; ///<!
42 mutable std::vector<double> _binw; ///<!
43 std::unique_ptr<RooChangeTracker> paramTracker_;
44 Section lastSection_ = {0, 0}; // used for cache together with the parameter tracker
46};
47
48} // namespace TestStatistics
49} // namespace RooFit
50
51#endif // ROOT_ROOFIT_TESTSTATISTICS_RooBinnedL
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
The Kahan summation is a compensated summation algorithm, which significantly reduces numerical error...
Definition Util.h:122
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition RooAbsData.h:59
RooChangeTracker is a meta object that tracks value changes in a given set of RooAbsArgs by registeri...
ROOT::Math::KahanSum< double > evaluatePartition(Section bins, std::size_t components_begin, std::size_t components_end) override
Calculate and return likelihood on subset of data from firstEvent to lastEvent processed with a step ...
std::string GetClassName() const override
Definition RooBinnedL.h:38
ROOT::Math::KahanSum< double > cachedResult_
Definition RooBinnedL.h:45
std::unique_ptr< RooChangeTracker > paramTracker_
Definition RooBinnedL.h:43
std::vector< double > _binw
!
Definition RooBinnedL.h:42
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition Common.h:18
A part of some range delimited by two fractional points between 0 and 1 (inclusive).
Definition RooAbsL.h:65