/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooSegmentedIntegrator2D.h,v 1.7 2007/05/11 09:11:30 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_SEGMENTED_INTEGRATOR_2D
#define ROO_SEGMENTED_INTEGRATOR_2D

#include "RooSegmentedIntegrator1D.h"
#include "RooIntegrator1D.h"
#include "RooNumIntConfig.h"

class RooSegmentedIntegrator2D : public RooSegmentedIntegrator1D {
public:

  // Constructors, assignment etc
  RooSegmentedIntegrator2D() ;

  RooSegmentedIntegrator2D(const RooAbsFunc& function, const RooNumIntConfig& config) ;
  RooSegmentedIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
		  const RooNumIntConfig& config) ;
  virtual RooAbsIntegrator* clone(const RooAbsFunc& function, const RooNumIntConfig& config) const ;
  virtual ~RooSegmentedIntegrator2D() ;

  virtual Bool_t checkLimits() const;

  virtual Bool_t canIntegrate1D() const { return kFALSE ; }
  virtual Bool_t canIntegrate2D() const { return kTRUE ; }
  virtual Bool_t canIntegrateND() const { return kFALSE ; }
  virtual Bool_t canIntegrateOpenEnded() const { return kFALSE ; }

protected:

  friend class RooNumIntFactory ;
  static void registerIntegrator(RooNumIntFactory& fact) ;	

  RooSegmentedIntegrator1D* _xIntegrator ;
  RooAbsFunc* _xint ;

  ClassDef(RooSegmentedIntegrator2D,0) // 2-dimensional piece-wise numerical integration engine
};

#endif
 RooSegmentedIntegrator2D.h:1
 RooSegmentedIntegrator2D.h:2
 RooSegmentedIntegrator2D.h:3
 RooSegmentedIntegrator2D.h:4
 RooSegmentedIntegrator2D.h:5
 RooSegmentedIntegrator2D.h:6
 RooSegmentedIntegrator2D.h:7
 RooSegmentedIntegrator2D.h:8
 RooSegmentedIntegrator2D.h:9
 RooSegmentedIntegrator2D.h:10
 RooSegmentedIntegrator2D.h:11
 RooSegmentedIntegrator2D.h:12
 RooSegmentedIntegrator2D.h:13
 RooSegmentedIntegrator2D.h:14
 RooSegmentedIntegrator2D.h:15
 RooSegmentedIntegrator2D.h:16
 RooSegmentedIntegrator2D.h:17
 RooSegmentedIntegrator2D.h:18
 RooSegmentedIntegrator2D.h:19
 RooSegmentedIntegrator2D.h:20
 RooSegmentedIntegrator2D.h:21
 RooSegmentedIntegrator2D.h:22
 RooSegmentedIntegrator2D.h:23
 RooSegmentedIntegrator2D.h:24
 RooSegmentedIntegrator2D.h:25
 RooSegmentedIntegrator2D.h:26
 RooSegmentedIntegrator2D.h:27
 RooSegmentedIntegrator2D.h:28
 RooSegmentedIntegrator2D.h:29
 RooSegmentedIntegrator2D.h:30
 RooSegmentedIntegrator2D.h:31
 RooSegmentedIntegrator2D.h:32
 RooSegmentedIntegrator2D.h:33
 RooSegmentedIntegrator2D.h:34
 RooSegmentedIntegrator2D.h:35
 RooSegmentedIntegrator2D.h:36
 RooSegmentedIntegrator2D.h:37
 RooSegmentedIntegrator2D.h:38
 RooSegmentedIntegrator2D.h:39
 RooSegmentedIntegrator2D.h:40
 RooSegmentedIntegrator2D.h:41
 RooSegmentedIntegrator2D.h:42
 RooSegmentedIntegrator2D.h:43
 RooSegmentedIntegrator2D.h:44
 RooSegmentedIntegrator2D.h:45
 RooSegmentedIntegrator2D.h:46
 RooSegmentedIntegrator2D.h:47
 RooSegmentedIntegrator2D.h:48
 RooSegmentedIntegrator2D.h:49
 RooSegmentedIntegrator2D.h:50
 RooSegmentedIntegrator2D.h:51
 RooSegmentedIntegrator2D.h:52
 RooSegmentedIntegrator2D.h:53