ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id: RooGenFunction.cxx 28259 2009-04-16 16:21:16Z wouter $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/


//////////////////////////////////////////////////////////////////////////////
//
// BEGIN_HTML
// Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IGenFunction
// END_HTML
//


#include "RooFit.h"
#include "Riostream.h"

#include "RooGenFunction.h"
#include "RooRealBinding.h"
#include "RooAbsReal.h"
#include "RooAbsPdf.h"
#include "RooArgSet.h"

#include <assert.h>



ClassImp(RooGenFunction)
;

//_____________________________________________________________________________
RooGenFunction::RooGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) :
  _ftor(func,observables,parameters,observables)
{
}


//_____________________________________________________________________________
RooGenFunction::RooGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) :
  _ftor(func,observables,parameters,nset)
{
}


//_____________________________________________________________________________
RooGenFunction::RooGenFunction(const RooGenFunction& other) :
  ROOT::Math::IGenFunction(other), _ftor(other._ftor)
{
}


//_____________________________________________________________________________
RooGenFunction::~RooGenFunction() 
{
}


//_____________________________________________________________________________
double RooGenFunction::DoEval(double x) const 
{
  return _ftor(x) ;
}


 RooGenFunction.cxx:1
 RooGenFunction.cxx:2
 RooGenFunction.cxx:3
 RooGenFunction.cxx:4
 RooGenFunction.cxx:5
 RooGenFunction.cxx:6
 RooGenFunction.cxx:7
 RooGenFunction.cxx:8
 RooGenFunction.cxx:9
 RooGenFunction.cxx:10
 RooGenFunction.cxx:11
 RooGenFunction.cxx:12
 RooGenFunction.cxx:13
 RooGenFunction.cxx:14
 RooGenFunction.cxx:15
 RooGenFunction.cxx:16
 RooGenFunction.cxx:17
 RooGenFunction.cxx:18
 RooGenFunction.cxx:19
 RooGenFunction.cxx:20
 RooGenFunction.cxx:21
 RooGenFunction.cxx:22
 RooGenFunction.cxx:23
 RooGenFunction.cxx:24
 RooGenFunction.cxx:25
 RooGenFunction.cxx:26
 RooGenFunction.cxx:27
 RooGenFunction.cxx:28
 RooGenFunction.cxx:29
 RooGenFunction.cxx:30
 RooGenFunction.cxx:31
 RooGenFunction.cxx:32
 RooGenFunction.cxx:33
 RooGenFunction.cxx:34
 RooGenFunction.cxx:35
 RooGenFunction.cxx:36
 RooGenFunction.cxx:37
 RooGenFunction.cxx:38
 RooGenFunction.cxx:39
 RooGenFunction.cxx:40
 RooGenFunction.cxx:41
 RooGenFunction.cxx:42
 RooGenFunction.cxx:43
 RooGenFunction.cxx:44
 RooGenFunction.cxx:45
 RooGenFunction.cxx:46
 RooGenFunction.cxx:47
 RooGenFunction.cxx:48
 RooGenFunction.cxx:49
 RooGenFunction.cxx:50
 RooGenFunction.cxx:51
 RooGenFunction.cxx:52
 RooGenFunction.cxx:53
 RooGenFunction.cxx:54
 RooGenFunction.cxx:55
 RooGenFunction.cxx:56
 RooGenFunction.cxx:57
 RooGenFunction.cxx:58
 RooGenFunction.cxx:59
 RooGenFunction.cxx:60
 RooGenFunction.cxx:61
 RooGenFunction.cxx:62
 RooGenFunction.cxx:63
 RooGenFunction.cxx:64
 RooGenFunction.cxx:65
 RooGenFunction.cxx:66
 RooGenFunction.cxx:67
 RooGenFunction.cxx:68
 RooGenFunction.cxx:69
 RooGenFunction.cxx:70
 RooGenFunction.cxx:71
 RooGenFunction.cxx:72
 RooGenFunction.cxx:73
 RooGenFunction.cxx:74
 RooGenFunction.cxx:75