2024-02-04 16:56:05 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 09:16:19 +01:00
|
|
|
"execution_count": 1,
|
2024-02-04 16:56:05 +01:00
|
|
|
"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",
|
2024-02-13 09:16:19 +01:00
|
|
|
"execution_count": 2,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"50501"
|
|
|
|
]
|
|
|
|
},
|
2024-02-13 09:16:19 +01:00
|
|
|
"execution_count": 2,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"file = uproot.open(\n",
|
2024-02-13 09:16:19 +01:00
|
|
|
" \"/work/cetin/LHCb/reco_tuner/data/tracking_losses_ntuple_B_thesis.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\"\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
")\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",
|
2024-02-13 09:16:19 +01:00
|
|
|
"execution_count": 3,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
2024-02-08 17:43:22 +01:00
|
|
|
"outputs": [],
|
2024-02-04 16:56:05 +01:00
|
|
|
"source": [
|
2024-02-08 17:43:22 +01:00
|
|
|
"# electrons.type.show()"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 13:01:49 +01:00
|
|
|
"execution_count": 4,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2024-02-08 17:43:22 +01:00
|
|
|
"cut_prop: bool = electrons.p_end_velo > 0 # 3e3\n",
|
2024-02-05 15:44:27 +01:00
|
|
|
"found = electrons[~electrons.lost & cut_prop]\n",
|
|
|
|
"lost = electrons[electrons.lost & cut_prop]\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
"\n",
|
|
|
|
"eloss_found = (found[\"p\"] - found[\"p_end_scifi\"]) / found[\"p\"]\n",
|
|
|
|
"eloss_lost = (lost[\"p\"] - lost[\"p_end_scifi\"]) / lost[\"p\"]\n",
|
|
|
|
"\n",
|
2024-02-05 15:44:27 +01:00
|
|
|
"eloss = (electrons[\"p\"] - electrons[\"p_end_scifi\"]) / electrons[\"p\"]\n",
|
|
|
|
"eloss_magnet_found = ak.to_numpy(\n",
|
2024-02-13 09:16:19 +01:00
|
|
|
" (found[\"p_end_velo\"] - found[\"p_end_scifi\"]) / found[\"p_end_velo\"]\n",
|
|
|
|
")\n",
|
2024-02-05 15:44:27 +01:00
|
|
|
"eloss_magnet_lost = ak.to_numpy(\n",
|
2024-02-13 09:16:19 +01:00
|
|
|
" (lost[\"p_end_velo\"] - lost[\"p_end_scifi\"]) / lost[\"p_end_velo\"]\n",
|
|
|
|
")"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 13:01:49 +01:00
|
|
|
"execution_count": 5,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2024-02-08 17:43:22 +01:00
|
|
|
"eloss_velo_found = (found[\"p\"] - found[\"p_end_velo\"]) / found[\"p\"]\n",
|
|
|
|
"eloss_velo_lost = (lost[\"p\"] - lost[\"p_end_velo\"]) / lost[\"p\"]"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 13:01:49 +01:00
|
|
|
"execution_count": 6,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2024-02-08 17:43:22 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAB14UlEQVR4nOz9z2+jeb4f9n5Up5M0YFtD1QADCNLCTTk7A7bJam+yyUyR+QcsVi1nVaTXwonYHXiRxcWpoXyO7uICgck6izs7V1NJLu7q4IjVYy8S4KZL9DmAdwk5syiBwABdYssx3El8xLuokCPqJ0VRfEg9rxcggJS+/D4fUY8k6q3P9/usDAaDQQAAAADAI/ck6QIAAAAAYB4EYQAAAACkgiAMAAAAgFQQhAEAAACQ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TP/mTB6g2PTY3N+P4+Dg2Njbiw4cPSZcDQELa7XaUSqVLXUPlcvnGju5J9fv9ePXqVRwcHIy9P5fLRbPZHO0betf6dnd3o1arTVRDq9WKWq02Fixks9nR28ePH6Pb7Ua73R77eMSn4KRQKMTh4eHYfM1mM7755pvo9/uRyWTi5ORkolru6+Lzmc1mR1fTvvg5DNVqtdjd3b12zrW1tVH4l81mo9PpzL7whHW73dF5dDE4XaSX0Gn4WgDc1Y9vfz2zuT5/+cuZzcUnSWYLC9sRls1mr/xP73mFQiH+0T/6R1Gv1+Ov//qvrx33/v37iIhoNpszrTHNer1ebG5u3vi2v7+fdJkAPJBcLje6uvN5swjBIiIymcyVV3uu1Wq3hmDX1ZfJZCYOwSqVShSLxVEItr2
|
|
|
|
"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",
|
|
|
|
"plt.show()\n",
|
|
|
|
"# plt.savefig(\n",
|
|
|
|
"# \"/work/cetin/Projektpraktikum/thesis/emitted_energy_beginVelo2endT.pdf\",\n",
|
|
|
|
"# format=\"PDF\",\n",
|
|
|
|
"# )"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 09:16:19 +01:00
|
|
|
"execution_count": 7,
|
2024-02-08 17:43:22 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAABsVklEQVR4nO39z29ja3of+j5S7+Q0kERNVQMNCNIFXGQyM2Cbqu3JmZzeReUfiLhr6FGJHl4Ijrh3JnEmriZtC7h3EIQsT3qW2lSS0QFyLdbucwbnADe7xNhAgDtwtNzArboEDOwSW4mRPkks3sEO2aR+UhLFRWp9PoAAUVp817NILkn86nnftdTv9/sBAAAAAI/cctoFAAAAAMAsCMIAAAAAyARBGAAAAACZIAgDAAAAIBMEYQAAAABkgiAMAAAAgEwQhAEAAACQCYIwAAAAADJBEAYAAABAJgjCAAAAAMgEQRgAAAAAmSAIAwAAACATBGEAAAAAZIIgDAAAAIBMEIQBAAAAkAmCMAAAAAAyQRAGAAAAQCYIwgAAAADIBEEYAAAAAJkgCAMAAAAgEwRhAAAAAGSCIAwAAACATBCEAQAAAJAJgjAAAAAAMkEQBgA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uxv7+fdpkAAJApzWYzVldXhxftuuqjUCjcKSzodDpRKBRuHH91dTWazeaF+9fr9Ynr6/V6E9WUJEnU6/XY2toaq61QKMTm5mZUKpU4ODgYG69er0e5XL72OG9qfHgInU4nKpXK8DhWV1eHx1Eul+Pg4CA
|
2024-02-04 16:56:05 +01:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1200x900 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"nbins = 50\n",
|
|
|
|
"plt.hist(\n",
|
2024-02-05 15:44:27 +01:00
|
|
|
" ak.to_numpy(eloss_magnet_lost),\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
" 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",
|
2024-02-05 15:44:27 +01:00
|
|
|
" ak.to_numpy(eloss_magnet_found),\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
" 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",
|
2024-02-05 15:44:27 +01:00
|
|
|
"plt.xlabel(r\"$E_\\gamma/E_{VELO}$\")\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
"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",
|
2024-02-05 15:44:27 +01:00
|
|
|
"plt.show()\n",
|
|
|
|
"# plt.savefig(\n",
|
2024-02-08 17:43:22 +01:00
|
|
|
"# \"/work/cetin/Projektpraktikum/thesis/emitted_energy_endVelo2endT.pdf\", format=\"PDF\"\n",
|
|
|
|
"# )"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 09:16:19 +01:00
|
|
|
"execution_count": 8,
|
2024-02-08 17:43:22 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAB3lElEQVR4nOz9T2yjaZ4ndv6kStu1aw+LigIa4IqHCap9G2BmqMi5+OKqoAYL7NFi5rFPQc5tDXosVhpzHHQUNT0c7A4wMBl96ZszKdsnA70tRpV9sIF1hjhdQN9ssdqwtAQaqBCLM+Mp293UHnLEEiUF9Y/iS+r9fAAhRenh8/4Y5JsSv/o9z7t2fn5+HgAAAADwzK0nXQAAAAAALIIgDAAAAIBUEIQBAAAAkAqCMAAAAABSQRAGAAAAQCoIwgAAAABIBUEYAAAAAKkgCAMAAAAgFQRhAAAAAKSCIAwAAACAVBCEAQAAAJAKgjAAAAAAUkEQBgAAAEAqCMIAAAAASAVBGAAAAACpIAgDAAAAIBUEYQAAAACkgiAMAAAAgFQQhAEAAACQCoIwAAAAAFJBEAYAAABAKgjCAAAAAEgFQRgAAAAAqSAIAwAAACAVBGEAAAAApIIgDAAAAIBUEIQBAAAAkAqCMAAAAABS4bOkC+D+/t1/99+N3/zmN/G9730vfud3fifpcgAAAADu7C/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hzf7XYn4Vuj0XjUsQEAAAB4nKUNwv75P//nUa/XIyImYdZla2trd5pnbW0tzs/P4+XLl/Hu3btH19XpdCZdYPv
|
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1200x900 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"nbins = 50\n",
|
|
|
|
"plt.hist(\n",
|
|
|
|
" ak.to_numpy(eloss_velo_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_velo_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",
|
|
|
|
"plt.show()\n",
|
|
|
|
"# plt.savefig(\n",
|
|
|
|
"# \"/work/cetin/Projektpraktikum/thesis/emitted_energy_beginVelo2endVelo.pdf\",\n",
|
|
|
|
"# format=\"PDF\",\n",
|
|
|
|
"# )"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 13:01:49 +01:00
|
|
|
"execution_count": 9,
|
2024-02-08 17:43:22 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"### --- ### above should be correct"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 13:01:49 +01:00
|
|
|
"execution_count": 10,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"# magnet kick position\n",
|
2024-02-08 17:43:22 +01:00
|
|
|
"input_tree = uproot.open({\n",
|
2024-02-13 13:01:49 +01:00
|
|
|
" \"/work/cetin/Projektpraktikum/tracking_losses_ntuple_test_zmag.root\" : \"PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\"\n",
|
2024-02-08 17:43:22 +01:00
|
|
|
"})\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
"array = input_tree.arrays()\n",
|
2024-02-13 13:01:49 +01:00
|
|
|
"array = array[(array.isElectron) & (array.fromB)]\n"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-08 17:43:22 +01:00
|
|
|
"execution_count": 21,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2024-02-13 13:01:49 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90b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B1huVzu2vOd7MjRJR1hJ7tq2o92R9KonexsOqvb5jztDqN+38d5P5PrzHl8rsu6kE52CZ3XlXeyc+14Z9hxx38e561dqVR66uBqNpsD7QhLJBKX/r1fNk+vtbf1+rs43gl22e/6eMfXed2Lx2s0TfPM3+vJv91R/fcPAAAAgOGhIwwIoKB3hF3Fybs/Std7H5lMRs1m89wuqPadKnuZ+6yaznP8BgWpVOrcs9FO3inxvC7A4/W7rhvY3+l5f4PHvz+IQ/F7/V1ks9nO+qlUqqex0lGX21k3aDj+PjY3N8/8vZ78W9vZ2empVgAAAADBRRAGBNB54UC9Xh9xJf07K1B5//79tecqlUqq1WqntuBJR6FHNBodaLjU6zbQ47+zq2wdDdIdFjc3N5XL5VQqlS4Nm6TRBbPFYrGzVi/BWSqV6vodXOUGDScdXy9IvysAAAAA10MQBgTQeV1HZ3W2BN1ZwcXt27f7mjMcDp979ppt26fOrxqF697Rs9FoDLaQPpimqUwmc+6ZbFc5222QKpVK5+teO8iO/xsax383AAAAAIaDIAwIqLM6nhzHCexWuqu4ytbEi6RSKdXr9VMhVLlcDnT4cd3QbNQcx1GxWFS1Wj3zIPxR1nFVJ//GPoZ/NwAAAAD6RxAGBNTy8vKZ3w9ywHOek8HPoIKw9ly1Wu3UGle9Uyf+Q/uul4VC4cJz0UbleIjVayh
|
2024-02-04 16:56:05 +01:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1200x900 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2024-02-13 13:01:49 +01:00
|
|
|
"xmin: float = 5200\n",
|
|
|
|
"xmax: float = 5600\n",
|
|
|
|
"\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
"fig = plt.figure()\n",
|
2024-02-13 13:01:49 +01:00
|
|
|
"plt.hist(array[array.lost][\"match_zmag\"],\n",
|
|
|
|
" bins=80,\n",
|
|
|
|
" range=[xmin, xmax],\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" label=\"lost\",\n",
|
|
|
|
" density=True)\n",
|
|
|
|
"plt.hist(array[~array.lost][\"match_zmag\"],\n",
|
|
|
|
" bins=80,\n",
|
|
|
|
" range=[xmin, xmax],\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" label=\"found\",\n",
|
2024-02-05 15:44:27 +01:00
|
|
|
" density=True)\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
"plt.xlabel(r\"z$_{Mag}$ [mm]\")\n",
|
|
|
|
"plt.ylabel(\"Number of Tracks (normalised)\")\n",
|
2024-02-13 13:01:49 +01:00
|
|
|
"plt.legend(loc=\"best\")\n",
|
|
|
|
"mplhep.lhcb.text(\"Simulation\",loc=0)\n",
|
|
|
|
"plt.show()\n",
|
|
|
|
"# plt.savefig(\n",
|
|
|
|
"# \"/work/cetin/Projektpraktikum/thesis/match_zmag_lost_found.pdf\",\n",
|
|
|
|
"# format=\"PDF\")"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|