21 #include "G4ParticleDefinition.hh"
25 namespace ActsFatras {
42 template <
typename generator_t>
52 template <
typename generator_t>
69 template <
typename generator_t>
76 return std::numeric_limits<Scalar>::infinity();
83 if (!pDef || pDef->GetPDGStable()) {
84 return std::numeric_limits<Scalar>::infinity();
89 const Scalar tau = pDef->GetPDGLifeTime() * convertTime;
91 std::uniform_real_distribution<Scalar> uniformDistribution{0., 1.};
93 return -tau * std::log(uniformDistribution(generator));
96 template <
typename generator_t>