#include <RandomFuns.h>
Inheritance diagram for HistoRandomIntFun:
Definition at line 225 of file RandomFuns.h.
Public Member Functions | |
HistoRandomIntFun (const FloatFun &rnd_, const TH1 &histo, const char *name_=0) | |
Constructor from a C style string, serves as default constructor. | |
HistoRandomIntFun (const FloatFun &rnd_, const TH1 &histo, const std::string &name_) | |
Constructor from a C++ string. | |
virtual int | operator() () const |
Returns a random value, distributed according to the histogram. | |
virtual const FillIterator * | getIterator () const |
Returns pointer to iterator, if any. | |
Protected Member Functions | |
void | init (const TH1 &histo) |
Initialization. | |
virtual | ~HistoRandomIntFun () |
Protected destructor ensures creation on the heap. | |
Protected Attributes | |
const FloatFun & | rnd |
The gaussian random function. | |
int | nbins |
The number of bins. | |
double * | edges |
The bin edges. | |
double * | values |
|
Constructor from a C style string, serves as default constructor.
Definition at line 237 of file RandomFuns.C. References init(). |
|
Constructor from a C++ string.
Definition at line 246 of file RandomFuns.C. References init(). |
|
Initialization.
Definition at line 273 of file RandomFuns.C. References edges, nbins, and values. Referenced by HistoRandomIntFun(). |
|
The bin values Definition at line 249 of file RandomFuns.h. Referenced by init(), operator()(), and ~HistoRandomIntFun(). |