46 double x()
const {
return fX; }
47 double y()
const {
return fY; }
48 double z()
const {
return fZ; }
50 void SetXYZ(
double x,
double y,
double z) {
60 auto model = RNTupleModel::Create();
64 RNTupleWriteOptions options;
69 for (
unsigned int i = 0; i < 500000; ++i) {
70 fldVector3->SetXYZ(
r.Gaus(0,1),
r.Landau(0,1),
r.Gaus(100,10));
85 ntuple->PrintInfo(ENTupleInfo::kStorageDetails);
98 TH1F h1(
"x",
"x component of Vector3", 100, -3, 3);
103 for (
auto i :
ntuple->GetEntryRange()) {
112 for (
auto i :
ntuple->GetEntryRange()) {
118 ntuple->PrintInfo(ENTupleInfo::kMetrics);
125 float nbytesRead =
ntuple->GetMetrics().GetCounter(
"RNTupleReader.RPageSourceFile.szReadPayload")->GetValueAsInt() +
126 ntuple->GetMetrics().GetCounter(
"RNTupleReader.RPageSourceFile.szReadOverhead")->GetValueAsInt();
128 std::cout <<
"File size: " <<
fileSize / 1024. / 1024. <<
" MiB" << std::endl;
129 std::cout <<
"Read from file: " <<
nbytesRead / 1024. / 1024. <<
" MiB" << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TSystem * gSystem
The RNTupleModel encapulates the schema of an ntuple.
An RNTuple that is used to read data from storage.
An RNTuple that gets filled with entries (data) and writes them to storage.
Common user-tunable settings for storing ntuples.
1-D histogram with a float per channel (see TH1 documentation)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
This is the base class for the ROOT Random number generators.
int GetPathInfo(const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
Get info about a file: id, size, flags, modification time.
ENTupleInfo
Listing of the different options that can be printed by RNTupleReader::GetInfo()
@ kUseGeneralPurpose
Use the new recommended general-purpose setting; it is a best trade-off between compression ratio/dec...