{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "application/javascript": [ "\n", "require(['notebook'],\n", " function() {\n", " IPython.CodeCell.config_defaults.highlight_modes['magic_text/x-c++src'] = {'reg':[/^%%cpp/]};\n", " console.log(\"JupyROOT - %%cpp magic configured\");\n", " }\n", ");\n" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "Welcome to JupyROOT 6.08/02\n" ] } ], "source": [ "import ROOT\n", "from ROOT import gSystem\n", "gSystem.CompileMacro(\"MiniTree.cpp\")\n", "\n", "%load_ext autoreload\n", "%autoreload 2\n", "# from canvas_wrapper import canvas\n", "import utils\n", "import plotter" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Finished filling histograms for file TTTT_ext_treeProducerSusyMultilepton_tree.root\n", "Finished filling histograms for file TTZToLLNuNu_treeProducerSusyMultilepton_tree.root\n", "Finished filling histograms for file TTWToLNu_treeProducerSusyMultilepton_tree.root\n" ] } ], "source": [ "hists_TTTT = ROOT.build_histograms(\"TTTT\", \"TTTT_ext_treeProducerSusyMultilepton_tree.root\")\n", "hists_TTZ = ROOT.build_histograms(\"TTZ\", \"TTZToLLNuNu_treeProducerSusyMultilepton_tree.root\")\n", "hists_TTW = ROOT.build_histograms(\"TTW\", \"TTWToLNu_treeProducerSusyMultilepton_tree.root\")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# can = canvas(size=(1600, 1200))\n", "%jsroot on\n", "can = ROOT.TCanvas(\"c1\", \"\", 1600, 1200)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "\n", "