Skip to content

Commit

Permalink
Fix bug re-introduced in merging master
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 11, 2023
1 parent 905b473 commit 6b8fe15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/templates/macros/collections.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,15 @@ podio::CollectionReadBuffers createBuffersV{{ schemaVersion }}(bool isSubset) {
};

readBuffers.recast = [](podio::CollectionReadBuffers& buffers) {
// We only have any of these buffers if this is not a subset collection
if (buffers.data) {
buffers.data = podio::CollectionWriteBuffers::asVector<{{ class.full_type }}Data>(buffers.data);
}
{% if VectorMembers %}
{% for member in VectorMembers %}
(*buffers.vectorMembers)[{{ loop.index0 }}].second = podio::CollectionWriteBuffers::asVector<{{ member.full_type }}>((*buffers.vectorMembers)[{{ loop.index0 }}].second);
(*buffers.vectorMembers)[{{ loop.index0 }}].second = podio::CollectionWriteBuffers::asVector<{{ member.full_type }}>((*buffers.vectorMembers)[{{ loop.index0 }}].second);
{% endfor %}
{% endif %}
}
};

return readBuffers;
Expand Down

0 comments on commit 6b8fe15

Please sign in to comment.