Projektpraktikum/notebooks/thesis_electrons.ipynb

247 lines
99 KiB
Plaintext
Raw Normal View History

2024-02-04 16:56:05 +01:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
"import uproot\n",
"import numpy as np\n",
"import sys\n",
"import os\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
"import mplhep\n",
"from mpl_toolkits import mplot3d\n",
"import itertools\n",
"import awkward as ak\n",
"from scipy.optimize import curve_fit\n",
"from utils.components import unique_name_ext_re\n",
"mplhep.style.use([\"LHCbTex2\"])\n",
"plt.rcParams[\"savefig.dpi\"] = 600\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"50501"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"file = uproot.open(\n",
" \"/work/cetin/Projektpraktikum/tracking_losses_ntuple_B_rad_length_endVelo2endUT.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\"\n",
")\n",
"\n",
"# selektiere nur elektronen von B->K*ee\n",
"allcolumns = file.arrays()\n",
"electrons = allcolumns[(allcolumns.isElectron) & (allcolumns.fromB)]\n",
"\n",
"ak.num(electrons, axis=0)\n",
"# ak.count(found, axis=None)"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
"# electrons.type.show()"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
"found = electrons[~electrons.lost]\n",
"lost = electrons[electrons.lost]\n",
"\n",
"eloss_found = (found[\"p\"] - found[\"p_end_scifi\"]) / found[\"p\"]\n",
"eloss_lost = (lost[\"p\"] - lost[\"p_end_scifi\"]) / lost[\"p\"]\n",
"\n",
"eloss = (electrons[\"p\"] - electrons[\"p_end_scifi\"]) / electrons[\"p\"]"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [],
"source": [
"# eloss_upstream_found = (found[\"p\"] - found[\"p_end_ut\"]) / found[\"p\"]\n",
"# eloss_upstream_lost = (lost[\"p\"] - lost[\"p_end_ut\"]) / lost[\"p\"]"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAB2HUlEQVR4nOz9z29jaZon9j5Spe0C7FFTUUABgrSYJO2dAc+Qkb3xxlVB+h+wGLGsVYizvBDaZObAC686ippuLQcWoxe3dhNJ2b64q0GLkWUvbOA6Q5xuYHZjsmoRAoECKsTSeDBpe1q8izBZon5SFMVD6nw+gABSevmeR9TRD371vO9ZGQwGgwAAAACAJ2416QIAAAAAYB4EYQAAAACkgiAMAAAAgFQQhAEAAACQCoIwAAAAAFJBEAYAAABAKgjCAAAAAEgFQRgAAAAAqSAIAwAAACAVBGEAAAAApIIgDAAAAIBUEIQBAAAAkAqCMAAAAABSQRAGAAAAQCoIwgAAAABIBUEYAAAAAKkgCAMAAAAgFQRhAAAAAKSCIAwAAACAVBCEAQAAAJAKgjAAAAAAUkEQBgAAAEAqCMIAAAAASAVBGAAAAACpIAgDAAAAIBUEYQAAAACkgiAMAAAAgFQQhAEAAACQCl8kXQDL5T/8D//D+OGHH+JHP/pR/PSnP026HAAAAGDJ/O53v4u/+7u/ix//+Mfxb/7Nv5nrsVcGg8Fgrkdkqf3oRz+K8/PzpMsAAAAAltzq6mr83d/93VyPqSOMexkGYaurq7GxsZF0ORPr9XpLWfeQ+pOzzLVHqD9Jy1x7hPqTtMy1R6g/Sctce4T6k7TMtUcsd/3LXHuE+pO0zLVH/LH+H/3oR3M/tiCMe/npT38aJycnsbGxER8/fky6nIltbW0tZd1D6k/OMtceof4kLXPtEep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YX1+Pb7/99trH9/v9+Ou//uv4q7/6q2i32/EP/sE/mFfpqbCxsREfP35MugwAAABggUyyTdLW1lZiXWMLG4S1Wq3I5XLxr/7Vv7r2469fv46/+qu/ilwuF3//7//9a8f8V//VfxUREV9//XX883/+zx+rVAAAAACWwGrSBdyk2+2OusKu8/XXX8dgMIi9vb1b56nVavHXf/3X8Zd/+ZezLhFYQoeHh9HtdpMuY2HN4sIkAAAAi2phg7CIiOfPn9/4sS+//DJevHgRBwcHt27Kns1m4x/+w38Y1WrV5u3cqtFoxPr6+ujiCje95XK5qcKCdrsduVzuzvnX19ej0Whcefze3t7E9U16hdRutxt7e3tRKpXGasvlclEoFKJSqcTh4eHYfHt7e1Eul2/9PO8KqB9Du92OSqUy+jzW19dHn0e5XI7Dw8M4PDyM169f3/n1a7Vao8c/9WCo2+1Go9GIUqkUKysrUSqVki5pTJq+FgAAwONbGTzkcoyP6Pnz53F4eHjjsseIzy+Q/sv/8r+Mf/SP/lH803/6T28c94/+0T+KRqMRX3/9dfz5n//5I1SbHsN1vJubm092j7B2ux3lcvlK19DOzs6tXYqT6vf78fr16zg8PBx7fz6fj2azOdoL7771VavVqNfrE9XQarWiXq+PBQvZbHb09unTp+h2u9Fut8c+HvE5OCkWi3F0dDQ2X7PZjG+//Tb6/X5kMpk4PT2dqJaHuvx8ZrPZ0RViL38OQ/V6ParV6o1zrq+vj8K/bDYbnU5n9oUnrNvtjs6jy8HpIv1aSMPXAgCA2fvh3a9mNtePX/1iZnPxWZLZwsJ2hGWz2Wu7Yi4qFovxD//hP4yDg4P427/92xvHffjwISIims3mTGvkacrn81Gr1a68fxYhWEREJpO59gqm9Xr9zhDspvoymczEIVilUolSqTQKwba3t6PT6USn04mjo6M4ODi
"text/plain": [
"<Figure size 1200x900 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"nbins = 50\n",
"plt.hist(\n",
" ak.to_numpy(eloss_lost),\n",
" bins=nbins,\n",
" density=True,\n",
" alpha=0.5,\n",
" histtype=\"bar\",\n",
" color=\"#F05342\",\n",
" label=\"lost\",\n",
" range=[0.001, 1],\n",
")\n",
"# #2A9D8F another teal color\n",
"plt.hist(\n",
" ak.to_numpy(eloss_found),\n",
" bins=nbins,\n",
" density=True,\n",
" alpha=0.5,\n",
" histtype=\"bar\",\n",
" color=\"#107E7D\",\n",
" label=\"found\",\n",
" range=[0.001, 1],\n",
")\n",
"\n",
"plt.xlabel(r\"$E_\\gamma/E_0$\")\n",
"plt.ylabel(\"a.u.\")\n",
"# plt.title(r'$B\\rightarrow K^\\ast ee$, $p>5$GeV, photons w/ brem_vtx_z$<9500$mm')\n",
"plt.legend(title=\"LHCb Simulation\")\n",
"\n",
"plt.savefig(\"/work/cetin/Projektpraktikum/thesis/emitted_energy.pdf\", format=\"PDF\")"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
"# magnet kick position\n",
"input_tree = uproot.open(\n",
" {\n",
" \"/work/cetin/Projektpraktikum/param_data_B_default.root\": \"PrParameterisationData_2ece6184.PrDebugTrackingTool/Tuple;1\"\n",
" }\n",
")\n",
"array = input_tree.arrays()\n",
"array = array[array.isElectron & (array.fromB)]\n",
"array[\"dSlope_fringe\"] = array[\"tx_ref\"] - array[\"tx\"]\n",
"array[\"z_mag_x_fringe\"] = (\n",
" array[\"x\"]\n",
" - array[\"x_ref\"]\n",
" - array[\"tx\"] * array[\"z\"]\n",
" + array[\"tx_ref\"] * array[\"z_ref\"]\n",
") / array[\"dSlope_fringe\"]"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(exptext: Custom Text(0.05, 0.95, 'LHCb'),\n",
" expsuffix: Custom Text(0.05, 0.955, 'Simulation'))"
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQ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IaGtrS+VyWZVKRY7jqFarSZLGxsZkmqbi8bhisZhCoZDPFQMAAAAAACAIAn9YPt59HJYPP9XrdYXDYb/LAC7Vz/70R0/m+cuvfuvJPAAAABhufuYAA7M1EgC8Ytu2MpmMRkdHNT8/73c5AAAAAIA+GbitkZ1YWlrSnTt39NOf/tTvUgBckG3bevr0qWzbbm17bnZtmaapsbExWZbV2v58VDKZlOM4qlQqra/V63WVy2U9ffpU5XJZ9Xq9j+8IAAAAABAUA9cR9vz5c929e1c3b97U8+fPTxwTjUY1NTWljz/+WD/88EOfK8SwKxQKrZs3XOQRjUY9Wb+btUdHR0+dL5lMdjVnuVzuuOZ6va5MJtP6OeRyOZXLZTmO0wqt6vW6bNtWuVxWLpdTPB5vjc9kMioUCkomk1pbWzs2//z8vB4+fKi1tTVCMAAAAAAYYgMThP3hD3/Q1atXlUwmVSgUZNt264D8oxKJhBzH0XfffSfTNPXVV1/1uVoMs1Qqpb29PVUqFSUSiTPHxmIxlUql1ngvuK6rarWqfD5/5tlXpmkqn8+rWq1qb2/v1HHFYlF7e3sqlUondmAdtri4qEqlor29vXPHNjW3KOZyubavJxIJFYvF1nzN91UqlZRKpVrvzbZt5XI5pdPpVgh2NOxqzuO6rkzT7KguAAAAAMC7J/BB2Nu3b3X9+nVlMpnWH8OdnO8fDodVqVR048YNJRIJffnll32oFjgQDodlWZaKxaJSqdS
"text/plain": [
"<Figure size 1200x900 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"plt.hist(\n",
" array[\"z_mag_x_fringe\"], bins=50, range=[5150, 5300], color=\"#2A9D8F\", density=True\n",
")\n",
"plt.xlabel(r\"z$_{Mag}$ [mm]\")\n",
"plt.ylabel(\"Number of Tracks (normalised)\")\n",
"mplhep.lhcb.text(\"Simulation\")"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"50501"
]
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ak.num(array, axis=0)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "tuner",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 2
}