2024-02-04 16:56:05 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-08 17:43:22 +01:00
|
|
|
"execution_count": 10,
|
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-08 17:43:22 +01:00
|
|
|
"execution_count": 11,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"50501"
|
|
|
|
]
|
|
|
|
},
|
2024-02-08 17:43:22 +01:00
|
|
|
"execution_count": 11,
|
2024-02-04 16:56:05 +01:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"file = uproot.open(\n",
|
2024-02-08 17:43:22 +01:00
|
|
|
" \"/work/cetin/Projektpraktikum/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-08 17:43:22 +01:00
|
|
|
"execution_count": 12,
|
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-08 17:43:22 +01:00
|
|
|
"execution_count": 13,
|
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-08 17:43:22 +01:00
|
|
|
" (found[\"p_end_velo\"] - found[\"p_end_scifi\"]) / found[\"p_end_velo\"])\n",
|
2024-02-05 15:44:27 +01:00
|
|
|
"eloss_magnet_lost = ak.to_numpy(\n",
|
2024-02-08 17:43:22 +01:00
|
|
|
" (lost[\"p_end_velo\"] - lost[\"p_end_scifi\"]) / lost[\"p_end_velo\"])"
|
2024-02-04 16:56:05 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-08 17:43:22 +01:00
|
|
|
"execution_count": 14,
|
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-08 17:43:22 +01:00
|
|
|
"execution_count": 15,
|
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/ck6QIAAAAAYB4EYQAAAACkgiAMAAAAgFQQhAEAAACQCoIwAAAAAFJBEAYAAABAKgjCAAAAAEgF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ZcDQELa7XaUSqVLXUPlcvnGju5J9fv9ePXqVRwcHIy9P5fLRbPZHO0betf6dnd3o1arTVRDq9WKWq02Fixks9nR28ePH6Pb7Ua73R77eMSn4KRQKMTh4eHYfM1mM7755pvo9/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",
|
|
|
|
"execution_count": 16,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAABsVklEQVR4nO39z29ja3of+j5S7+Q0kERNVQMNCNIFXGQyM2Cbqu3JmZzeReUfiLhr6FGJHl4Ijrh3JnEmriZtC7h3EIQsT3qW2lSS0QFyLdbucwbnADe7xNhAgDtwtNzArboEDOwSW4mRPkks3sEO2aR+UhLFRWp9PoAAUVp817NILkn86nnftdTv9/sBAAAAAI/cctoFAAAAAMAsCMIAAAAAyARBGAAAAACZIAgDAAAAIBMEYQAAAABkgiAMAAAAgEwQhAEAAACQCYIwAAAAADJBEAYAAABAJgjCAAAAAMgEQRgAAAAAmSAIAwAAACATBGEAAAAAZIIgDAAAAIBMEIQBAAAAkAmCMAAAAAAyQRAGAAAAQCYIwgAAAADIBEEYAAAAAJkgCAMAAAAgEwRhAAAAAGSCIAwAAACATBCEAQAAAJAJgjAAAAAAMkEQBgAAAEAmCMIAAAAAyARBGAAAAACZIAgDAAAAIBM+SbsAbu/v/J2/E7/85S/je9/7XvzoRz9Kux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WUJEnU6/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",
|
|
|
|
"execution_count": 17,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAB3lElEQVR4nOz9T2yjaZ4ndv6kStu1aw+LigIa4IqHCap9G2BmqMi5+OKqoAYL7NFi5rFPQc5tDXosVhpzHHQUNT0c7A4wMBl96ZszKdsnA70tRpV9sIF1hjhdQN9ssdqwtAQaqBCLM+Mp293UHnLEEiUF9Y/iS+r9fAAhRenh8/4Y5JsSv/o9z7t2fn5+HgAAAADwzK0nXQAAAAAALIIgDAAAAIBUEIQBAAAAkAqCMAAAAABSQRAGAAAAQCoIwgAAAABIBUEYAAAAAKkgCAMAAAAgFQRhAAAAAKSCIAwAAACAVBCEAQAAAJAKgjAAAAAAUkEQBgAAAEAqCMIAAAAASAVBGAAAAACpIAgDAAAAIBUEYQAAAACkgiAMAAAAgFQQhAEAAACQCoIwAAAAAFJBEAYAAABAKgjCAAAAAEgFQRgAAAAAqSAIAwAAACAVBGEAAAAApIIgDAAAAIBUEIQBAAAAkAqCMAAAAABS4bOkC+D+/t1/99+N3/zmN/G9730vfud3fifpcgAAAADu7C/+4i/ir/7qr+L73/9+/Kt/9a8Weuy18/Pz84UekUf73ve+F+PxOOkyAAAAAB5sfX09/uqv/mqhx9QRtoIugrD19fXI5XJJl3Nvg8FgpeuP8Bi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
|
"<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-08 17:43:22 +01:00
|
|
|
"execution_count": 18,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"### --- ### above should be correct"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 19,
|
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",
|
|
|
|
" \"/work/cetin/Projektpraktikum/param_data_B_default_thesis.root\":\n",
|
|
|
|
" \"PrParameterisationData_2ece6184.PrDebugTrackingTool/Tuple;1\"\n",
|
|
|
|
"})\n",
|
2024-02-04 16:56:05 +01:00
|
|
|
"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",
|
2024-02-08 17:43:22 +01:00
|
|
|
" array[\"x\"] - array[\"x_ref\"] - array[\"tx\"] * array[\"z\"] +\n",
|
|
|
|
" array[\"tx_ref\"] * array[\"z_ref\"]) / array[\"dSlope_fringe\"]"
|
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": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90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AACAIAn9YPt59HJYPP9XrdYXDYb/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",
|
2024-02-05 15:44:27 +01:00
|
|
|
"plt.hist(array[\"z_mag_x_fringe\"],\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=[5150, 5300],\n",
|
|
|
|
" color=\"#2A9D8F\",\n",
|
|
|
|
" 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-05 15:44:27 +01:00
|
|
|
"mplhep.lhcb.text(\"Simulation\")\n",
|
2024-02-08 17:43:22 +01:00
|
|
|
"plt.show()"
|
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
|
|
|
|
}
|