RooMCIntegrator Class Reference

#include <RooMCIntegrator.h>

Inheritance diagram for RooMCIntegrator:

RooAbsIntegrator RooAbsIntegrator TObject TObject TObject TObject List of all members.

Public Types

enum  SamplingMode
enum  GeneratorType
enum  Stage
enum  SamplingMode
enum  GeneratorType
enum  Stage

Public Member Functions

 RooMCIntegrator ()
 RooMCIntegrator (const RooAbsFunc &function, SamplingMode mode=Importance, GeneratorType genType=QuasiRandom, Bool_t verbose=kFALSE)
 RooMCIntegrator (const RooAbsFunc &function, const RooNumIntConfig &config)
virtual RooAbsIntegratorclone (const RooAbsFunc &function, const RooNumIntConfig &config) const
virtual ~RooMCIntegrator ()
virtual Bool_t checkLimits () const
virtual Double_t integral (const Double_t *yvec=0)
Double_t vegas (Stage stage, UInt_t calls, UInt_t iterations, Double_t *absError=0)
Double_t getAlpha () const
void setAlpha (Double_t alpha)
GeneratorType getGenType () const
void setGenType (GeneratorType type)
const RooGridgrid () const
virtual Bool_t canIntegrate1D () const
virtual Bool_t canIntegrate2D () const
virtual Bool_t canIntegrateND () const
virtual Bool_t canIntegrateOpenEnded () const
 RooMCIntegrator ()
 RooMCIntegrator (const RooAbsFunc &function, SamplingMode mode=Importance, GeneratorType genType=QuasiRandom, Bool_t verbose=kFALSE)
 RooMCIntegrator (const RooAbsFunc &function, const RooNumIntConfig &config)
virtual RooAbsIntegratorclone (const RooAbsFunc &function, const RooNumIntConfig &config) const
virtual ~RooMCIntegrator ()
virtual Bool_t checkLimits () const
virtual Double_t integral (const Double_t *yvec=0)
Double_t vegas (Stage stage, UInt_t calls, UInt_t iterations, Double_t *absError=0)
Double_t getAlpha () const
void setAlpha (Double_t alpha)
GeneratorType getGenType () const
void setGenType (GeneratorType type)
const RooGridgrid () const
virtual Bool_t canIntegrate1D () const
virtual Bool_t canIntegrate2D () const
virtual Bool_t canIntegrateND () const
virtual Bool_t canIntegrateOpenEnded () const

Static Protected Member Functions

static void registerIntegrator (RooNumIntFactory &fact)
static void registerIntegrator (RooNumIntFactory &fact)

Protected Attributes

RooGrid _grid
Bool_t _verbose
Double_t _alpha
Int_t _mode
GeneratorType _genType
Int_t _nRefineIter
Int_t _nRefinePerDim
Int_t _nIntegratePerDim
TStopwatch _timer
Double_t _jac
Double_t _wtd_int_sum
Double_t _sum_wgts
Double_t _chi_sum
Double_t _chisq
Double_t _result
Double_t _sigma
UInt_t _it_start
UInt_t _it_num
UInt_t _samples
UInt_t _calls_per_box

Friends

class RooNumIntFactory

Detailed Description

Definition at line 24 of file RooMCIntegrator.h.


Member Enumeration Documentation

enum RooMCIntegrator::SamplingMode

Definition at line 28 of file RooMCIntegrator.h.

enum RooMCIntegrator::GeneratorType

Definition at line 29 of file RooMCIntegrator.h.

enum RooMCIntegrator::Stage

Definition at line 40 of file RooMCIntegrator.h.

enum RooMCIntegrator::SamplingMode

Definition at line 28 of file RooMCIntegrator.h.

enum RooMCIntegrator::GeneratorType

Definition at line 29 of file RooMCIntegrator.h.

enum RooMCIntegrator::Stage

Definition at line 40 of file RooMCIntegrator.h.


Constructor & Destructor Documentation

RooMCIntegrator::RooMCIntegrator (  ) 

Definition at line 92 of file RooMCIntegrator.cxx.

Referenced by clone(), and registerIntegrator().

RooMCIntegrator::RooMCIntegrator ( const RooAbsFunc function,
SamplingMode  mode = Importance,
GeneratorType  genType = QuasiRandom,
Bool_t  verbose = kFALSE 
)

Definition at line 102 of file RooMCIntegrator.cxx.

References _grid, RooAbsIntegrator::_valid, _verbose, RooGrid::isValid(), and RooGrid::Print().

RooMCIntegrator::RooMCIntegrator ( const RooAbsFunc function,
const RooNumIntConfig config 
)

Definition at line 122 of file RooMCIntegrator.cxx.

References _alpha, _genType, _grid, _mode, _nIntegratePerDim, _nRefineIter, _nRefinePerDim, RooAbsIntegrator::_valid, _verbose, RooArgSet::getCatIndex(), TObject::GetName(), RooArgSet::getRealValue(), Importance, RooGrid::isValid(), RooGrid::Print(), and QuasiRandom.

