RooGrid Class Reference

#include <RooGrid.h>

Inheritance diagram for RooGrid:

TObject RooPrintable TObject RooPrintable List of all members.

Public Types

enum  
enum  

Public Member Functions

 RooGrid ()
 RooGrid (const RooAbsFunc &function)
virtual ~RooGrid ()
virtual void printName (ostream &os) const
virtual void printTitle (ostream &os) const
virtual void printClassName (ostream &os) const
virtual void printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
virtual void Print (Option_t *options=0) const
Bool_t isValid () const
UInt_t getDimension () const
Double_t getVolume () const
UInt_t getNBins () const
UInt_t getNBoxes () const
void setNBoxes (UInt_t boxes)
Double_tcreatePoint () const
UInt_tcreateIndexVector () const
Bool_t initialize (const RooAbsFunc &function)
void resize (UInt_t bins)
void resetValues ()
void generatePoint (const UInt_t box[], Double_t x[], UInt_t bin[], Double_t &vol, Bool_t useQuasiRandom=kTRUE) const
void accumulate (const UInt_t bin[], Double_t amount)
void refine (Double_t alpha=1.5)
void firstBox (UInt_t box[]) const
Bool_t nextBox (UInt_t box[]) const
Double_t coord (Int_t i, Int_t j) const
Double_t value (Int_t i, Int_t j) const
 RooGrid ()
 RooGrid (const RooAbsFunc &function)
virtual ~RooGrid ()
virtual void printName (ostream &os) const
virtual void printTitle (ostream &os) const
virtual void printClassName (ostream &os) const
virtual void printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
virtual void Print (Option_t *options=0) const
Bool_t isValid () const
UInt_t getDimension () const
Double_t getVolume () const
UInt_t getNBins () const
UInt_t getNBoxes () const
void setNBoxes (UInt_t boxes)
Double_tcreatePoint () const
UInt_tcreateIndexVector () const
Bool_t initialize (const RooAbsFunc &function)
void resize (UInt_t bins)
void resetValues ()
void generatePoint (const UInt_t box[], Double_t x[], UInt_t bin[], Double_t &vol, Bool_t useQuasiRandom=kTRUE) const
void accumulate (const UInt_t bin[], Double_t amount)
void refine (Double_t alpha=1.5)
void firstBox (UInt_t box[]) const
Bool_t nextBox (UInt_t box[]) const
Double_t coord (Int_t i, Int_t j) const
Double_t value (Int_t i, Int_t j) const

Protected Member Functions

Double_tcoord (Int_t i, Int_t j)
Double_tvalue (Int_t i, Int_t j)
Double_tnewCoord (Int_t i)
Double_tcoord (Int_t i, Int_t j)
Double_tvalue (Int_t i, Int_t j)
Double_tnewCoord (Int_t i)

Protected Attributes

Bool_t _valid
UInt_t _dim
UInt_t _bins
UInt_t _boxes
Double_t _vol
Double_t_xl
Double_t_xu
 Internal workspace.
Double_t_delx
 Internal workspace.
Double_t_d
 Internal workspace.
Double_t_xi
 Internal workspace.
Double_t_xin
 Internal workspace.
Double_t_weight
 Internal workspace.
Double_t_xl
Double_t_xu
 Internal workspace.
Double_t_delx
 Internal workspace.
Double_t_d
 Internal workspace.
Double_t_xi
 Internal workspace.
Double_t_xin
 Internal workspace.
Double_t_weight
 Internal workspace.

Detailed Description

Definition at line 24 of file RooGrid.h.


Member Enumeration Documentation

anonymous enum

Definition at line 61 of file RooGrid.h.

anonymous enum

Definition at line 61 of file RooGrid.h.


Constructor & Destructor Documentation

RooGrid::RooGrid (  ) 

Definition at line 46 of file RooGrid.cxx.

RooGrid::RooGrid ( const RooAbsFunc function  ) 

Definition at line 54 of file RooGrid.cxx.

References _d, _delx, _dim, _valid, _weight, _xi, _xin, _xl, _xu, TObject::ClassName(), RooAbsFunc::getDimension(), initialize(), RooFit::InputArguments, RooFit::Integration, RooAbsFunc::isValid(), kFALSE, maxBins, and oocoutE.

