| 
    Jpp
    17.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.  More... | |
| ~JHistGenerator () | |
| 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 | |
| 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 517 of file JMarkovGenerator.hh.
      
  | 
  inline | 
Constructor.
The histograms are cloned and automatically normalized.
Note: empty bins should always be avoided!
Definition at line 526 of file JMarkovGenerator.hh.
      
  | 
  inline | 
Definition at line 537 of file JMarkovGenerator.hh.
      
  | 
  inlinevirtual | 
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 543 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 550 of file JMarkovGenerator.hh.
| TH1* JMARKOV::JHistGenerator::hx | 
Definition at line 569 of file JMarkovGenerator.hh.
| TH1* JMARKOV::JHistGenerator::hy | 
Definition at line 570 of file JMarkovGenerator.hh.
| TH1* JMARKOV::JHistGenerator::hz | 
Definition at line 571 of file JMarkovGenerator.hh.
 1.8.5