Logo ROOT  
Reference Guide
RooMultiGenFunction.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_MULTI_GEN_FUNCTION
17#define ROO_MULTI_GEN_FUNCTION
18
19#include "RooFunctor.h"
20#include "Math/IFunction.h"
21
22class RooAbsReal ;
23class RooArgList ;
24class RooArgSet ;
25class RooAbsFunc ;
26
28
29public:
30 RooMultiGenFunction(const RooAbsFunc& func) ;
31 RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) ;
32 RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) ;
34 ~RooMultiGenFunction() override ;
35
37 return new RooMultiGenFunction(*this) ;
38 }
39
40 unsigned int NDim() const override { return _ftor.nObs() ; }
41
42protected:
43
44 double DoEval(const double*) const override ;
45
47
48 ClassDef(RooMultiGenFunction,0) // Export RooAbsReal as functor
49};
50
51#endif
52
#define ClassDef(name, id)
Definition: Rtypes.h:335
Documentation for the abstract class IBaseFunctionMultiDim.
Definition: IFunction.h:62
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition: RooAbsFunc.h:27
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:62
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:56
Lightweight interface adaptor that exports a RooAbsPdf as a functor.
Definition: RooFunctor.h:25
Int_t nObs() const
Definition: RooFunctor.h:34
Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IMultiGenFunction.
ROOT::Math::IBaseFunctionMultiDim * Clone() const override
Clone a function.
RooMultiGenFunction(const RooAbsFunc &func)
double DoEval(const double *) const override
unsigned int NDim() const override
Retrieve the dimension of the function.