Skip to content

Commit

Permalink
Switch to tuple for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 11, 2024
1 parent 7d2167d commit fa71a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/podio/utilities/RootHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace root_utils {
using CollectionInfoWithoutSchemaT = std::tuple<int, std::string, bool>;

/// A collection name and a base pointer grouped together for writing
using StoreCollection = std::pair<const std::string&, podio::CollectionBase*>;
using StoreCollection = std::tuple<const std::string&, podio::CollectionBase*>;

/// Small helper struct to collect all branches that are necessary to read or
/// write a collection. Needed to cache the branch pointers and avoid having to
Expand Down
4 changes: 2 additions & 2 deletions src/ROOTWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ void ROOTWriter::resetBranches(std::vector<root_utils::CollectionBranches>& bran
const std::vector<root_utils::StoreCollection>& collections,
/*const*/ podio::GenericParameters* parameters) {
size_t iColl = 0;
for (auto& coll : collections) {
for (auto& [_, coll] : collections) {
const auto& collBranches = branches[iColl];
root_utils::setCollectionAddresses(coll.second->getBuffers(), collBranches);
root_utils::setCollectionAddresses(coll->getBuffers(), collBranches);
iColl++;
}

Expand Down

0 comments on commit fa71a06

Please sign in to comment.