RooMultiGenFunction.cxx

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  * @(#)root/roofitcore:$Id: RooMultiGenFunction.cxx 28259 2009-04-16 16:21:16Z wouter $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 
00017 
00018 //////////////////////////////////////////////////////////////////////////////
00019 //
00020 // BEGIN_HTML
00021 // Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IMultiGenFunction
00022 // END_HTML
00023 //
00024 
00025 
00026 #include "RooFit.h"
00027 #include "Riostream.h"
00028 
00029 #include "RooMultiGenFunction.h"
00030 #include "RooRealBinding.h"
00031 #include "RooAbsReal.h"
00032 #include "RooAbsPdf.h"
00033 #include "RooArgSet.h"
00034 
00035 #include <assert.h>
00036 
00037 
00038 
00039 ClassImp(RooMultiGenFunction)
00040 ;
00041 
00042 
00043 //_____________________________________________________________________________
00044 RooMultiGenFunction::RooMultiGenFunction(const RooAbsFunc& func) :
00045   _ftor(func) 
00046 {
00047 }
00048 
00049 
00050 
00051 //_____________________________________________________________________________
00052 RooMultiGenFunction::RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) :
00053   _ftor(func,observables,parameters)
00054 {
00055 }
00056 
00057 
00058 //_____________________________________________________________________________
00059 RooMultiGenFunction::RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) :
00060   _ftor(func,observables,parameters,nset)
00061 {
00062 }
00063 
00064 
00065 //_____________________________________________________________________________
00066 RooMultiGenFunction::RooMultiGenFunction(const RooMultiGenFunction& other) :
00067   ROOT::Math::IMultiGenFunction(other), _ftor(other._ftor)
00068 {
00069 }
00070 
00071 
00072 //_____________________________________________________________________________
00073 RooMultiGenFunction::~RooMultiGenFunction() 
00074 {
00075 }
00076 
00077 
00078 //_____________________________________________________________________________
00079 double RooMultiGenFunction::DoEval(const double* x) const 
00080 {
00081   return _ftor(x) ;
00082 }
00083 
00084 
00085 

Generated on Tue Jul 5 15:06:52 2011 for ROOT_528-00b_version by  doxygen 1.5.1