39 auto fldI = model->MakeField<std::uint32_t>(
"i");
40 auto fldVpx = model->MakeField<
float>(
"vpx");
45 for (
int i = 0; i <
kNEvents; i += 5) {
52 std::cout <<
"Wrote " <<
writer->GetNEntries() <<
" to the main RNTuple" << std::endl;
59 auto fldI = model->MakeField<std::uint32_t>(
"i");
60 auto fldVpy = model->MakeField<
float>(
"vpy");
71 std::cout <<
"Wrote " <<
writer->GetNEntries() <<
" to the auxiliary RNTuple" << std::endl;
76 auto c =
new TCanvas(
"c",
"RNTupleJoinProcessor Example", 200, 10, 700, 500);
77 TH1F hPy(
"h",
"This is the px + py distribution", 100, -4, 4);
92 px = *
entry.GetPtr<
float>(
"vpx");
99 std::cout <<
"Processed a total of " <<
processor->GetNEntriesProcessed() <<
" entries" << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
Specification of the name and location of an RNTuple, used for creating a new RNTupleProcessor.
Interface for iterating over entries of RNTuples and vertically concatenated RNTuples (chains).
static std::unique_ptr< RNTupleModel > Create()
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())
Throws an exception if the model is null.
1-D histogram with a float per channel (see TH1 documentation)
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...