| 
    Jpp
    19.1.0-rc.1
    
   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 672 of file JMarkovGenerator.hh.
      
  | 
  inline | 
Constructor.
The histogram is cloned and automatically normalized.
Note: empty bins should always be avoided!
Definition at line 681 of file JMarkovGenerator.hh.
      
  | 
  inline | 
Definition at line 688 of file JMarkovGenerator.hh.
      
  | 
  inlinevirtual | 
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 692 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 698 of file JMarkovGenerator.hh.
| TH3* JMARKOV::J3DhistGenerator::h | 
Definition at line 708 of file JMarkovGenerator.hh.