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