|
Celeritas 0.7.0-dev.196+develop.8d0d9047c
|
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 | |
| CELER_FUNCTION | EnergyLossGammaDistribution (Energy mean_loss, EnergySq bohr_var) |
| Construct from distribution parameters. | |
| CELER_FUNCTION | EnergyLossGammaDistribution (EnergyLossHelper const &helper) |
| Construct from helper-calculated data. | |
| template<class Generator > | |
| CELER_FUNCTION 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.