44 ifstream
fin(
gROOT->GetTutorialDir() +
"/io/tree/cernstaff.dat");
48 auto model = RNTupleModel::Create();
52 auto fldCategory = model->MakeField<
int>(
"Category");
53 auto fldFlag = model->MakeField<
unsigned int>(
"Flag");
54 auto fldAge = model->MakeField<
int>(
"Age");
55 auto fldService = model->MakeField<
int>(
"Service");
56 auto fldChildren = model->MakeField<
int>(
"Children");
57 auto fldGrade = model->MakeField<
int>(
"Grade");
58 auto fldStep = model->MakeField<
int>(
"Step");
59 auto fldHrweek = model->MakeField<
int>(
"Hrweek");
60 auto fldCost = model->MakeField<
int>(
"Cost");
61 auto fldDivision = model->MakeField<std::string>(
"Division");
62 auto fldNation = model->MakeField<std::string>(
"Nation");
82 auto model = RNTupleModel::Create();
85 std::shared_ptr<int>
fldAge = model->MakeField<
int>(
"Age");
93 std::cout <<
"The first entry in JSON format:" << std::endl;
97 auto c =
new TCanvas(
"c",
"", 200, 10, 700, 500);
98 TH1I h(
"h",
"Age Distribution CERN, 1988", 100, 0, 100);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
1-D histogram with an int per channel (see TH1 documentation)