45using std::endl, std::ostream, std::string;
57 vars(
"vars",
"vars",this)
61 coutE(InputArguments) <<
"RooFunctorBinding::ctor(" << GetName() <<
") ERROR number of provided variables (" << v.size()
62 <<
") does not match dimensionality of function (" << ftor.NDim() <<
")" << std::endl ;
63 throw string(
"RooFunctor::ctor ERROR") ;
65 x =
new double[
func->NDim()] ;
79 os <<
"[ function=" <<
func <<
" " ;
93 for (std::size_t i=0 ; i<
vars.size() ; i++) {
109 vars(
"vars",
"vars",this)
113 coutE(InputArguments) <<
"RooFunctorPdfBinding::ctor(" << GetName() <<
") ERROR number of provided variables (" << v.size()
114 <<
") does not match dimensionality of function (" << ftor.NDim() <<
")" << std::endl ;
115 throw string(
"RooFunctor::ctor ERROR") ;
117 x =
new double[
func->NDim()] ;
131 os <<
"[ function=" <<
func <<
" " ;
145 for (std::size_t i=0 ; i<
vars.size() ; i++) {
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
virtual unsigned int NDim() const =0
Retrieve the dimension of the function.
Int_t numProxies() const
Return the number of registered proxies.
RooAbsProxy * getProxy(Int_t index) const
Return the nth proxy from the proxy list.
Abstract interface for all probability density functions.
RooAbsPdf()
Default constructor.
Abstract interface for proxy classes.
virtual void print(std::ostream &os, bool addContents=false) const
Print proxy name.
virtual const char * name() const
Abstract base class for objects that represent a real value and implements functionality common to al...
RooAbsReal()
coverity[UNINIT_CTOR] Default constructor
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooFunctorBinding makes math functions from ROOT usable in RooFit.
const ROOT::Math::IBaseFunctionMultiDim * func
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
RooFunctorBinding()=default
RooFunctorPdfBinding makes math functions from ROOT usable as PDFs in RooFit.
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
RooFunctorPdfBinding()=default
const ROOT::Math::IBaseFunctionMultiDim * func
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
IBaseFunctionMultiDimTempl< double > IBaseFunctionMultiDim
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
RooAbsPdf * bindPdf(const char *name, CFUNCD1D func, RooAbsReal &x)
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)