Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RooIntegrator2D.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooIntegrator2D.h,v 1.8 2007/05/11 09:11:30 verkerke Exp $
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 #ifndef ROO_INTEGRATOR_2D
17 #define ROO_INTEGRATOR_2D
18 
19 #include "RooIntegrator1D.h"
20 #include "RooNumIntConfig.h"
21 
22 class RooIntegrator2D : public RooIntegrator1D {
23 public:
24 
25  // Constructors, assignment etc
26  RooIntegrator2D() ;
27  RooIntegrator2D(const RooAbsFunc& function, RooIntegrator1D::SummationRule rule=RooIntegrator1D::Trapezoid,
28  Int_t maxSteps= 0, Double_t eps= 0) ;
29  RooIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
30  SummationRule rule= Trapezoid, Int_t maxSteps= 0, Double_t eps= 0) ;
31 
32  RooIntegrator2D(const RooAbsFunc& function, const RooNumIntConfig& config) ;
33  RooIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
34  const RooNumIntConfig& config) ;
35 
36  virtual RooAbsIntegrator* clone(const RooAbsFunc& function, const RooNumIntConfig& config) const ;
37  virtual ~RooIntegrator2D() ;
38 
39  virtual Bool_t checkLimits() const;
40 
41  virtual Bool_t canIntegrate1D() const { return kFALSE ; }
42  virtual Bool_t canIntegrate2D() const { return kTRUE ; }
43  virtual Bool_t canIntegrateND() const { return kFALSE ; }
44  virtual Bool_t canIntegrateOpenEnded() const { return kFALSE ; }
45 
46 protected:
47 
48  friend class RooNumIntFactory ;
49  static void registerIntegrator(RooNumIntFactory& fact) ;
50 
51  RooIntegrator1D* _xIntegrator ; // Integrator in first dimension
52  RooAbsFunc* _xint ; // Function binding representing integral over first dimension
53 
54  ClassDef(RooIntegrator2D,0) // 2-dimensional numerical integration engine
55 };
56 
57 #endif