Skip to content
Snippets Groups Projects
Commit fe31724c authored by John Chapman's avatar John Chapman
Browse files

Fix HepMcParticleLink_test compilation with HepMC2 (ATLASSIM-7101)

parent f8651c6e
No related branches found
No related tags found
1 merge request!69400Fix HepMcParticleLink_test compilation with HepMC2 (ATLASSIM-7101)
......@@ -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