From c1dd9b0952a1d735e3f8fc913295dac43e348a79 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Wed, 25 Sep 2024 14:14:39 +0200 Subject: [PATCH] [ntuple] Allow RNTupleModel::GetToken before Freeze This already works when going via GetDefaultEntry() and is very convenient to get tokens while building the fields. --- tree/ntuple/v7/src/RNTupleModel.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/tree/ntuple/v7/src/RNTupleModel.cxx b/tree/ntuple/v7/src/RNTupleModel.cxx index 429c32f0836ce..fe23ae87114f6 100644 --- a/tree/ntuple/v7/src/RNTupleModel.cxx +++ b/tree/ntuple/v7/src/RNTupleModel.cxx @@ -423,9 +423,6 @@ std::unique_ptr ROOT::Experimental::RNTupleModel::Cr ROOT::Experimental::REntry::RFieldToken ROOT::Experimental::RNTupleModel::GetToken(std::string_view fieldName) const { - if (!IsFrozen()) - throw RException(R__FAIL("invalid attempt to get field token of unfrozen model")); - const auto &topLevelFields = fFieldZero->GetSubFields(); auto it = std::find_if(topLevelFields.begin(), topLevelFields.end(), [&fieldName](const RFieldBase *f) { return f->GetFieldName() == fieldName; });