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 
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) ;
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
RooNumIntFactory
Definition: RooNumIntFactory.h:30
ymax
float ymax
Definition: THbookFile.cxx:95
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
RooIntegrator2D::canIntegrateND
virtual Bool_t canIntegrateND() const
Definition: RooIntegrator2D.h:57
RooIntegrator2D::clone
virtual RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const
Clone integrator with new function and configuration. Needed to support RooNumIntFactory.
Definition: RooIntegrator2D.cxx:117
RooNumIntConfig.h
RooIntegrator2D::registerIntegrator
static void registerIntegrator(RooNumIntFactory &fact)
Register RooIntegrator2D, is parameters and capabilities with RooNumIntFactory.
Definition: RooIntegrator2D.cxx:48
xmax
float xmax
Definition: THbookFile.cxx:95
RooIntegrator2D::RooIntegrator2D
RooIntegrator2D()
Default constructor.
Definition: RooIntegrator2D.cxx:59
bool
RooAbsFunc
Definition: RooAbsFunc.h:23
RooIntegrator1D::Trapezoid
@ Trapezoid
Definition: RooIntegrator1D.h:54
RooIntegrator2D::_xIntegrator
RooIntegrator1D * _xIntegrator
Definition: RooIntegrator2D.h:65
xmin
float xmin
Definition: THbookFile.cxx:95
RooIntegrator2D::canIntegrateOpenEnded
virtual Bool_t canIntegrateOpenEnded() const
Definition: RooIntegrator2D.h:58
RooIntegrator1D
Definition: RooIntegrator1D.h:22
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooIntegrator2D::checkLimits
virtual Bool_t checkLimits() const
Verify that the limits are OK for this integrator (i.e. no open-ended ranges)
Definition: RooIntegrator2D.cxx:137
ymin
float ymin
Definition: THbookFile.cxx:95
RooIntegrator2D::_xint
RooAbsFunc * _xint
Definition: RooIntegrator2D.h:66
RooIntegrator1D::SummationRule
SummationRule
Definition: RooIntegrator1D.h:40
RooIntegrator1D.h
Double_t
double Double_t
Definition: RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooNumIntConfig
Definition: RooNumIntConfig.h:25
RooIntegrator2D
Definition: RooIntegrator2D.h:22
RooAbsIntegrator
Definition: RooAbsIntegrator.h:22
RooIntegrator2D::~RooIntegrator2D
virtual ~RooIntegrator2D()
Destructor.
Definition: RooIntegrator2D.cxx:127
RooIntegrator2D::canIntegrate2D
virtual Bool_t canIntegrate2D() const
Definition: RooIntegrator2D.h:56
RooIntegrator2D::canIntegrate1D
virtual Bool_t canIntegrate1D() const
Definition: RooIntegrator2D.h:55
int