From 36d16974733f31bbbdad9166f0a6a9eea5b86505 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Sat, 18 Jul 2020 10:18:32 +0200 Subject: [PATCH] qgsjetII tests --- Processes/QGSJetII/qgsjet-II-04.f | 1 + Processes/QGSJetII/testQGSJetII.cc | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Processes/QGSJetII/qgsjet-II-04.f b/Processes/QGSJetII/qgsjet-II-04.f index b66cdfac2..4657dcce9 100644 --- a/Processes/QGSJetII/qgsjet-II-04.f +++ b/Processes/QGSJetII/qgsjet-II-04.f @@ -2012,6 +2012,7 @@ c nuclear cross sections close(2) endif + if(debug.ge.0)write (moniou,*)'done' elseif(.not.producetables)then write(moniou,*) "Missing sectnu-II-04 file !" write(moniou,*) "Please correct the defined path ", diff --git a/Processes/QGSJetII/testQGSJetII.cc b/Processes/QGSJetII/testQGSJetII.cc index edfaad83b..b5092ed9d 100644 --- a/Processes/QGSJetII/testQGSJetII.cc +++ b/Processes/QGSJetII/testQGSJetII.cc @@ -117,8 +117,7 @@ TEST_CASE("QgsjetIIInterface", "[processes]") { const geometry::CoordinateSystem& cs = env.GetCoordinateSystem(); - random::RNGManager::GetInstance().RegisterRandomStream("qgran"); - random::RNGManager::GetInstance().SeedAll(111); + corsika::random::RNGManager::GetInstance().RegisterRandomStream("qgran"); SECTION("InteractionInterface") { @@ -145,7 +144,7 @@ TEST_CASE("QgsjetIIInterface", "[processes]") { CHECK(length / (1_g / square(1_cm)) == Approx(93.47).margin(0.1)); CHECK(view.GetSize() == 14); - CHECK(sumCharge(view) == 1); + CHECK(sumCharge(view) == 2); auto const secMomSum = sumMomentum(view, projectileMomentum.GetCoordinateSystem()); CHECK((secMomSum - projectileMomentum).norm() / projectileMomentum.norm() == Approx(0).margin(1e-2)); -- GitLab