IAP GITLAB

Skip to content
Snippets Groups Projects

Adding a particle resolution.

Merged Maximilian Sackel requested to merge particle_energy_resolution into master
1 file
+ 8
3
Compare changes
  • Side-by-side
  • Inline
@@ -88,13 +88,18 @@ TEST_CASE("ParticleProperties", "[Particles]") {
(Approx(2.1970332555864364e-06).epsilon(1e-5)));
}
SECTION("Energy threshold") {
SECTION("Energy thresholds") {
//! by default energy thresholds are set to zero
CHECK(get_kinetic_energy_propagation_threshold(Electron::code) == 0_GeV);
CHECK(get_kinetic_energy_propagation_threshold(Electron::code) == 1_GeV);
set_kinetic_energy_propagation_threshold(Electron::code, 10_GeV);
CHECK_FALSE(get_kinetic_energy_propagation_threshold(Code::Electron) == 1_GeV);
CHECK(get_kinetic_energy_propagation_threshold(Code::Electron) == 10_GeV);
//! by default energy thresholds are set to zero
CHECK(get_energy_production_threshold(Neutron::code) == 1_MeV);
set_energy_production_threshold(Neutron::code, 1_GeV);
CHECK_FALSE(get_energy_production_threshold(Code::Neutron) == 1_MeV);
CHECK(get_energy_production_threshold(Code::Neutron) == 1_GeV);
}
SECTION("Particle groups: electromagnetic") {
Loading