// RooIntegrator2D implements a numeric two-dimensiona integrator
// in terms of a recursive application of RooIntegrator1D
// END_HTML
#include "RooFit.h"
#include "TClass.h"
#include "RooIntegrator2D.h"
#include "RooArgSet.h"
#include "RooIntegratorBinding.h"
#include "RooRealVar.h"
#include "RooNumber.h"
#include "RooNumIntFactory.h"
#include <assert.h>
ClassImp(RooIntegrator2D)
;
void RooIntegrator2D::registerIntegrator(RooNumIntFactory& fact)
{
RooIntegrator2D* proto = new RooIntegrator2D() ;
fact.storeProtoIntegrator(proto,RooArgSet(),RooIntegrator1D::Class()->GetName()) ;
RooNumIntConfig::defaultConfig().method2D().setLabel(proto->IsA()->GetName()) ;
}
RooIntegrator2D::RooIntegrator2D() :
_xIntegrator(0), _xint(0)
{
}
RooIntegrator2D::RooIntegrator2D(const RooAbsFunc& function, RooIntegrator1D::SummationRule rule,
Int_t maxSteps, Double_t eps) :
RooIntegrator1D(*(_xint=new RooIntegratorBinding(*(_xIntegrator=new RooIntegrator1D(function,rule,maxSteps,eps)))),rule,maxSteps,eps)
{
}
RooIntegrator2D::RooIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax,
Double_t ymin, Double_t ymax,
SummationRule rule, Int_t maxSteps, Double_t eps) :
RooIntegrator1D(*(_xint=new RooIntegratorBinding(*(_xIntegrator=new RooIntegrator1D(function,ymin,ymax,rule,maxSteps,eps)))),xmin,xmax,rule,maxSteps,eps)
{
}
RooIntegrator2D::RooIntegrator2D(const RooAbsFunc& function, const RooNumIntConfig& config) :
RooIntegrator1D(*(_xint=new RooIntegratorBinding(*(_xIntegrator=new RooIntegrator1D(function,config)))),config)
{
}
RooIntegrator2D::RooIntegrator2D(const RooAbsFunc& function, Double_t xmin, Double_t xmax,
Double_t ymin, Double_t ymax,
const RooNumIntConfig& config) :
RooIntegrator1D(*(_xint=new RooIntegratorBinding(*(_xIntegrator=new RooIntegrator1D(function,ymin,ymax,config)))),xmin,xmax,config)
{
}
RooAbsIntegrator* RooIntegrator2D::clone(const RooAbsFunc& function, const RooNumIntConfig& config) const
{
return new RooIntegrator2D(function,config) ;
}
RooIntegrator2D::~RooIntegrator2D()
{
delete _xint ;
delete _xIntegrator ;
}
Bool_t RooIntegrator2D::checkLimits() const
{
Bool_t ret = RooIntegrator1D::checkLimits() ;
ret &= _xIntegrator->checkLimits() ;
return ret ;
}
Last change: Wed Jun 25 08:33:12 2008
Last generated: 2008-06-25 08:33
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.