Skip to content

Commit

Permalink
Change MakeField to the new signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Apr 25, 2023
1 parent 84070ea commit e6b98f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ROOTNTupleWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ void ROOTNTupleWriter::finish() {
}

for (auto& category : m_categories) {
auto idField = m_metadata->MakeField<std::vector<int>>(root_utils::idTableName(category));
auto idField = m_metadata->MakeField<std::vector<int>>({root_utils::idTableName(category)});
*idField = m_collectionInfo[category].id;
auto collectionNameField = m_metadata->MakeField<std::vector<std::string>>(root_utils::collectionName(category));
auto collectionNameField = m_metadata->MakeField<std::vector<std::string>>({root_utils::collectionName(category)});
*collectionNameField = m_collectionInfo[category].name;
auto collectionTypeField = m_metadata->MakeField<std::vector<std::string>>(root_utils::collInfoName(category));
auto collectionTypeField = m_metadata->MakeField<std::vector<std::string>>({root_utils::collInfoName(category)});
*collectionTypeField = m_collectionInfo[category].type;
auto subsetCollectionField = m_metadata->MakeField<std::vector<short>>(root_utils::subsetCollection(category));
auto subsetCollectionField = m_metadata->MakeField<std::vector<short>>({root_utils::subsetCollection(category)});
*subsetCollectionField = m_collectionInfo[category].isSubsetCollection;
}

Expand Down

0 comments on commit e6b98f2

Please sign in to comment.