Skip to content

Commit

Permalink
[ntuple] minor optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Jul 19, 2024
1 parent 7733902 commit 6d41541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tree/ntuple/v7/inc/ROOT/RNTupleDescriptor.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public:
DescriptorId_t GetProjectionSourceId() const { return fProjectionSourceId; }
const std::vector<DescriptorId_t> &GetLinkIds() const { return fLinkIds; }
const std::vector<DescriptorId_t> &GetLogicalColumnIds() const { return fLogicalColumnIds; }
const std::optional<std::uint32_t> &GetStreamerChecksum() const { return fStreamerChecksum; }
std::optional<std::uint32_t> GetStreamerChecksum() const { return fStreamerChecksum; }
bool IsProjectedField() const { return fProjectionSourceId != kInvalidDescriptorId; }
};

Expand Down
2 changes: 1 addition & 1 deletion tree/ntuple/v7/src/RField.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ void ROOT::Experimental::RFieldBase::ConnectPageSource(Internal::RPageSource &pa
const auto &fieldDesc = desc.GetFieldDescriptor(fOnDiskId);
fOnDiskTypeVersion = fieldDesc.GetTypeVersion();
if (fieldDesc.GetStreamerChecksum().has_value())
fOnDiskStreamerChecksum = fieldDesc.GetStreamerChecksum().value();
fOnDiskStreamerChecksum = *fieldDesc.GetStreamerChecksum();
}
}
if (!fColumns.empty())
Expand Down

0 comments on commit 6d41541

Please sign in to comment.