Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooMultiGenFunction.cxx
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
17
18/**
19\file RooMultiGenFunction.cxx
20\class RooMultiGenFunction
21\ingroup Roofitcore
22
23Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IMultiGenFunction
24**/
25
26#include "Riostream.h"
27
28#include "RooMultiGenFunction.h"
29#include "RooRealBinding.h"
30#include "RooAbsReal.h"
31#include "RooAbsPdf.h"
32#include "RooArgSet.h"
33
34#include <assert.h>
35
36
37
38using namespace std;
39
41;
42
43
44////////////////////////////////////////////////////////////////////////////////
45
47 _ftor(func)
48{
49}
50
51
52
53////////////////////////////////////////////////////////////////////////////////
54
55RooMultiGenFunction::RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) :
56 _ftor(func,observables,parameters)
57{
58}
59
60
61////////////////////////////////////////////////////////////////////////////////
62
63RooMultiGenFunction::RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) :
64 _ftor(func,observables,parameters,nset)
65{
66}
67
68
69////////////////////////////////////////////////////////////////////////////////
70
72 ROOT::Math::IMultiGenFunction(other), _ftor(other._ftor)
73{
74}
75
76
77////////////////////////////////////////////////////////////////////////////////
78
80{
81}
82
83
84////////////////////////////////////////////////////////////////////////////////
85
86double RooMultiGenFunction::DoEval(const double* x) const
87{
88 return _ftor(x) ;
89}
90
91
92
#define ClassImp(name)
Definition Rtypes.h:377
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:55
Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IMultiGenFunction.
RooMultiGenFunction(const RooAbsFunc &func)
double DoEval(const double *) const override
Double_t x[n]
Definition legend1.C:17
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.