Commit 5c99a242 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'flow.GeneratorObjectsTPCnv-20210917' into 'master'

GeneratorObjectsTPCnv: Clear flow information when reading.

See merge request !46581
parents 5ad64f3f a8bd69cf
...@@ -288,6 +288,7 @@ McEventCollectionCnv_p2::createGenParticle( const GenParticle_p2& persPart, ...@@ -288,6 +288,7 @@ McEventCollectionCnv_p2::createGenParticle( const GenParticle_p2& persPart,
// fillin' the flow // fillin' the flow
const unsigned int nFlow = persPart.m_flow.size(); const unsigned int nFlow = persPart.m_flow.size();
p->m_flow.clear();
for ( unsigned int iFlow= 0; iFlow != nFlow; ++iFlow ) { for ( unsigned int iFlow= 0; iFlow != nFlow; ++iFlow ) {
p->m_flow.set_icode( persPart.m_flow[iFlow].first, p->m_flow.set_icode( persPart.m_flow[iFlow].first,
persPart.m_flow[iFlow].second ); persPart.m_flow[iFlow].second );
......
...@@ -315,6 +315,7 @@ McEventCollectionCnv_p3::createGenParticle( const GenParticle_p3& persPart, ...@@ -315,6 +315,7 @@ McEventCollectionCnv_p3::createGenParticle( const GenParticle_p3& persPart,
// setup flow // setup flow
const unsigned int nFlow = persPart.m_flow.size(); const unsigned int nFlow = persPart.m_flow.size();
p->m_flow.clear();
for ( unsigned int iFlow= 0; iFlow != nFlow; ++iFlow ) { for ( unsigned int iFlow= 0; iFlow != nFlow; ++iFlow ) {
p->m_flow.set_icode( persPart.m_flow[iFlow].first, p->m_flow.set_icode( persPart.m_flow[iFlow].first,
persPart.m_flow[iFlow].second ); persPart.m_flow[iFlow].second );
......
...@@ -537,6 +537,7 @@ McEventCollectionCnv_p4::createGenParticle( const GenParticle_p4& persPart, ...@@ -537,6 +537,7 @@ McEventCollectionCnv_p4::createGenParticle( const GenParticle_p4& persPart,
// setup flow // setup flow
const unsigned int nFlow = persPart.m_flow.size(); const unsigned int nFlow = persPart.m_flow.size();
p->m_flow.clear();
for ( unsigned int iFlow= 0; iFlow != nFlow; ++iFlow ) for ( unsigned int iFlow= 0; iFlow != nFlow; ++iFlow )
{ {
p->m_flow.set_icode( persPart.m_flow[iFlow].first, p->m_flow.set_icode( persPart.m_flow[iFlow].first,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment