| Jpp 19.3.0-rc.2
    the software that should make you happy | 
Implementation of the JGenerator interface. More...
#include <JMarkovGenerator.hh>
 
  
| Public Member Functions | |
| JHistGenerator (TH1 *_hx, TH1 *_hy, TH1 *_hz) | |
| Constructor. | |
| ~JHistGenerator () | |
| JPosition3D | getPosition () | 
| Return a randomly generated position. | |
| double | getWeight (JPosition3D pos) | 
| return the weight (=probability density dP/dV) for the given position. | |
| Public Attributes | |
| TH1 * | hx | 
| TH1 * | hy | 
| TH1 * | hz | 
Implementation of the JGenerator interface.
Generates positions by sampling from 3 histograms that represent the projection of the distribution along the X, Y and Z axis.
Definition at line 521 of file JMarkovGenerator.hh.
| 
 | inline | 
Constructor.
The histograms are cloned and automatically normalized.
Note: empty bins should always be avoided!
Definition at line 530 of file JMarkovGenerator.hh.
| 
 | inline | 
Definition at line 541 of file JMarkovGenerator.hh.
| 
 | inlinevirtual | 
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 547 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 554 of file JMarkovGenerator.hh.
| TH1* JMARKOV::JHistGenerator::hx | 
Definition at line 573 of file JMarkovGenerator.hh.
| TH1* JMARKOV::JHistGenerator::hy | 
Definition at line 574 of file JMarkovGenerator.hh.
| TH1* JMARKOV::JHistGenerator::hz | 
Definition at line 575 of file JMarkovGenerator.hh.