RooMCIntegrator::~RooMCIntegrator (  )  [virtual]

Definition at line 156 of file RooMCIntegrator.cxx.

RooMCIntegrator::RooMCIntegrator (  ) 

RooMCIntegrator::RooMCIntegrator ( const RooAbsFunc function,
SamplingMode  mode = Importance,
GeneratorType  genType = QuasiRandom,
Bool_t  verbose = kFALSE 
)

RooMCIntegrator::RooMCIntegrator ( const RooAbsFunc function,
const RooNumIntConfig config 
)

virtual RooMCIntegrator::~RooMCIntegrator (  )  [virtual]


Member Function Documentation

RooAbsIntegrator * RooMCIntegrator::clone ( const RooAbsFunc function,
const RooNumIntConfig config 
) const [virtual]

Implements RooAbsIntegrator.

Definition at line 145 of file RooMCIntegrator.cxx.

References RooMCIntegrator().

Bool_t RooMCIntegrator::checkLimits (  )  const [virtual]

Reimplemented from RooAbsIntegrator.

Definition at line 164 of file RooMCIntegrator.cxx.

References _grid, RooGrid::initialize(), and RooAbsIntegrator::integrand().

Double_t RooMCIntegrator::integral ( const Double_t yvec = 0  )  [virtual]

Implements RooAbsIntegrator.

Definition at line 176 of file RooMCIntegrator.cxx.

References _grid, _nIntegratePerDim, _nRefineIter, _nRefinePerDim, _timer, AllStages, RooGrid::getDimension(), kTRUE, ReuseGrid, TStopwatch::Start(), and vegas().

Double_t RooMCIntegrator::vegas ( Stage  stage,
UInt_t  calls,
UInt_t  iterations,
Double_t absError = 0 
)

Definition at line 192 of file RooMCIntegrator.cxx.

References _alpha, _calls_per_box, _chi_sum, _chisq, RooAbsIntegrator::_function, _genType, _grid, _it_num, _it_start, _jac, _mode, _result, _samples, _sigma, _sum_wgts, _timer, _wtd_int_sum, RooGrid::accumulate(), AllStages, boxes, RooGrid::createIndexVector(), RooGrid::createPoint(), d, RooGrid::firstBox(), floor(), RooGrid::generatePoint(), RooGrid::getDimension(), RooGrid::getNBins(), RooGrid::getVolume(), Importance, ImportanceOnly, RooGrid::initialize(), RooAbsIntegrator::integrand(), RooFit::Integration, k, kFALSE, kTRUE, m, RooGrid::maxBins, RooGrid::nextBox(), oocoutW, oocxcoutD, oodologD, TMath::Power(), RooGrid::Print(), QuasiRandom, TStopwatch::RealTime(), RooGrid::refine(), RefineGrid, RooGrid::resetValues(), RooGrid::resize(), ReuseGrid, RooGrid::setNBoxes(), sqrt(), TStopwatch::Start(), Stratified, and x.

Referenced by integral().

Double_t RooMCIntegrator::getAlpha (  )  const [inline]

Definition at line 43 of file RooMCIntegrator.h.

References _alpha.

void RooMCIntegrator::setAlpha ( Double_t  alpha  )  [inline]

Definition at line 44 of file RooMCIntegrator.h.

References _alpha.

GeneratorType RooMCIntegrator::getGenType (  )  const [inline]

Definition at line 46 of file RooMCIntegrator.h.

References _genType.

void RooMCIntegrator::setGenType ( GeneratorType  type  )  [inline]

Definition at line 47 of file RooMCIntegrator.h.

References _genType.

const RooGrid& RooMCIntegrator::grid (  )  const [inline]

Definition at line 49 of file RooMCIntegrator.h.

References _grid.

