#include <LandauFluctuationGenerator.h>
Public Member Functions | |
virtual double | function (double x) |
The probability density function implementation. | |
double | landau () const |
Random generator of the dE/dX spread (Landau function) | |
LandauFluctuationGenerator (const RandomEngine *engine) | |
Constructor : initialization of the Random Generator. | |
virtual | ~LandauFluctuationGenerator () |
Default destructor. | |
Private Member Functions | |
double | ersatzt (double x) |
Ersatzt for Landau Fluctuations (very good approximation) |
Definition at line 20 of file LandauFluctuationGenerator.h.
LandauFluctuationGenerator::LandauFluctuationGenerator | ( | const RandomEngine * | engine | ) | [inline] |
Constructor : initialization of the Random Generator.
Definition at line 25 of file LandauFluctuationGenerator.h.
References BaseNumericalRandomGenerator::initialize().
: BaseNumericalRandomGenerator(engine,-3.5,25.) { initialize(); }
virtual LandauFluctuationGenerator::~LandauFluctuationGenerator | ( | ) | [inline, virtual] |
double LandauFluctuationGenerator::ersatzt | ( | double | x | ) | [inline, private] |
Ersatzt for Landau Fluctuations (very good approximation)
Definition at line 42 of file LandauFluctuationGenerator.h.
References create_public_lumi_plots::exp, M_PI, and mathSSE::sqrt().
Referenced by function().
virtual double LandauFluctuationGenerator::function | ( | double | x | ) | [inline, virtual] |
The probability density function implementation.
Implements BaseNumericalRandomGenerator.
Definition at line 37 of file LandauFluctuationGenerator.h.
References ersatzt().
double LandauFluctuationGenerator::landau | ( | ) | const [inline] |
Random generator of the dE/dX spread (Landau function)
Definition at line 34 of file LandauFluctuationGenerator.h.
References BaseNumericalRandomGenerator::generate().
Referenced by PreshowerHitMaker::addHit(), and EnergyLossSimulator::compute().
{ return generate(); }