5A simple way to write an RNTuple in python is by:
6- creating
a model and adding fields to it
8- creating entries and filling them with
data
9- committing entries to the RNTuple via
writer.Fill(entry)
15model = ROOT.RNTupleModel.Create()
17# Define the schema by adding fields to the model.
18model.MakeField['int']("foo")
20# Create
a writer as
a context manager
22 # create an entry and use it to write data to the RNTuple
23 entry =
writer.CreateEntry()
27# On destruction, the
writer will flush the written
data to disk
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
An RNTuple that gets filled with entries (data) and writes them to storage.
static std::unique_ptr< RNTupleWriter > Recreate(std::unique_ptr< ROOT::RNTupleModel > model, std::string_view ntupleName, std::string_view storage, const ROOT::RNTupleWriteOptions &options=ROOT::RNTupleWriteOptions())
Creates an RNTupleWriter backed by storage, overwriting it if one with the same URI exists.