Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
buildLikelihood.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_likelihood_builders
14#define ROOT_ROOFIT_TESTSTATISTICS_likelihood_builders
15
16#include <RooGlobalFunc.h>
18
19#include <memory>
20
21// forward declarations
22class RooAbsPdf;
23class RooAbsData;
24
25namespace RooFit {
26namespace TestStatistics {
27
29public:
31 std::unique_ptr<RooAbsL> build();
32
34 NLLFactory &ConstrainedParameters(const RooArgSet &constrainedParameters);
35 NLLFactory &ExternalConstraints(const RooArgSet &externalconstraints);
36 NLLFactory &GlobalObservables(const RooArgSet &globalObservables);
37 NLLFactory &GlobalObservablesTag(const char *globalObservablesTag);
39
40private:
41 std::vector<std::unique_ptr<RooAbsL>> getSimultaneousComponents();
42
45
52};
53
54/// Delegating function to build a likelihood without additional arguments.
55inline std::unique_ptr<RooAbsL> buildLikelihood(RooAbsPdf *pdf, RooAbsData *data)
56{
57 return NLLFactory{*pdf, *data}.build();
58}
59
60} // namespace TestStatistics
61} // namespace RooFit
62
63#endif // ROOT_ROOFIT_TESTSTATISTICS_likelihood_builders
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Abstract base class for binned and unbinned datasets.
Definition RooAbsData.h:57
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
static EvalBackend Legacy()
std::unique_ptr< RooAbsL > build()
std::vector< std::unique_ptr< RooAbsL > > getSimultaneousComponents()
NLLFactory & ExternalConstraints(const RooArgSet &externalconstraints)
NLLFactory & Extended(RooAbsL::Extended extended)
NLLFactory & GlobalObservables(const RooArgSet &globalObservables)
NLLFactory & ConstrainedParameters(const RooArgSet &constrainedParameters)
NLLFactory & GlobalObservablesTag(const char *globalObservablesTag)
std::unique_ptr< RooAbsL > buildLikelihood(RooAbsPdf *pdf, RooAbsData *data)
Delegating function to build a likelihood without additional arguments.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26