13#ifndef ROOCFUNCTION1BINDING
14#define ROOCFUNCTION1BINDING
35template <
class VO,
class VI>
40template<
class VO,
class VI>
61 return fmap().lookupArgName(
_ptr,iarg) ;
83template<
class VO,
class VI>
86template<
class VO,
class VI>
94template<
class VO,
class VI>
125template<
class VO,
class VI>
129 x(func.argName(0),func.argName(0),this,_x)
138template<
class VO,
class VI>
149template<
class VO,
class VI>
180template<
class VO,
class VI>
184 x(func.argName(0),func.argName(0),this,_x)
193template<
class VO,
class VI>
int Int_t
Signed integer 4 bytes (int)
#define ClassDefOverride(name, id)
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
RooCFunction1Binding is a templated implementation of class RooAbsReal that binds generic C(++) funct...
RooCFunction1Ref< VO, VI > func
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
TObject * clone(const char *newname=nullptr) const override
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
RooCFunction1Ref< VO, VI > func
RooCFunction1PdfBinding()
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
TObject * clone(const char *newname=nullptr) const override
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
func_t _ptr
! Pointer to embedded function
static VO dummyFunction(VI)
void Streamer(TBuffer &) override
Stream an object of class TObject.
VO operator()(VI x) const
const char * name() const
const char * argName(Int_t iarg)
static RooCFunction1Map< VO, VI > & fmap()
static RooCFunction1Map< VO, VI > * _fmap
RooCFunction1Ref(VO(*ptr)(VI)=nullptr)
Name <-> pointer mapping service for C functions of type Func, used to persist the RooCFunction[1-4]R...
Buffer base class used for serializing objects.
Mother of all ROOT objects.
void printCFunctionArgs(std::ostream &os, RooAbsArg const &arg, const char *funcName)
Print arguments of a function binding and name/address of the function pointer.
void streamCFunctionRef(TBuffer &R__b, TObject const &self, Func &ptr, Func dummyFunction, CFunctionMap< Func > &fmap)
Custom streamer for function pointer reference objects.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
double(* CFUNCD1D)(double)
double(* CFUNCD1I)(Int_t)
RooAbsPdf * bindPdf(const char *name, CFUNCD1D func, RooAbsReal &x)
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)