Skip to content

Commit

Permalink
Switch from push_back to variadic create (#165)
Browse files Browse the repository at this point in the history
Avoids breaking with AIDASoft/podio#514
  • Loading branch information
tmadlener authored Nov 21, 2023
1 parent bc8c064 commit 8b65e86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ struct ExampleFunctionalProducer final : Gaudi::Functional::Producer<edm4hep::MC
// This is the function that will be called to produce the data
edm4hep::MCParticleCollection operator()() const override {
auto coll = edm4hep::MCParticleCollection();
coll.push_back({1, 2, 3, 4, 5, 6, {}, {}, {}, {}, {}, {}});
coll.push_back({2, 3, 4, 5, 6, 7, {}, {}, {}, {}, {}, {}});
coll.create(1, 2, 3, 4, 5, 6);
coll.create(2, 3, 4, 5, 6, 7);
// We have to return whatever collection type we specified in the
// template argument
return coll;
Expand Down

0 comments on commit 8b65e86

Please sign in to comment.