Skip to content
Snippets Groups Projects
Commit 9a6635d8 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'ATLASSIM5525' into 'master'

Update McEventCollectionCnv_p5 so that the input matches the output after a single round of T->P->T conversion

See merge request atlas/athena!49983
parents 3adf93bf bb618d57
No related branches found
No related tags found
No related merge requests found
...@@ -606,7 +606,9 @@ McEventCollectionCnv_p5::createGenVertex( const McEventCollection_p5& persEvt, ...@@ -606,7 +606,9 @@ McEventCollectionCnv_p5::createGenVertex( const McEventCollection_p5& persEvt,
// handle the in-going (orphans) particles // handle the in-going (orphans) particles
const unsigned int nPartsIn = persVtx.m_particlesIn.size(); const unsigned int nPartsIn = persVtx.m_particlesIn.size();
for ( unsigned int i = 0; i != nPartsIn; ++i ) { /// Note: the reversed order is because of ATLASSIM-5525
//for ( unsigned int i = 0; i != nPartsIn; ++i ) {
for ( int i = nPartsIn - 1; i >= 0; i-- ) {
createGenParticle( persEvt.m_genParticles[persVtx.m_particlesIn[i]], createGenParticle( persEvt.m_genParticles[persVtx.m_particlesIn[i]],
partToEndVtx, partToEndVtx,
datapools ); datapools );
......
...@@ -223,19 +223,7 @@ void testit (const McEventCollection& trans1) ...@@ -223,19 +223,7 @@ void testit (const McEventCollection& trans1)
cnv.transToPers (&trans1, &pers, log); cnv.transToPers (&trans1, &pers, log);
McEventCollection trans2; McEventCollection trans2;
cnv.persToTrans (&pers, &trans2, log); cnv.persToTrans (&pers, &trans2, log);
#if HEPMC3
compare (trans1, trans2); compare (trans1, trans2);
#else
// TP conversion of HepMC2::GenEvents has a feature where the order
// of GenParticles associated with each GenVertex is flipped, so
// agreement is only restored after running TP conversion twice...
McEventCollection_p5 pers2;
cnv.transToPers (&trans2, &pers2, log);
McEventCollection trans3;
cnv.persToTrans (&pers2, &trans3, log);
compare (trans1, trans3);
#endif
} }
void test1() void test1()
......
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