Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User |
RooGridclass description - source file - inheritance tree (.pdf) class RooGrid : public TObject, public RooPrintable
protected: Data Membersprotected: Class DescriptionRooMCIntegrator implements an adaptive multi-dimensional Monte Carlo numerical integration, following the VEGAS algorithm. RooGrid() RooGrid(const RooAbsFunc &function) : _valid(kTRUE), _xl(0),_xu(0),_delx(0),_xi(0) check that the input function is valid ~RooGrid() Bool_t initialize(const RooAbsFunc &function) Calculate and store the grid dimensions and volume using the specified function, and initialize the grid using a single bin. Return kTRUE, or else kFALSE if the range is not valid. void resize(UInt_t bins) Adjust the subdivision of each axis to give the specified number of bins, using an algorithm that preserves relative bin density. The new binning can be finer or coarser than the original binning. void resetValues() Reset the values associated with each grid cell. void generatePoint(const UInt_t box[], Double_t x[], UInt_t bin[], Double_t &vol, Bool_t useQuasiRandom) const Generate a random vector in the specified box and and store its coordinates in the x[] array provided, the corresponding bin indices in the bin[] array, and the volume of this bin in vol. The box is specified by the array box[] of box integer indices that each range from 0 to getNBoxes()-1. 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 and return kTRUE, or else return kFALSE if we the indices already refer to the last box. void printToStream(ostream& os, PrintOption opt, TString indent) const Print info about this object to the specified stream. 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 refine(Double_t alpha) Refine the grid using the values that have been accumulated so far. The parameter alpha controls the stiffness of the rebinning and should usually be between 1 (stiffer) and 2 (more flexible). A value of zero prevents any rebinning. Inline Functionsvoid 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 Double_t coord(Int_t i, Int_t j) const Double_t value(Int_t i, Int_t j) const Double_t& coord(Int_t i, Int_t j) Double_t& value(Int_t i, Int_t j) Double_t& newCoord(Int_t i) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) RooGrid RooGrid(const RooGrid&) RooGrid& operator=(const RooGrid&)
|
Page maintained by Wouter Verkerke and David Kirkby |