ROOT
master
Reference Guide
Loading...
Searching...
No Matches
RooExtendedBinding.cxx
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
#include <iostream>
12
#include <cmath>
13
14
#include "
RooExtendedBinding.h
"
15
#include "
RooAbsPdf.h
"
16
#include "
RooAbsCategory.h
"
17
18
ClassImp
(
RooExtendedBinding
);
19
20
RooExtendedBinding::RooExtendedBinding
(
const
char
*
name
,
const
char
*title,
RooAbsPdf
& _pdf) :
21
RooAbsReal
(
name
,title),
22
pdf(
"pdf"
,
"pdf"
,this,_pdf)
23
{
24
}
25
26
27
RooExtendedBinding::RooExtendedBinding
(
const
RooExtendedBinding
& other,
const
char
*
name
) :
28
RooAbsReal
(other,
name
),
29
pdf(
"pdf"
,this,other.pdf)
30
{
31
}
32
33
34
35
double
RooExtendedBinding::evaluate
()
const
36
{
37
// ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
38
return
(
const_cast<
RooAbsPdf
&
>
(
static_cast<
RooAbsPdf
const&
>
(
pdf
.
arg
()))).expectedEvents(
nullptr
) ;
39
}
40
41
42
RooAbsCategory.h
RooAbsPdf.h
RooExtendedBinding.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
name
char name[80]
Definition
TGX11.cxx:110
RooAbsPdf
Abstract interface for all probability density functions.
Definition
RooAbsPdf.h:40
RooAbsReal
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition
RooAbsReal.h:59
RooExtendedBinding
Definition
RooExtendedBinding.h:20
RooExtendedBinding::pdf
RooRealProxy pdf
Definition
RooExtendedBinding.h:29
RooExtendedBinding::RooExtendedBinding
RooExtendedBinding()
Definition
RooExtendedBinding.h:22
RooExtendedBinding::evaluate
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition
RooExtendedBinding.cxx:35
RooTemplateProxy::arg
const T & arg() const
Return reference to object held in proxy.
Definition
RooTemplateProxy.h:316
roofit
roofitcore
src
RooExtendedBinding.cxx
ROOT master - Reference Guide Generated on Mon Dec 2 2024 09:34:27 (GVA Time) using Doxygen 1.9.8