Loading [MathJax]/extensions/tex2jax.js
Logo ROOT   6.12/07
Reference Guide
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
hsimpleProxyDriver.C File Reference

Detailed Description

View in nbviewer Open in SWAN 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

void hsimpleProxyDriver()
{
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+");
}
Author
Rene Brun

Definition in file hsimpleProxyDriver.C.