RooMultiGenFunction.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  * @(#)root/roofitcore:$Id: RooMultiGenFunction.h 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 #ifndef ROO_MULTI_GEN_FUNCTION
00017 #define ROO_MULTI_GEN_FUNCTION
00018 
00019 #include "RooFunctor.h"
00020 #include "Math/IFunction.h"
00021 
00022 class RooAbsReal ;
00023 class RooArgList ;
00024 class RooArgSet ;
00025 class RooAbsFunc ;
00026 
00027 class RooMultiGenFunction : public ROOT::Math::IMultiGenFunction {
00028 
00029 public:
00030   RooMultiGenFunction(const RooAbsFunc& func) ;
00031   RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters) ;
00032   RooMultiGenFunction(const RooAbsReal& func, const RooArgList& observables, const RooArgList& parameters, const RooArgSet& nset) ;
00033   RooMultiGenFunction(const RooMultiGenFunction& other) ;
00034   virtual ~RooMultiGenFunction() ;
00035 
00036   virtual ROOT::Math::IBaseFunctionMultiDim* Clone() const {
00037     return new RooMultiGenFunction(*this) ;
00038   }
00039 
00040 /*   Int_t numCall() const { return _ftor.numCall() ; } */
00041 /*   void resetNumCall() const { _ftor.resetNumCall() ; } */
00042 
00043   unsigned int NDim() const { return _ftor.nObs() ; }
00044 
00045 protected:
00046 
00047   double DoEval(const double*) const ;
00048 
00049   RooFunctor _ftor ;
00050   
00051   ClassDef(RooMultiGenFunction,0) // Export RooAbsReal as functor
00052 };
00053 
00054 #endif
00055 

Generated on Tue Jul 5 14:26:14 2011 for ROOT_528-00b_version by  doxygen 1.5.1