Logo ROOT   6.12/07
Reference Guide
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 
23 public:
24 
25  // Constructors, assignment etc
26  RooIntegrator2D() ;
28  Int_t maxSteps= 0, Double_t eps= 0) ;
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
RooIntegrator2D implements a numeric two-dimensiona integrator in terms of a recursive application of...
RooAbsIntegrator is the abstract interface for integrators of real-valued functions that implement th...
float xmin
Definition: THbookFile.cxx:93
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
virtual Bool_t checkLimits() const
Verify that the limits are OK for this integrator (i.e. no open-ended ranges)
float ymin
Definition: THbookFile.cxx:93
virtual Bool_t canIntegrateOpenEnded() const
RooNumIntFactory is a factory to instantiate numeric integrators from a given function binding and a ...
virtual RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const
Clone integrator with new function and configuration. Needed to support RooNumIntFactory.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual ~RooIntegrator2D()
Destructor.
virtual Bool_t canIntegrate1D() const
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual Bool_t canIntegrateND() const
static void registerIntegrator(RooNumIntFactory &fact)
Register RooIntegrator2D, is parameters and capabilities with RooNumIntFactory.
float ymax
Definition: THbookFile.cxx:93
float xmax
Definition: THbookFile.cxx:93
RooIntegrator1D * _xIntegrator
const Bool_t kFALSE
Definition: RtypesCore.h:88
RooIntegrator1D implements an adaptive one-dimensional numerical integration algorithm.
double Double_t
Definition: RtypesCore.h:55
RooAbsFunc * _xint
virtual Bool_t canIntegrate2D() const
RooIntegrator2D()
Default constructor.
const Bool_t kTRUE
Definition: RtypesCore.h:87
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition: RooAbsFunc.h:23