Skip to content
Snippets Groups Projects
Commit 3d93c304 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'FixATLASSIM-7101_main' into 'main'

Fix HepMcParticleLink_test compilation with HepMC2 (ATLASSIM-7101)

Closes ATLASSIM-7101

See merge request atlas/athena!69400
parents 898ae8a8 873649d5
No related branches found
No related tags found
No related merge requests found
......@@ -894,7 +894,11 @@ namespace MCTesting {
ASSERT_TRUE( testLink1d < testLink2d );
// Make links to another GenParticle from the first GenEvent
#ifdef HEPMC3
HepMC::ConstGenParticlePtr particle3 = ge1.particles().at(3);
#else
HepMC::ConstGenParticlePtr particle3 = HepMC::barcode_to_particle(&ge1, 4);
#endif
// HepMcParticleLink built using a GenParticle pointer and the
// position of the GenEvent.
HepMcParticleLink testLink3a(particle3,dummyIndex1,
......
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