{
"cells": [
{
"cell_type": "markdown",
"id": "8321b9db",
"metadata": {},
"source": [
"# hsimpleProxyDriver\n",
"This is the driver of the hsimpleProxy example.\n",
"It provides the infrastructure to run that code on an ntuple\n",
"To be run from the tutorials directory\n",
"\n",
"\n",
"\n",
"\n",
"**Author:** Rene Brun \n",
"This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Tuesday, May 19, 2026 at 08:16 PM."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "088f15d3",
"metadata": {
"collapsed": false,
"execution": {
"iopub.execute_input": "2026-05-19T20:16:58.152262Z",
"iopub.status.busy": "2026-05-19T20:16:58.152152Z",
"iopub.status.idle": "2026-05-19T20:16:58.518084Z",
"shell.execute_reply": "2026-05-19T20:16:58.517771Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/github/home/master/notebooks\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Error in : Invalid Syntax \"+\"\n",
"Info in : Variable compilation failed: {input_line_44/hsimpleProxy.C+,}\n"
]
}
],
"source": [
"std::cout << gSystem->WorkingDirectory() << std::endl;\n",
"TFile *file = TFile::Open(\"hsimple.root\");\n",
"if (!file){\n",
" std::cerr << \"Input file not found.\\n\";\n",
" return ;\n",
"}\n",
"TTree *ntuple = nullptr;\n",
"file->GetObject(\"ntuple\",ntuple);\n",
"std::string s1(__FILE__);\n",
"TString dir = gSystem->UnixPathName(s1.substr(0, s1.find_last_of(\"\\\\/\")).c_str());\n",
"ntuple->Draw(dir+\"/hsimpleProxy.C+\");"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "ROOT C++",
"language": "c++",
"name": "root"
},
"language_info": {
"codemirror_mode": "text/x-c++src",
"file_extension": ".C",
"mimetype": " text/x-c++src",
"name": "c++"
}
},
"nbformat": 4,
"nbformat_minor": 5
}