Skip to content

Commit

Permalink
change secondaries in EMPP test to pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDoerner committed Oct 26, 2023
1 parent 41040e3 commit 75ffaba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/testInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<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();
}

// test energy conservation
Expand Down

0 comments on commit 75ffaba

Please sign in to comment.