19 auto myHist =
new TH1F(
"h1",
"ntuple",100,-4,4);
23 if (!myFile || myFile->IsZombie()) {
36 while (myReader.Next()) {
39 myHist->Fill(*myPx + *myPy);
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
1-D histogram with a float per channel (see TH1 documentation)
An interface for reading values stored in ROOT columnar datasets.
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...