Logo ROOT  
Reference Guide
RooUnbinnedL.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_RooUnbinnedL
14#define ROOT_ROOFIT_TESTSTATISTICS_RooUnbinnedL
15
17
18#include "Math/Util.h" // KahanSum
19
20// forward declarations
21class RooAbsPdf;
22class RooAbsData;
23class RooArgSet;
24namespace RooBatchCompute {
25struct RunContext;
26}
28
29namespace RooFit {
30namespace TestStatistics {
31
32class RooUnbinnedL : public RooAbsL {
33public:
35 bool useBatchedEvaluations = false);
36 RooUnbinnedL(const RooUnbinnedL &other);
37 ~RooUnbinnedL() override;
38 bool setApplyWeightSquared(bool flag);
39
41 evaluatePartition(Section events, std::size_t components_begin, std::size_t components_end) override;
42
43 void setUseBatchedEvaluations(bool flag);
44
45 std::string GetClassName() const override { return "RooUnbinnedL"; }
46
47private:
48 bool apply_weight_squared = false; ///< Apply weights squared?
49 mutable bool _first = true; ///<!
51 std::unique_ptr<RooChangeTracker> paramTracker_;
52 Section lastSection_ = {0, 0}; // used for cache together with the parameter tracker
54};
55
56} // namespace TestStatistics
57} // namespace RooFit
58
59#endif // ROOT_ROOFIT_TESTSTATISTICS_RooUnbinnedL
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:61
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:56
RooChangeTracker is a meta object that tracks value changes in a given set of RooAbsArgs by registeri...
ROOT::Math::KahanSum< double > cachedResult_
Definition: RooUnbinnedL.h:53
bool setApplyWeightSquared(bool flag)
Returns true if value was changed, false otherwise.
ROOT::Math::KahanSum< double > evaluatePartition(Section events, 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::unique_ptr< RooChangeTracker > paramTracker_
Definition: RooUnbinnedL.h:51
bool apply_weight_squared
Apply weights squared?
Definition: RooUnbinnedL.h:48
std::string GetClassName() const override
Definition: RooUnbinnedL.h:45
RooUnbinnedL(RooAbsPdf *pdf, RooAbsData *data, RooAbsL::Extended extended=RooAbsL::Extended::Auto, bool useBatchedEvaluations=false)
Namespace for dispatching RooFit computations to various backends.
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:58