31 void printName(std::ostream& os)
const override ;
32 void printTitle(std::ostream& os)
const override ;
54 double &vol,
bool useQuasiRandom=
true)
const;
56 void refine(
double alpha= 1.5);
#define ClassDefOverride(name, id)
static void indent(ostringstream &buf, int indent_level)
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
RooGrid is a utility class for RooMCIntegrator which implements an adaptive multi-dimensional Monte C...
UInt_t getDimension() const
double * _xl
! Internal workspace
double value(Int_t i, Int_t j) const
void Print(Option_t *options=0) const override
This method must be overridden when a class wants to print itself.
double & value(Int_t i, Int_t j)
double * _xi
! Internal workspace
bool initialize(const RooAbsFunc &function)
Calculate and store the grid dimensions and volume using the specified function, and initialize the g...
double * _delx
! Internal workspace
void generatePoint(const UInt_t box[], double x[], UInt_t bin[], double &vol, bool useQuasiRandom=true) const
Generate a random vector in the specified box and and store its coordinates in the x[] array provided...
UInt_t * createIndexVector() const
double * _weight
! Internal workspace
double * _d
! Internal workspace
double * createPoint() const
void printClassName(std::ostream &os) const override
Print class name of grid object.
bool _valid
Is configuration valid.
double * _xu
! Internal workspace
void resetValues()
Reset the values associated with each grid cell.
double & coord(Int_t i, Int_t j)
double * _xin
! Internal workspace
~RooGrid() override
Destructor.
RooGrid()
Default constructor.
UInt_t _boxes
Number of dimensions, bins and boxes.
void accumulate(const UInt_t bin[], double amount)
Add the specified amount to bin[j] of the 1D histograms associated with each axis j.
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print info about this object to the specified stream.
void printName(std::ostream &os) const override
Print name of grid object.
double coord(Int_t i, Int_t j) const
bool nextBox(UInt_t box[]) const
Update the specified array of box indices to refer to the next box in the standard traversal order an...
void resize(UInt_t bins)
Adjust the subdivision of each axis to give the specified number of bins, using an algorithm that pre...
void setNBoxes(UInt_t boxes)
void refine(double alpha=1.5)
Refine the grid using the values that have been accumulated so far.
void printTitle(std::ostream &os) const override
Print title of grid object.
void firstBox(UInt_t box[]) const
Reset the specified array of box indices to refer to the first box in the standard traversal order.
double & newCoord(Int_t i)
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
Mother of all ROOT objects.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void function(const Char_t *name_, T fun, const Char_t *docstring=0)