Skip to content

Commit

Permalink
Update Collection.cc.jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
hegner authored Sep 11, 2023
1 parent 28ca566 commit fab33e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/templates/Collection.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ podio::SchemaVersionT {{ collection_type }}::getSchemaVersion() const {
namespace {
{{ macros.createBuffers(class, package_name, collection_type, OneToManyRelations, OneToOneRelations, VectorMembers, -1) }}

{% if old_schema_version is defined %}
{{ macros.createBuffers(class, package_name, collection_type, OneToManyRelations_old, OneToOneRelations_old, VectorMembers_old, old_schema_version) }}
{% endif %}
// SCHEMA EVOLUTION: Not yet required with only ROOT backend
// {% if old_schema_version is defined %}
// {{ macros.createBuffers(class, package_name, collection_type, OneToManyRelations_old, OneToOneRelations_old, VectorMembers_old, old_schema_version) }}
// {% endif %}

// The usual trick with an IIFE and a static variable inside a funtion and then
// making sure to call that function during shared library loading
Expand All @@ -205,6 +206,7 @@ bool registerCollection() {

{% if old_schema_version is defined %}
// register a buffer creation function for the schema evolution buffer
// SCHEMA EVOLUTION: Not yet required with only ROOT backend
// factory.registerCreationFunc("{{ class.full_type }}Collection", {{ old_schema_version }}, createBuffersV{{old_schema_version}}); //TODO

//Make the SchemaEvolution aware of any other non-trivial conversion
Expand Down

0 comments on commit fab33e8

Please sign in to comment.