RooGrid::~RooGrid (  )  [virtual]

Definition at line 86 of file RooGrid.cxx.

References _d, _delx, _weight, _xi, _xin, _xl, and _xu.

RooGrid::RooGrid (  ) 

RooGrid::RooGrid ( const RooAbsFunc function  ) 

virtual RooGrid::~RooGrid (  )  [virtual]


Member Function Documentation

void RooGrid::printName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 291 of file RooGrid.cxx.

References TObject::GetName().

void RooGrid::printTitle ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 299 of file RooGrid.cxx.

References TObject::GetTitle().

void RooGrid::printClassName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 307 of file RooGrid.cxx.

void RooGrid::printMultiline ( ostream &  os,
Int_t  contents,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const [virtual]

Reimplemented from RooPrintable.

Definition at line 271 of file RooGrid.cxx.

References _bins, _boxes, _xl, _xu, TObject::ClassName(), coord(), getDimension(), getNBins(), getVolume(), and value().

virtual void RooGrid::Print ( Option_t options = 0  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 36 of file RooGrid.h.

References RooPrintable::defaultPrintContents(), RooPrintable::defaultPrintStream(), RooPrintable::defaultPrintStyle(), and RooPrintable::printStream().

Referenced by RooMCIntegrator::RooMCIntegrator(), and RooMCIntegrator::vegas().

Bool_t RooGrid::isValid (  )  const [inline]

Definition at line 40 of file RooGrid.h.

References _valid.

Referenced by RooMCIntegrator::RooMCIntegrator().

UInt_t RooGrid::getDimension (  )  const [inline]

Definition at line 41 of file RooGrid.h.

References _dim.

Referenced by RooMCIntegrator::integral(), printMultiline(), and RooMCIntegrator::vegas().

Double_t RooGrid::getVolume (  )  const [inline]

Definition at line 42 of file RooGrid.h.

References _vol.

Referenced by printMultiline(), and RooMCIntegrator::vegas().

UInt_t RooGrid::getNBins (  )  const [inline]

Definition at line 43 of file RooGrid.h.

References _bins.

Referenced by printMultiline(), and RooMCIntegrator::vegas().

UInt_t RooGrid::getNBoxes (  )  const [inline]

Definition at line 44 of file RooGrid.h.

References _boxes.

void RooGrid::setNBoxes ( UInt_t  boxes  )  [inline]

Definition at line 45 of file RooGrid.h.

References _boxes.

Referenced by RooMCIntegrator::vegas().

Double_t* RooGrid::createPoint (  )  const [inline]

Definition at line 47 of file RooGrid.h.

References _dim, and _valid.

Referenced by RooMCIntegrator::vegas().

UInt_t* RooGrid::createIndexVector (  )  const [inline]

Definition at line 48 of file RooGrid.h.

References _dim, and _valid.

Referenced by RooMCIntegrator::vegas().

Bool_t RooGrid::initialize ( const RooAbsFunc function  ) 

Definition at line 100 of file RooGrid.cxx.

References _bins, _delx, _dim, _vol, _xl, _xu, TObject::ClassName(), coord(), RooAbsFunc::getMaxLimit(), RooAbsFunc::getMinLimit(), RooFit::Integration, RooNumber::isInfinite(), kFALSE, kTRUE, and oocoutE.

Referenced by RooMCIntegrator::checkLimits(), RooGrid(), and RooMCIntegrator::vegas().

void RooGrid::resize ( UInt_t  bins  ) 

Definition at line 135 of file RooGrid.cxx.

References _bins, _dim, coord(), i, j, k, and newCoord().

Referenced by RooMCIntegrator::vegas().

void RooGrid::resetValues (  ) 

Definition at line 175 of file RooGrid.cxx.

References _bins, _dim, i, j, and value().

Referenced by RooMCIntegrator::vegas().

void RooGrid::generatePoint ( const UInt_t  box[],
Double_t  x[],
UInt_t  bin[],
Double_t vol,
Bool_t  useQuasiRandom = kTRUE 
) const

Definition at line 188 of file RooGrid.cxx.

References _bins, _boxes, _delx, _dim, _xl, coord(), j, k, RooRandom::quasi(), RooRandom::uniform(), and y.

Referenced by RooMCIntegrator::vegas().

void RooGrid::accumulate ( const UInt_t  bin[],
Double_t  amount 
)

Definition at line 316 of file RooGrid.cxx.

References _dim, j, and value().

Referenced by RooMCIntegrator::vegas().

void RooGrid::refine ( Double_t  alpha = 1.5  ) 

Definition at line 326 of file RooGrid.cxx.

References _bins, _dim, _weight, coord(), i, j, k, log(), newCoord(), TMath::Power(), and value().

Referenced by RooMCIntegrator::vegas().

void RooGrid::firstBox ( UInt_t  box[]  )  const

Definition at line 239 of file RooGrid.cxx.

References _dim, and i.

Referenced by RooMCIntegrator::vegas().

Bool_t RooGrid::nextBox ( UInt_t  box[]  )  const

Definition at line 250 of file RooGrid.cxx.

References _boxes, _dim, j, kFALSE, and kTRUE.

Referenced by RooMCIntegrator::vegas().

Double_t RooGrid::coord ( Int_t  i,
Int_t  j 
) const [inline]

Definition at line 65 of file RooGrid.h.

References _dim, and _xi.

Referenced by generatePoint(), initialize(), printMultiline(), refine(), and resize().

Double_t RooGrid::value ( Int_t  i,
Int_t  j 
) const [inline]

Definition at line 66 of file RooGrid.h.

References _d, and _dim.

Referenced by accumulate(), printMultiline(), refine(), and resetValues().

Double_t& RooGrid::coord ( Int_t  i,
Int_t  j 
) [inline, protected]

Definition at line 68 of file RooGrid.h.

References _dim, and _xi.

Double_t& RooGrid::value ( Int_t  i,
Int_t  j 
) [inline, protected]

Definition at line 69 of file RooGrid.h.

References _d, and _dim.

Double_t& RooGrid::newCoord ( Int_t  i  )  [inline, protected]

Definition at line 70 of file RooGrid.h.

References _xin.

Referenced by refine(), and resize().

virtual void RooGrid::printName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooGrid::printTitle ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooGrid::printClassName ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

virtual void RooGrid::printMultiline ( ostream &  os,
Int_t  contents,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const [virtual]

Reimplemented from RooPrintable.

virtual void RooGrid::Print ( Option_t options = 0  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 36 of file RooGrid.h.

References RooPrintable::defaultPrintContents(), RooPrintable::defaultPrintStream(), RooPrintable::defaultPrintStyle(), and RooPrintable::printStream().

Bool_t RooGrid::isValid (  )  const [inline]

Definition at line 40 of file RooGrid.h.

References _valid.

UInt_t RooGrid::getDimension (  )  const [inline]

Definition at line 41 of file RooGrid.h.

References _dim.

Double_t RooGrid::getVolume (  )  const [inline]

Definition at line 42 of file RooGrid.h.

References _vol.

UInt_t RooGrid::getNBins (  )  const [inline]

Definition at line 43 of file RooGrid.h.

References _bins.

UInt_t RooGrid::getNBoxes (  )  const [inline]

Definition at line 44 of file RooGrid.h.

References _boxes.

void RooGrid::setNBoxes ( UInt_t  boxes  )  [inline]

Definition at line 45 of file RooGrid.h.

References _boxes.

Double_t* RooGrid::createPoint (  )  const [inline]

Definition at line 47 of file RooGrid.h.

References _dim, and _valid.

UInt_t* RooGrid::createIndexVector (  )  const [inline]

Definition at line 48 of file RooGrid.h.

References _dim, and _valid.

Bool_t RooGrid::initialize ( const RooAbsFunc function  ) 

void RooGrid::resize ( UInt_t  bins  ) 

void RooGrid::resetValues (  ) 

void RooGrid::generatePoint ( const UInt_t  box[],
Double_t  x[],
UInt_t  bin[],
Double_t vol,
Bool_t  useQuasiRandom = kTRUE 
) const

void RooGrid::accumulate ( const UInt_t  bin[],
Double_t  amount 
)

void RooGrid::refine ( Double_t  alpha = 1.5  ) 

void RooGrid::firstBox ( UInt_t  box[]  )  const

Bool_t RooGrid::nextBox ( UInt_t  box[]  )  const

Double_t RooGrid::coord ( Int_t  i,
Int_t  j 
) const [inline]

Definition at line 65 of file RooGrid.h.

References _dim, and _xi.

Double_t RooGrid::value ( Int_t  i,
Int_t  j 
) const [inline]

Definition at line 66 of file RooGrid.h.

References _d, and _dim.

Double_t& RooGrid::coord ( Int_t  i,
Int_t  j 
) [inline, protected]

Definition at line 68 of file RooGrid.h.

References _dim, and _xi.

Double_t& RooGrid::value ( Int_t  i,
Int_t  j 
) [inline, protected]

Definition at line 69 of file RooGrid.h.

References _d, and _dim.

Double_t& RooGrid::newCoord ( Int_t  i  )  [inline, protected]

Definition at line 70 of file RooGrid.h.

References _xin.


Member Data Documentation

Bool_t RooGrid::_valid [protected]

Definition at line 74 of file RooGrid.h.

Referenced by createIndexVector(), createPoint(), isValid(), and RooGrid().

UInt_t RooGrid::_dim [protected]

Definition at line 75 of file RooGrid.h.

Referenced by accumulate(), coord(), createIndexVector(), createPoint(), firstBox(), generatePoint(), getDimension(), initialize(), nextBox(), refine(), resetValues(), resize(), RooGrid(), and value().

UInt_t RooGrid::_bins [protected]

Definition at line 75 of file RooGrid.h.

Referenced by generatePoint(), getNBins(), initialize(), printMultiline(), refine(), resetValues(), and resize().

UInt_t RooGrid::_boxes [protected]

Definition at line 75 of file RooGrid.h.

Referenced by generatePoint(), getNBoxes(), nextBox(), printMultiline(), and setNBoxes().

Double_t RooGrid::_vol [protected]

Definition at line 76 of file RooGrid.h.

Referenced by getVolume(), and initialize().

Double_t* RooGrid::_xl [protected]

Definition at line 78 of file RooGrid.h.

Referenced by generatePoint(), initialize(), printMultiline(), RooGrid(), and ~RooGrid().

Double_t* RooGrid::_xu [protected]

Internal workspace.

Definition at line 79 of file RooGrid.h.

Referenced by initialize(), printMultiline(), RooGrid(), and ~RooGrid().

Double_t* RooGrid::_delx [protected]

Internal workspace.

Definition at line 80 of file RooGrid.h.

Referenced by generatePoint(), initialize(), RooGrid(), and ~RooGrid().

Double_t* RooGrid::_d [protected]

Internal workspace.

Definition at line 81 of file RooGrid.h.

Referenced by RooGrid(), value(), and ~RooGrid().

Double_t* RooGrid::_xi [protected]

Internal workspace.

Definition at line 82 of file RooGrid.h.

Referenced by coord(), RooGrid(), and ~RooGrid().

Double_t* RooGrid::_xin [protected]

Internal workspace.

Definition at line 83 of file RooGrid.h.

Referenced by newCoord(), RooGrid(), and ~RooGrid().

Double_t* RooGrid::_weight [protected]

Internal workspace.

Definition at line 84 of file RooGrid.h.

Referenced by refine(), RooGrid(), and ~RooGrid().

Double_t* RooGrid::_xl [protected]

Definition at line 78 of file RooGrid.h.

Double_t* RooGrid::_xu [protected]

Internal workspace.

Definition at line 79 of file RooGrid.h.

Double_t* RooGrid::_delx [protected]

Internal workspace.

Definition at line 80 of file RooGrid.h.

Double_t* RooGrid::_d [protected]

Internal workspace.

Definition at line 81 of file RooGrid.h.

Double_t* RooGrid::_xi [protected]

Internal workspace.

Definition at line 82 of file RooGrid.h.

Double_t* RooGrid::_xin [protected]

Internal workspace.

Definition at line 83 of file RooGrid.h.

Double_t* RooGrid::_weight [protected]

Internal workspace.

Definition at line 84 of file RooGrid.h.


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