Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooTFnPdfBinding.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 *
4 * Copyright (c) 2023, CERN
5 *
6 * Redistribution and use in source and binary forms,
7 * with or without modification, are permitted according to the terms
8 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
9 */
10
11#ifndef ROOTFNPDFBINDING
12#define ROOTFNPDFBINDING
13
14#include "RooListProxy.h"
15#include "RooAbsPdf.h"
16class TF1 ;
17class TF2 ;
18class TF3 ;
19
21public:
22 RooTFnPdfBinding() = default;
23 RooTFnPdfBinding(const char *name, const char *title, TF1* func, const RooArgList& list);
24 RooTFnPdfBinding(const RooTFnPdfBinding& other, const char* name=nullptr) ;
25 TObject* clone(const char* newname) const override { return new RooTFnPdfBinding(*this,newname); }
26
27 void printArgs(std::ostream& os) const override ;
28
29protected:
30
32 TF1* _func = nullptr;
33
34 double evaluate() const override ;
35
36private:
37
38 ClassDefOverride(RooTFnPdfBinding,1) // RooAbsPdf binding to ROOT TF[123] functions
39};
40
41
42namespace RooFit {
43
47
48}
49
50
51#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
TObject * clone(const char *newname) const override
RooTFnPdfBinding()=default
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
1-Dim function class
Definition TF1.h:233
A 2-Dim function with parameters.
Definition TF2.h:29
A 3-Dim function with parameters.
Definition TF3.h:28
Mother of all ROOT objects.
Definition TObject.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26
RooAbsPdf * bindPdf(const char *name, CFUNCD1D func, RooAbsReal &x)