Logo ROOT  
Reference Guide
RooGenFunction.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * @(#)root/roofitcore:$Id$
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_GEN_FUNCTION
17#define ROO_GEN_FUNCTION
18
19#include "RooFunctor.h"
20#include "Math/IFunction.h"
21
23
24public:
25 RooGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) ;
26 RooGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) ;
27 RooGenFunction(const RooGenFunction& other) ;
28 ~RooGenFunction() override ;
29
31 return new RooGenFunction(*this) ;
32 }
33
34protected:
35
36 double DoEval(double) const override ;
37
39
40 ClassDef(RooGenFunction,0) // Export RooAbsReal as functor
41};
42
43#endif
44
#define ClassDef(name, id)
Definition: Rtypes.h:335
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Definition: IFunction.h:135
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:64
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:57
Lightweight interface adaptor that exports a RooAbsPdf as a functor.
Definition: RooFunctor.h:25
Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IGenFunction.
ROOT::Math::IBaseFunctionOneDim * Clone() const override
Clone a function.
~RooGenFunction() override
double DoEval(double) const override
implementation of the evaluation function. Must be implemented by derived classes
RooGenFunction(const RooAbsReal &func, const RooArgList &observables, const RooArgList &parameters)
RooFunctor _ftor