To use this file, generate hsimple.root:

root.exe -b -l -q hsimple.C

and do

TFile *file = TFile::Open("hsimple.root");
   TTree *ntuple ;  file->GetObject("ntuple",ntuple);

Author: Rene Brun
This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Thursday, August 18, 2022 at 09:51 AM.

In [1]:
return px;
input_line_43:2:3: error: use of undeclared identifier 'px'
Error in <HandleInterpreterException>: Error evaluating expression (px)
Execution of your code was aborted.