Author: Rene Brun
This notebook tutorial was automatically generated with ROOTBOOK-izer (Beta) from the macro found in the ROOT repository on Tuesday, January 17, 2017 at 02:43 PM.
In [1]:
std::cout << gSystem->WorkingDirectory() << std::endl;
TFile *file = TFile::Open("hsimple.root");
if (!file){
std::cerr << "Input file not found.\n";
return ;
}
TTree *ntuple = nullptr;
file->GetObject("ntuple",ntuple);
TString dir = gSystem->DirName(__FILE__);
ntuple->Draw(dir+"/hsimpleProxy.C+");