58 auto eventId =
entry->GetPtr<std::uint32_t>(
"eventId");
65 auto d =
static_cast<double>(
gen()) / generator::max();
66 *
rndm =
static_cast<float>(
d);
77 std::cout <<
"Thread #" <<
id <<
" wrote events #" <<
eventIdStart <<
" - #"
87 std::cout <<
" === Writing with staged cluster committing ===" << std::endl;
91 model->MakeField<std::uint32_t>(
"eventId");
92 model->MakeField<
float>(
"rndm");
104 std::vector<std::thread>
threads;
129 auto eventId =
entry->GetPtr<std::uint32_t>(
"eventId");
132 auto rndm =
entry->GetPtr<
float>(
"rndm");
137 auto d =
static_cast<double>(
gen()) / generator::max();
138 *
rndm =
static_cast<float>(
d);
151 std::cout <<
"Thread #" <<
id <<
" wrote events #" << lastEvent <<
" as entries #"
167 std::cout <<
"Thread #" <<
id <<
" wrote events #" << lastEvent <<
" as entries #"
176 std::cout <<
"\n === ... with sequencing in blocks of " <<
kNEventsPerBlock <<
" events ===" << std::endl;
180 model->MakeField<std::uint32_t>(
"eventId");
181 model->MakeField<
float>(
"rndm");
194 std::vector<std::thread>
threads;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A writer to fill an RNTuple from multiple contexts.
static std::unique_ptr< RNTupleModel > CreateBare()
Creates a "bare model", i.e. an RNTupleModel with no default entry.
Common user-tunable settings for storing RNTuples.
void SetApproxZippedClusterSize(std::size_t val)
void FillData(BinData &dv, const TH1 *hist, TF1 *func=nullptr)
fill the data vector from a TH1.
std::uint64_t NTupleSize_t
Integer type long enough to hold the maximum number of entries in a column.