using ROOT::Experimental::RNTupleModel;
std::vector<float> _resolutions = ...
std::vector<std::shared_ptr<float>> _results(15);
auto model = RNTupleModel::Create();
model->AddField(std::make_unique<ROOT::Experimental::RField<float>>(name /* field name */));
model->GetDefaultEntry();
model->GetDefaultEntry().BindValue(name, _results[0]);
/* And so on for the other fields */
This code uses the latest RNTuple interfaces which will be released in ROOT 6.32. If you need code for ROOT 6.28, please let me know; the interface works differently there.
Looking into it, the difference is rather substantial, and things improved meanwhile. Please let me know by private message if you’d like to continue with the experiments on the 6.28 branch. Otherwise I’d suggest to continue on the master branch or on 6.32 once released.