Hsimple Proxy Driver

This is the driver of the hsimpleProxy example It provides the infrastructure to run that code on an ntuple To be run from the tutorials directory

Author: Rene Brun
This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Sunday, September 20, 2020 at 10:36 AM.

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);
std::string s1(__FILE__);
TString dir = gSystem->UnixPathName(s1.substr(0, s1.find_last_of("\\/")).c_str());
ntuple->Draw(dir+"/hsimpleProxy.C+");
/home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/master_TMP/notebooks
Error in <TTreeFormula::Compile>:  Invalid Syntax "+"
Info in <TSelectorDraw::AbortProcess>: Variable compilation failed: {input_line_44/hsimpleProxy.C+,}