From 75ffaba0649fbd2610281dd7168fb03f7ba8fd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JulienD=C3=B6rner?= Date: Thu, 26 Oct 2023 16:45:49 +0200 Subject: [PATCH] change secondaries in EMPP test to pointer --- test/testInteraction.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testInteraction.cpp b/test/testInteraction.cpp index 0d64ae49d..512f76768 100644 --- a/test/testInteraction.cpp +++ b/test/testInteraction.cpp @@ -769,11 +769,11 @@ TEST(EMPairProduction, secondaries) { // expect electron / positron with energies 0 < E < Ephoton double Etot = 0; for (int j = 0; j < c.secondaries.size(); j++) { - Candidate s = *c.secondaries[j]; - EXPECT_EQ(abs(s.current.getId()), 11); - EXPECT_GT(s.current.getEnergy(), 0); - EXPECT_LT(s.current.getEnergy(), Ep); - Etot += s.current.getEnergy(); + ref_ptr s = c.secondaries[j]; + EXPECT_EQ(abs(s->current.getId()), 11); + EXPECT_GT(s->current.getEnergy(), 0); + EXPECT_LT(s->current.getEnergy(), Ep); + Etot += s->current.getEnergy(); } // test energy conservation