31 virtual void printName(std::ostream& os)
const ;
32 virtual void printTitle(std::ostream& os)
const ;
virtual void printClassName(std::ostream &os) const
Print class name of grid object.
UInt_t getDimension() const
virtual void printTitle(std::ostream &os) const
Print title of grid object.
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, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.
RooGrid()
Default constructor.
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 & newCoord(Int_t i)
Double_t * _weight
Internal workspace.
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
Double_t * _delx
Internal workspace.
Double_t & value(Int_t i, Int_t j)
Double_t * _xu
Internal workspace.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Double_t * _d
Internal workspace.
Double_t coord(Int_t i, Int_t j) const
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.
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...
UInt_t * createIndexVector() const
#define ClassDef(name, id)
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods...
virtual ~RooGrid()
Destructor.
Double_t * createPoint() const
void setNBoxes(UInt_t boxes)
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_t * _xin
Internal workspace.
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
void refine(Double_t alpha=1.5)
Refine the grid using the values that have been accumulated so far.
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
Double_t value(Int_t i, Int_t j) 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 * _xi
Internal workspace.
virtual StyleOption defaultPrintStyle(Option_t *opt) 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...
Mother of all ROOT objects.
Double_t & coord(Int_t i, Int_t j)
void resetValues()
Reset the values associated with each grid cell.
Double_t getVolume() const
virtual void printName(std::ostream &os) const
Print name of grid object.
void resize(UInt_t bins)
Adjust the subdivision of each axis to give the specified number of bins, using an algorithm that pre...
RooGrid is a utility class for RooMCIntegrator which implements an adaptive multi-dimensional Monte C...
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...