#include <RooGrid.h>
Inheritance diagram for RooGrid:
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_t * | createPoint () const |
UInt_t * | createIndexVector () 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_t * | createPoint () const |
UInt_t * | createIndexVector () 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_t & | coord (Int_t i, Int_t j) |
Double_t & | value (Int_t i, Int_t j) |
Double_t & | newCoord (Int_t i) |
Double_t & | coord (Int_t i, Int_t j) |
Double_t & | value (Int_t i, Int_t j) |
Double_t & | newCoord (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. |
Definition at line 24 of file RooGrid.h.
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] |
RooGrid::RooGrid | ( | ) |
RooGrid::RooGrid | ( | const RooAbsFunc & | function | ) |
virtual RooGrid::~RooGrid | ( | ) | [virtual] |
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] |
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] |
void RooGrid::setNBoxes | ( | UInt_t | boxes | ) | [inline] |
Double_t* RooGrid::createPoint | ( | ) | const [inline] |
UInt_t* RooGrid::createIndexVector | ( | ) | const [inline] |
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().
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 250 of file RooGrid.cxx.
References _boxes, _dim, j, kFALSE, and kTRUE.
Referenced by RooMCIntegrator::vegas().
Definition at line 65 of file RooGrid.h.
Referenced by generatePoint(), initialize(), printMultiline(), refine(), and resize().
Definition at line 66 of file RooGrid.h.
Referenced by accumulate(), printMultiline(), refine(), and resetValues().
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] |
UInt_t RooGrid::getDimension | ( | ) | const [inline] |
Double_t RooGrid::getVolume | ( | ) | const [inline] |
UInt_t RooGrid::getNBins | ( | ) | const [inline] |
UInt_t RooGrid::getNBoxes | ( | ) | const [inline] |
void RooGrid::setNBoxes | ( | UInt_t | boxes | ) | [inline] |
Double_t* RooGrid::createPoint | ( | ) | const [inline] |
UInt_t* RooGrid::createIndexVector | ( | ) | const [inline] |
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::refine | ( | Double_t | alpha = 1.5 |
) |
void RooGrid::firstBox | ( | UInt_t | box[] | ) | const |
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] |
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] |
Double_t* RooGrid::_xu [protected] |
Double_t* RooGrid::_delx [protected] |
Double_t* RooGrid::_d [protected] |
Double_t* RooGrid::_xi [protected] |
Double_t* RooGrid::_xin [protected] |
Double_t* RooGrid::_weight [protected] |