virtual Bool_t RooMCIntegrator::canIntegrate1D (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 51 of file RooMCIntegrator.h.

References kTRUE.

virtual Bool_t RooMCIntegrator::canIntegrate2D (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 52 of file RooMCIntegrator.h.

References kTRUE.

virtual Bool_t RooMCIntegrator::canIntegrateND (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 53 of file RooMCIntegrator.h.

References kTRUE.

virtual Bool_t RooMCIntegrator::canIntegrateOpenEnded (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 54 of file RooMCIntegrator.h.

References kFALSE.

void RooMCIntegrator::registerIntegrator ( RooNumIntFactory fact  )  [static, protected]

Definition at line 53 of file RooMCIntegrator.cxx.

References RooNumIntConfig::defaultConfig(), RooCategory::defineType(), TObject::GetName(), Importance, ImportanceOnly, RooNumIntConfig::methodND(), PseudoRandom, QuasiRandom, RooMCIntegrator(), RooCategory::setIndex(), RooCategory::setLabel(), RooNumIntFactory::storeProtoIntegrator(), Stratified, and verbose.

Referenced by RooNumIntFactory::RooNumIntFactory().

virtual RooAbsIntegrator* RooMCIntegrator::clone ( const RooAbsFunc function,
const RooNumIntConfig config 
) const [virtual]

Implements RooAbsIntegrator.

virtual Bool_t RooMCIntegrator::checkLimits (  )  const [virtual]

Reimplemented from RooAbsIntegrator.

virtual Double_t RooMCIntegrator::integral ( const Double_t yvec = 0  )  [virtual]

Implements RooAbsIntegrator.

Double_t RooMCIntegrator::vegas ( Stage  stage,
UInt_t  calls,
UInt_t  iterations,
Double_t absError = 0 
)

Double_t RooMCIntegrator::getAlpha (  )  const [inline]

Definition at line 43 of file RooMCIntegrator.h.

References _alpha.

void RooMCIntegrator::setAlpha ( Double_t  alpha  )  [inline]

Definition at line 44 of file RooMCIntegrator.h.

References _alpha.

GeneratorType RooMCIntegrator::getGenType (  )  const [inline]

Definition at line 46 of file RooMCIntegrator.h.

References _genType.

void RooMCIntegrator::setGenType ( GeneratorType  type  )  [inline]

Definition at line 47 of file RooMCIntegrator.h.

References _genType.

const RooGrid& RooMCIntegrator::grid (  )  const [inline]

Definition at line 49 of file RooMCIntegrator.h.

References _grid.

virtual Bool_t RooMCIntegrator::canIntegrate1D (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 51 of file RooMCIntegrator.h.

References kTRUE.

virtual Bool_t RooMCIntegrator::canIntegrate2D (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 52 of file RooMCIntegrator.h.

References kTRUE.

virtual Bool_t RooMCIntegrator::canIntegrateND (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 53 of file RooMCIntegrator.h.

References kTRUE.

virtual Bool_t RooMCIntegrator::canIntegrateOpenEnded (  )  const [inline, virtual]

Implements RooAbsIntegrator.

Definition at line 54 of file RooMCIntegrator.h.

References kFALSE.

static void RooMCIntegrator::registerIntegrator ( RooNumIntFactory fact  )  [static, protected]


Friends And Related Function Documentation

RooNumIntFactory [friend]

Definition at line 58 of file RooMCIntegrator.h.


Member Data Documentation

RooGrid RooMCIntegrator::_grid [mutable, protected]

Definition at line 61 of file RooMCIntegrator.h.

Referenced by checkLimits(), grid(), integral(), RooMCIntegrator(), and vegas().

Bool_t RooMCIntegrator::_verbose [protected]

Definition at line 64 of file RooMCIntegrator.h.

Referenced by RooMCIntegrator().

Double_t RooMCIntegrator::_alpha [protected]

Definition at line 65 of file RooMCIntegrator.h.

Referenced by getAlpha(), RooMCIntegrator(), setAlpha(), and vegas().

Int_t RooMCIntegrator::_mode [protected]

Definition at line 66 of file RooMCIntegrator.h.

Referenced by RooMCIntegrator(), and vegas().

GeneratorType RooMCIntegrator::_genType [protected]

Definition at line 67 of file RooMCIntegrator.h.

Referenced by getGenType(), RooMCIntegrator(), setGenType(), and vegas().

Int_t RooMCIntegrator::_nRefineIter [protected]

Definition at line 68 of file RooMCIntegrator.h.

Referenced by integral(), and RooMCIntegrator().

Int_t RooMCIntegrator::_nRefinePerDim [protected]

Definition at line 69 of file RooMCIntegrator.h.

Referenced by integral(), and RooMCIntegrator().

Int_t RooMCIntegrator::_nIntegratePerDim [protected]

Definition at line 70 of file RooMCIntegrator.h.

Referenced by integral(), and RooMCIntegrator().

TStopwatch RooMCIntegrator::_timer [protected]

Definition at line 72 of file RooMCIntegrator.h.

Referenced by integral(), and vegas().

Double_t RooMCIntegrator::_jac [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

Double_t RooMCIntegrator::_wtd_int_sum [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

Double_t RooMCIntegrator::_sum_wgts [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

Double_t RooMCIntegrator::_chi_sum [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

Double_t RooMCIntegrator::_chisq [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

Double_t RooMCIntegrator::_result [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

Double_t RooMCIntegrator::_sigma [protected]

Definition at line 74 of file RooMCIntegrator.h.

Referenced by vegas().

UInt_t RooMCIntegrator::_it_start [protected]

Definition at line 75 of file RooMCIntegrator.h.

Referenced by vegas().

UInt_t RooMCIntegrator::_it_num [protected]

Definition at line 75 of file RooMCIntegrator.h.

Referenced by vegas().

UInt_t RooMCIntegrator::_samples [protected]

Definition at line 75 of file RooMCIntegrator.h.

Referenced by vegas().

UInt_t RooMCIntegrator::_calls_per_box [protected]

Definition at line 75 of file RooMCIntegrator.h.

Referenced by vegas().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1