RooIntegrator2D.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooIntegrator2D.h,v 1.8 2007/05/11 09:11:30 verkerke Exp $
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_INTEGRATOR_2D
00017 #define ROO_INTEGRATOR_2D
00018 
00019 #include "RooIntegrator1D.h"
00020 #include "RooNumIntConfig.h"
00021 
00022 class RooIntegrator2D : public RooIntegrator1D {
00023 public:
00024 
00025   // Constructors, assignment etc
00026   RooIntegrator2D() ;
00027   RooIntegrator2D(const RooAbsFunc& function, RooIntegrator1D::SummationRule rule=RooIntegrator1D::Trapezoid,
00028                   Int_t maxSteps= 0, Double_t eps= 0) ; 
00029   RooIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
00030                   SummationRule rule= Trapezoid, Int_t maxSteps= 0, Double_t eps= 0) ; 
00031 
00032   RooIntegrator2D(const RooAbsFunc& function, const RooNumIntConfig& config) ;
00033   RooIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
00034                   const RooNumIntConfig& config) ;
00035 
00036   virtual RooAbsIntegrator* clone(const RooAbsFunc& function, const RooNumIntConfig& config) const ;
00037   virtual ~RooIntegrator2D() ;
00038 
00039   virtual Bool_t checkLimits() const;
00040 
00041   virtual Bool_t canIntegrate1D() const { return kFALSE ; }
00042   virtual Bool_t canIntegrate2D() const { return kTRUE ; }
00043   virtual Bool_t canIntegrateND() const { return kFALSE ; }
00044   virtual Bool_t canIntegrateOpenEnded() const { return kFALSE ; }
00045 
00046 protected:
00047 
00048   friend class RooNumIntFactory ;
00049   static void registerIntegrator(RooNumIntFactory& fact) ;      
00050 
00051   RooIntegrator1D* _xIntegrator ; // Integrator in first dimension
00052   RooAbsFunc* _xint ; // Function binding representing integral over first dimension
00053 
00054   ClassDef(RooIntegrator2D,0) // 2-dimensional numerical integration engine
00055 };
00056 
00057 #endif

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