Logo ROOT  
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
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
28 RooAbsReal(other,name),
29 pdf("pdf",this,other.pdf)
30 {
31 }
32
33
34
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
#define ClassImp(name)
Definition Rtypes.h:382
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
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
const T & arg() const
Return reference to object held in proxy.