31 virtual void printName(std::ostream& os)
const ;
32 virtual void printTitle(std::ostream& os)
const ;
#define ClassDef(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...
Double_t coord(Int_t i, Int_t j) const
UInt_t getDimension() const
Bool_t initialize(const RooAbsFunc &function)
Calculate and store the grid dimensions and volume using the specified function, and initialize the g...
Double_t * _delx
Internal workspace.
virtual void printName(std::ostream &os) const
Print name of grid object.
virtual void printClassName(std::ostream &os) const
Print class name of grid object.
Double_t * _xin
Internal workspace.
Double_t * _xi
Internal workspace.
Double_t & newCoord(Int_t i)
UInt_t * createIndexVector() const
virtual ~RooGrid()
Destructor.
Double_t * _d
Internal workspace.
Double_t * _weight
Internal workspace.
void refine(Double_t alpha=1.5)
Refine the grid using the values that have been accumulated so far.
virtual void printTitle(std::ostream &os) const
Print title of grid object.
Double_t * _xu
Internal workspace.
void resetValues()
Reset the values associated with each grid cell.
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
RooGrid()
Default constructor.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print info about this object to the specified stream.
Double_t * createPoint() const
Double_t & coord(Int_t i, Int_t j)
Double_t getVolume() const
void resize(UInt_t bins)
Adjust the subdivision of each axis to give the specified number of bins, using an algorithm that pre...
void generatePoint(const UInt_t box[], Double_t x[], UInt_t bin[], Double_t &vol, Bool_t useQuasiRandom=kTRUE) const
Generate a random vector in the specified box and and store its coordinates in the x[] array provided...
void setNBoxes(UInt_t boxes)
Double_t value(Int_t i, Int_t j) const
void accumulate(const UInt_t bin[], Double_t amount)
Add the specified amount to bin[j] of the 1D histograms associated with each axis j.
void firstBox(UInt_t box[]) const
Reset the specified array of box indices to refer to the first box in the standard traversal order.
Bool_t nextBox(UInt_t box[]) const
Update the specified array of box indices to refer to the next box in the standard traversal order an...
Double_t & value(Int_t i, Int_t j)
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)