Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RooSegmentedIntegrator2D.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooSegmentedIntegrator2D.h,v 1.7 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_SEGMENTED_INTEGRATOR_2D
17 #define ROO_SEGMENTED_INTEGRATOR_2D
18 
20 #include "RooIntegrator1D.h"
21 #include "RooNumIntConfig.h"
22 
23 class RooSegmentedIntegrator2D : public RooSegmentedIntegrator1D {
24 public:
25 
26  // Constructors, assignment etc
27  RooSegmentedIntegrator2D() ;
28 
29  RooSegmentedIntegrator2D(const RooAbsFunc& function, const RooNumIntConfig& config) ;
30  RooSegmentedIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
31  const RooNumIntConfig& config) ;
32  virtual RooAbsIntegrator* clone(const RooAbsFunc& function, const RooNumIntConfig& config) const ;
33  virtual ~RooSegmentedIntegrator2D() ;
34 
35  virtual Bool_t checkLimits() const;
36 
37  virtual Bool_t canIntegrate1D() const { return kFALSE ; }
38  virtual Bool_t canIntegrate2D() const { return kTRUE ; }
39  virtual Bool_t canIntegrateND() const { return kFALSE ; }
40  virtual Bool_t canIntegrateOpenEnded() const { return kFALSE ; }
41 
42 protected:
43 
44  friend class RooNumIntFactory ;
45  static void registerIntegrator(RooNumIntFactory& fact) ;
46 
47  RooSegmentedIntegrator1D* _xIntegrator ;
48  RooAbsFunc* _xint ;
49 
50  ClassDef(RooSegmentedIntegrator2D,0) // 2-dimensional piece-wise numerical integration engine
51 };
52 
53 #endif