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 (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+");


/home/ebocchi/cernbox/Enrico/Tests on SWAN/converted_notebooks/tree
Error in <TFile::TFile>: file hsimple.root does not exist
Input file not found.
    __boot()
    import os
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
input_line_24:9:1: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
file->GetObject("ntuple",ntuple);
^~~~