{
"cells": [
{
"cell_type": "markdown",
"id": "f853420e",
"metadata": {},
"source": [
"# rf401_importttreethx\n",
"Data and categories: advanced options for importing data from ROOT TTree and THx histograms\n",
"\n",
"Basic import options are demonstrated in rf102_dataimport.C\n",
"\n",
"\n",
"\n",
"\n",
"**Author:** Wouter Verkerke \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:31 PM."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "b6f678d8",
"metadata": {
"collapsed": false,
"execution": {
"iopub.execute_input": "2026-05-19T20:31:29.688864Z",
"iopub.status.busy": "2026-05-19T20:31:29.688754Z",
"iopub.status.idle": "2026-05-19T20:31:29.703158Z",
"shell.execute_reply": "2026-05-19T20:31:29.702688Z"
}
},
"outputs": [],
"source": [
"%%cpp -d\n",
"#include \"RooRealVar.h\"\n",
"#include \"RooDataSet.h\"\n",
"#include \"RooDataHist.h\"\n",
"#include \"RooCategory.h\"\n",
"#include \"RooGaussian.h\"\n",
"#include \"TCanvas.h\"\n",
"#include \"TAxis.h\"\n",
"#include \"RooPlot.h\"\n",
"#include \"TH1.h\"\n",
"#include \"TTree.h\"\n",
"#include \"TRandom.h\"\n",
"#include