|
Jpp
15.0.0-rc.2
the software that should make you happy
|
Implementation of the JGenerator interface. More...
#include <JMarkovGenerator.hh>
Public Member Functions | |
| J3DhistGenerator (TH3 *_h) | |
| Constructor. More... | |
| ~J3DhistGenerator () | |
| JPosition3D | getPosition () |
| Return a randomly generated position. More... | |
| double | getWeight (JPosition3D pos) |
| return the weight (=probability density dP/dV) for the given position. More... | |
Public Attributes | |
| TH3 * | h |
Implementation of the JGenerator interface.
Generates positions uniformly by sampling from a histogram that represents the x,y,z distribution
Definition at line 656 of file JMarkovGenerator.hh.
|
inline |
Constructor.
The histogram is cloned and automatically normalized.
Note: empty bins should always be avoided!
Definition at line 665 of file JMarkovGenerator.hh.
|
inline |
Definition at line 672 of file JMarkovGenerator.hh.
|
inlinevirtual |
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 676 of file JMarkovGenerator.hh.
|
inlinevirtual |
return the weight (=probability density dP/dV) for the given position.
When the generator is properly normalized, the integral of this quantity over the whole space is 1.
Implements JMARKOV::JGenerator.
Definition at line 682 of file JMarkovGenerator.hh.
| TH3* JMARKOV::J3DhistGenerator::h |
Definition at line 692 of file JMarkovGenerator.hh.
1.8.5