Skip to content

Commit

Permalink
Make sure to have valid fields for the Frame parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Mar 13, 2024
1 parent f67a135 commit d1b156e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/RNTupleReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ std::unique_ptr<ROOTFrameData> RNTupleReader::readEntry(const std::string& categ

ROOTFrameData::BufferMap buffers;
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 31, 0)
auto dentry = m_readers[category][0]->GetModel().CreateBareEntry();
// We need to create a non-bare entry here, because the entries for the
// parameters are not explicitly (re)set and we need them default initialized.
// In principle we would only need a bare entry for the collection data, since
// we set all the fields there in any case.
auto dentry = m_readers[category][0]->GetModel().CreateEntry();
#else
auto dentry = m_readers[category][0]->GetModel()->GetDefaultEntry();
#endif
Expand Down

0 comments on commit d1b156e

Please sign in to comment.