#include <RandomFuns.h>
Inheritance diagram for HistoRandomFun:
Definition at line 190 of file RandomFuns.h.
Public Member Functions | |
HistoRandomFun (const FloatFun &rnd_, const TH1 &histo, const char *name_=0) | |
Constructor from a C style string, serves as default constructor. | |
HistoRandomFun (const FloatFun &rnd_, const TH1 &histo, const std::string &name_) | |
Constructor from a C++ string. | |
virtual Float_FF | 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 | ~HistoRandomFun () |
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 180 of file RandomFuns.C. References init(). |
|
Constructor from a C++ string.
Definition at line 189 of file RandomFuns.C. References init(). |
|
Initialization.
Definition at line 216 of file RandomFuns.C. References edges, nbins, and values. Referenced by HistoRandomFun(). |
|
The bin values Definition at line 214 of file RandomFuns.h. Referenced by init(), operator()(), and ~HistoRandomFun(). |