31 virtual void printName(std::ostream& os)
const ;
32 virtual void printTitle(std::ostream& os)
const ;
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...
virtual void printTitle(std::ostream &os) const
Print title of grid object.
RooGrid()
Default constructor.
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'.
virtual void printName(std::ostream &os) const
Print name of grid object.
Double_t & newCoord(Int_t i)
Double_t * _weight
Internal workspace.
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 * _delx
Internal workspace.
Double_t & value(Int_t i, Int_t j)
const TKDTreeBinning * bins
Double_t * _xu
Internal workspace.
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 getVolume() const
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual StyleOption defaultPrintStyle(Option_t *opt) const
Double_t * _d
Internal workspace.
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
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.
#define ClassDef(name, id)
UInt_t * createIndexVector() const
Double_t value(Int_t i, Int_t j) const
Double_t coord(Int_t i, Int_t j) const
virtual ~RooGrid()
Destructor.
void setNBoxes(UInt_t boxes)
Double_t * _xin
Internal workspace.
Double_t * createPoint() const
static void indent(ostringstream &buf, int indent_level)
void refine(Double_t alpha=1.5)
Refine the grid using the values that have been accumulated so far.
UInt_t getDimension() const
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
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.
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.
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
virtual void printClassName(std::ostream &os) const
Print class 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...