{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import uproot\t\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "from mpl_toolkits import mplot3d\n", "import awkward as ak\n", "from scipy.optimize import curve_fit\n", "import mplhep\n", "mplhep.style.use([\"LHCbTex2\"])\n", "\n", "plt.rcParams[\"savefig.dpi\"] = 600\n", "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "file = uproot.open(\n", " \"/work/cetin/Projektpraktikum/trackinglosses_B_photon_cuts.root\")\n", "\n", "# selektiere nur elektronen von B->K*ee\n", "allcolumns = []\n", "for i in range(11):\n", " allcolumns.append(file[\"Tree\" + str(i)].arrays())" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
{oneCut_event_id: 1,\n", " oneCut_lost: False,\n", " oneCut_rad_length_frac: 0.148,\n", " oneCut_energy: 1.28e+04,\n", " noneCut_brem_photons_pe: 1,\n", " oneCut_brem_photons_pe: [7.42e+03],\n", " noneCut_brem_vtx_x: 1,\n", " oneCut_brem_vtx_x: [-3.61],\n", " noneCut_brem_vtx_z: 1,\n", " oneCut_brem_vtx_z: [35.6],\n", " oneCut_photon_length: 1}\n", "------------------------------------------\n", "type: {\n", " oneCut_event_id: int64,\n", " oneCut_lost: bool,\n", " oneCut_rad_length_frac: float64,\n", " oneCut_energy: float64,\n", " noneCut_brem_photons_pe: int32,\n", " oneCut_brem_photons_pe: var * float64,\n", " noneCut_brem_vtx_x: int32,\n", " oneCut_brem_vtx_x: var * float64,\n", " noneCut_brem_vtx_z: int32,\n", " oneCut_brem_vtx_z: var * float64,\n", " oneCut_photon_length: int64\n", "}" ], "text/plain": [ "