|
Celeritas 0.7.0-dev.245+develop.a7be925e
|
Sample energy loss from a gamma distribution. More...
#include <EnergyLossGammaDistribution.hh>
Public Types | |
Type aliases | |
| using | Energy = units::MevEnergy |
| using | EnergySq = RealQuantity< UnitProduct< units::Mev, units::Mev > > |
Public Member Functions | |
| EnergyLossGammaDistribution (Energy mean_loss, EnergySq bohr_var) | |
| Construct from distribution parameters. | |
| EnergyLossGammaDistribution (EnergyLossHelper const &helper) | |
| Construct from helper-calculated data. | |
| template<class Generator > | |
| Energy | operator() (Generator &rng) |
| Sample energy loss according to the distribution. | |
Sample energy loss from a gamma distribution.
This model is valid for heavy particles with small mean losses (less than 2 Bohr standard deviations). It is a special case of EnergyLossGaussianDistribution.
|
inline |
Construct from distribution parameters.
The model is only valid (rather, used in Geant4) for mean < 2 * stddev, but it is allowable to construct the sampler explicitly but outside this range, for analysis purposes.