diff --git a/Processes/Sibyll/code_generator.py b/Processes/Sibyll/code_generator.py index cb7d0cb2471c004b84345a544698defbd3e9c9f0..d2ca87c6f221bf169ad080a5dd06295016e025e4 100755 --- a/Processes/Sibyll/code_generator.py +++ b/Processes/Sibyll/code_generator.py @@ -64,7 +64,7 @@ def generate_corsika2sibyll(particle_db): def generate_corsika2sibyll_xsType(particle_db): string = "std::array<int, {:d}> constexpr corsika2sibyllXStype = {{\n".format(len(particle_db)) for identifier, pData in particle_db.items(): - sibCodeXS = pData.get("sibyll_xsType", -1) + sibCodeXS = pData.get("sibyll_xsType", 0) string += " {:d}, // {:s}\n".format(sibCodeXS, identifier if sibCodeXS else identifier + " (not implemented in SIBYLL)") string += "};\n" return string diff --git a/Processes/Sibyll/testSibyll.cc b/Processes/Sibyll/testSibyll.cc index b0099568795e074ce6bc72e2635eaa1a35c84344..492b6bf3ed455c8ee3c7c599ab16b98cccec0030 100644 --- a/Processes/Sibyll/testSibyll.cc +++ b/Processes/Sibyll/testSibyll.cc @@ -45,6 +45,9 @@ TEST_CASE("Sibyll", "[processes]") { REQUIRE_FALSE(process::sibyll::CanInteract(particles::Electron::GetCode())); REQUIRE_FALSE(process::sibyll::CanInteract(particles::SigmaC0::GetCode())); + + REQUIRE_FALSE(process::sibyll::CanInteract(particles::Nucleus::GetCode())); + REQUIRE_FALSE(process::sibyll::CanInteract(particles::Helium::GetCode())); } SECTION("cross-section type") {