{ "cells": [ { "cell_type": "markdown", "id": "eac9884d", "metadata": {}, "source": [ "# h1chain\n", "Creates a TChain to be used by the h1analysis.C class\n", "the symbol H1 must point to a directory where the H1 data sets\n", "have been installed.\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:11 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "cf5002ae", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:11:17.870674Z", "iopub.status.busy": "2026-05-19T20:11:17.870545Z", "iopub.status.idle": "2026-05-19T20:11:18.187301Z", "shell.execute_reply": "2026-05-19T20:11:18.186768Z" } }, "outputs": [], "source": [ "TChain chain(\"h42\");" ] }, { "cell_type": "markdown", "id": "13569374", "metadata": {}, "source": [ " Arguments are defined. " ] }, { "cell_type": "code", "execution_count": 2, "id": "c6d7f9cc", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:11:18.196619Z", "iopub.status.busy": "2026-05-19T20:11:18.196478Z", "iopub.status.idle": "2026-05-19T20:11:18.400279Z", "shell.execute_reply": "2026-05-19T20:11:18.399625Z" } }, "outputs": [], "source": [ "const char *h1dir = 0;" ] }, { "cell_type": "code", "execution_count": 3, "id": "723aaf1c", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:11:18.402437Z", "iopub.status.busy": "2026-05-19T20:11:18.402318Z", "iopub.status.idle": "2026-05-19T20:11:18.611806Z", "shell.execute_reply": "2026-05-19T20:11:18.610511Z" } }, "outputs": [], "source": [ "if (h1dir) {\n", " gSystem->Setenv(\"H1\",h1dir);\n", "}\n", "chain.SetCacheSize(20*1024*1024);\n", "chain.Add(\"$H1/dstarmb.root\");\n", "chain.Add(\"$H1/dstarp1a.root\");\n", "chain.Add(\"$H1/dstarp1b.root\");\n", "chain.Add(\"$H1/dstarp2.root\");" ] } ], "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 }