IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 75e2f3fc authored by ralfulrich's avatar ralfulrich
Browse files

Merge branch 'sibyll' of gitlab.ikp.kit.edu:AirShowerPhysics/corsika into sibyll

parents a7f12e95 c79ec473
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,8 @@ public: ...@@ -51,6 +51,8 @@ public:
auto test = static_cast<corsika::process::sibyll::SibyllCodeIntType>(s_id); auto test = static_cast<corsika::process::sibyll::SibyllCodeIntType>(s_id);
std::cout << "MinStepLength: particle input " << "sibyll id: |" << (int)test << "|" <<std::endl; std::cout << "MinStepLength: particle input " << "sibyll id: |" << (int)test << "|" <<std::endl;
// std::cout << "MinStepLength: particle input " << "sibyll id: " << process::sibyll::ConvertToSibyll( p.GetPID() ) << std::endl; // std::cout << "MinStepLength: particle input " << "sibyll id: " << process::sibyll::ConvertToSibyll( p.GetPID() ) << std::endl;
cout << p.GetPID() << " --> " << process::sibyll::ConvertToSibyllRaw( p.GetPID() ) << endl;
int kBeam = 1; int kBeam = 1;
/* /*
......
...@@ -42,6 +42,10 @@ namespace corsika::process::sibyll { ...@@ -42,6 +42,10 @@ namespace corsika::process::sibyll {
return sibyll2corsika[static_cast<SibyllCodeIntType>(pCode) - minSibyll]; return sibyll2corsika[static_cast<SibyllCodeIntType>(pCode) - minSibyll];
} }
int ConvertToSibyllRaw(corsika::particles::Code pCode){
return (int)static_cast<corsika::process::sibyll::SibyllCodeIntType>( corsika::process::sibyll::ConvertToSibyll( pCode ) );
}
} // namespace corsika::process::sibyll } // namespace corsika::process::sibyll
#endif #endif
...@@ -29,6 +29,8 @@ TEST_CASE("Sibyll", "[processes]") { ...@@ -29,6 +29,8 @@ TEST_CASE("Sibyll", "[processes]") {
SECTION("Corsika -> Sibyll") { SECTION("Corsika -> Sibyll") {
REQUIRE(process::sibyll::ConvertToSibyll(corsika::particles::Electron::GetCode()) == REQUIRE(process::sibyll::ConvertToSibyll(corsika::particles::Electron::GetCode()) ==
process::sibyll::Code::Electron); process::sibyll::Code::Electron);
REQUIRE(process::sibyll::ConvertToSibyllRaw(corsika::particles::Proton::GetCode()) ==
13 );
} }
SECTION("handledBySibyll") { SECTION("handledBySibyll") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment