14 #include <corsika/framework/random/RNGManager.hpp> 15 #include <corsika/framework/process/SecondariesProcess.hpp> 32 bool const eraseParticles =
true);
46 template <
typename TStackView>
51 std::uniform_real_distribution<double> uniform_{};
53 double const maxWeight_;
54 bool const eraseParticles_;
58 #include <corsika/detail/modules/thinning/EMThinning.inl> Import and extend the phys::units package.
EMThinning(HEPEnergyType threshold, double maxWeight, bool const eraseParticles=true)
Construct a new EMThinning process.
`, since they are used everywhere as integral part of the framework.
Processes acting on the secondaries produced by other processes.
void doSecondaries(TStackView &)
Apply thinning to secondaries.
This process implements thinning for EM splitting processes (1 -> 2).
prng_type & getRandomStream(string_type const &streamName)