{ "cells": [ { "cell_type": "markdown", "id": "168de751", "metadata": {}, "source": [ "# fitslicesy\n", "Illustrates how to use the TH1::FitSlicesY function\n", "It uses the TH2F histogram generated in macro hsimple.C\n", "It invokes FitSlicesY and draw the fitted \"mean\" and \"sigma\"\n", "in 2 sepate pads.\n", "This macro shows also how to annotate a picture, change\n", "some pad parameters.\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:06 PM." ] }, { "cell_type": "markdown", "id": "d68d7d8b", "metadata": {}, "source": [ "Change some default parameters in the current style" ] }, { "cell_type": "code", "execution_count": 1, "id": "88f5e9bb", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:06:25.637745Z", "iopub.status.busy": "2026-05-19T20:06:25.637561Z", "iopub.status.idle": "2026-05-19T20:06:26.071076Z", "shell.execute_reply": "2026-05-19T20:06:26.070575Z" } }, "outputs": [], "source": [ "gStyle->SetLabelSize(0.06,\"x\");\n", "gStyle->SetLabelSize(0.06,\"y\");\n", "gStyle->SetFrameFillColor(38);\n", "gStyle->SetTitleW(0.6);\n", "gStyle->SetTitleH(0.1);" ] }, { "cell_type": "markdown", "id": "99056698", "metadata": {}, "source": [ "Connect the input file and get the 2-d histogram in memory" ] }, { "cell_type": "code", "execution_count": 2, "id": "ccc1ac34", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:06:26.089300Z", "iopub.status.busy": "2026-05-19T20:06:26.089148Z", "iopub.status.idle": "2026-05-19T20:06:26.727079Z", "shell.execute_reply": "2026-05-19T20:06:26.720471Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "