2024-01-23 16:00:16 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-01-28 16:15:00 +01:00
|
|
|
"execution_count": 15,
|
2024-01-23 16:00:16 +01:00
|
|
|
"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",
|
|
|
|
"from methods.fit_linear_regression_model import fit_linear_regression_model\n",
|
|
|
|
"import sklearn\n",
|
|
|
|
"%matplotlib inline"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-01-28 16:15:00 +01:00
|
|
|
"execution_count": 16,
|
2024-01-23 16:00:16 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
2024-01-26 11:34:42 +01:00
|
|
|
"41978 8523\n",
|
|
|
|
"92337\n"
|
2024-01-23 16:00:16 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"file = uproot.open(\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
" \"tracking_losses_ntuple_B_EndVeloP.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\"\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
")\n",
|
|
|
|
"\n",
|
|
|
|
"# selektiere nur elektronen von B->K*ee\n",
|
|
|
|
"allcolumns = file.arrays()\n",
|
|
|
|
"found = allcolumns[\n",
|
|
|
|
" (allcolumns.isElectron) & (~allcolumns.lost) & (allcolumns.fromB)\n",
|
|
|
|
"] # B: 9056\n",
|
|
|
|
"lost = allcolumns[\n",
|
|
|
|
" (allcolumns.isElectron) & (allcolumns.lost) & (allcolumns.fromB)\n",
|
|
|
|
"] # B: 1466\n",
|
|
|
|
"\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
"electrons = allcolumns[(allcolumns.isElectron) & (allcolumns.fromB)]\n",
|
|
|
|
"\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"notelectrons = allcolumns[\n",
|
|
|
|
" (~allcolumns.isElectron) & (allcolumns.fromB) & (~allcolumns.lost)\n",
|
|
|
|
"]\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
"\n",
|
|
|
|
"print(ak.num(found, axis=0), ak.num(lost, axis=0))\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"print(ak.num(notelectrons, axis=0))\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
"# ak.count(found, axis=None)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-01-28 16:15:00 +01:00
|
|
|
"execution_count": 17,
|
2024-01-23 16:00:16 +01:00
|
|
|
"metadata": {},
|
2024-01-26 11:34:42 +01:00
|
|
|
"outputs": [],
|
2024-01-23 16:00:16 +01:00
|
|
|
"source": [
|
|
|
|
"rad_length_found = ak.to_numpy(found[\"rad_length_frac\"])\n",
|
|
|
|
"eta_found = ak.to_numpy(found[\"eta\"])\n",
|
|
|
|
"rad_length_lost = ak.to_numpy(lost[\"rad_length_frac\"])\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"eta_lost = ak.to_numpy(lost[\"eta\"])"
|
2024-01-23 16:00:16 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-01-28 16:15:00 +01:00
|
|
|
"execution_count": 18,
|
2024-01-23 16:00:16 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2024-01-28 16:15:00 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABkMAAAL5CAYAAAADsVMKAAAAO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+iLfz28gLCwvOEyHat8cbfYWxykDTaD+qVRzDYmlpScbHx2VtbU2Wl5ett/5xtfPWViIiV65cCbX9nbo5B3p9HPbmNQi/Mw293PdB+H3c+TevW2Hvz87cSqVSc+Jh7224wv77NqjnIgAAQK+xMgQAAGCfyeVyzXvRLywsyJkzZ6RarcpTTz3VcRs7P1zUnlPQ+CC8l98KFwl+myiIZDIZqVQqsrq62tPXJ51ON2/JUy6XQ3lGhInrORDVcRi03xmR3u/7zls21Wq1SPZpr0QiEVq/vdifnX+PG7fgSiQSu27DFfbft0E8FwEAAKLAyhAAAIB9Znp6uvkhV6lUktOnT+/a1qmdK0xsGh/eNR5G3Ct7b/djU6/XAz1kuBd69RyNIHK5nFQqFZmenu75B507H/i+uLjYs/13OQeiPA47cxyE35ko9n3nB/qDcKulvc/mCKoX+7Pzb+/S0pIsLS21PLupF3/fBulcBAAAiAqTIQAAAPvQzluwVKtV44PT290apfFt5mq1av3GcuMDwyAPZnex85kBp0+ftn7gPjU1FerKhHbHyJTHINxypvGB6vj4eOC6QfMfHR1tfuNdZPv16dTi4mLHHzq7nANRHgeRwfqd6Wbfg2i8JgsLCz3tpxON53N0oxf7s/fWZHtvWdiLv2+DdC4CAABEhckQAACAIdX4wMz0Qdfs7Gzz/zu5p77pw7fZ2dlmvZ0fdjc0PmTbWa6hmwm
|
2024-01-23 16:00:16 +01:00
|
|
|
"text/plain": [
|
2024-01-24 16:17:45 +01:00
|
|
|
"<Figure size 2000x800 with 3 Axes>"
|
2024-01-23 16:00:16 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2024-01-27 14:02:41 +01:00
|
|
|
"endVeloP_found = ak.to_numpy(found[\"p_end_velo\"])\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
"trueP_found = ak.to_numpy(found[\"p\"])\n",
|
|
|
|
"\n",
|
2024-01-27 14:02:41 +01:00
|
|
|
"endVeloP_lost = ak.to_numpy(lost[\"p_end_velo\"])\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
"trueP_lost = ak.to_numpy(lost[\"p\"])\n",
|
|
|
|
"\n",
|
2024-01-27 14:02:41 +01:00
|
|
|
"endVeloP_notelectrons = ak.to_numpy(notelectrons[\"p_end_velo\"])\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"trueP_notelectrons = ak.to_numpy(notelectrons[\"p\"])\n",
|
|
|
|
"\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
"stretch_factor = ak.num(trueP_lost, axis=0) / ak.num(trueP_found, axis=0)\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"\n",
|
|
|
|
"nbins = 100\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
"vmax = 200\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"\n",
|
|
|
|
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20, 8))\n",
|
|
|
|
"\n",
|
|
|
|
"a0 = ax0.hist2d(\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
" trueP_found,\n",
|
|
|
|
" endVeloP_found,\n",
|
|
|
|
" density=False,\n",
|
|
|
|
" bins=nbins,\n",
|
|
|
|
" cmap=plt.cm.jet,\n",
|
|
|
|
" cmin=1,\n",
|
|
|
|
" vmax=vmax,\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
" range=[[0, 20000], [0, 20000]],\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
")\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"ax0.set_xlabel(f\"True $P$\")\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
"ax0.set_ylabel(f\"EndVelo $P$\")\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"ax0.set_title(f\"found P\")\n",
|
|
|
|
"\n",
|
|
|
|
"a1 = ax1.hist2d(\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
" # trueP_notelectrons,\n",
|
|
|
|
" # endVeloP_notelectrons,\n",
|
|
|
|
" trueP_lost,\n",
|
|
|
|
" endVeloP_lost,\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
" density=False,\n",
|
|
|
|
" bins=nbins,\n",
|
|
|
|
" cmap=plt.cm.jet,\n",
|
|
|
|
" cmin=1,\n",
|
|
|
|
" vmax=vmax * stretch_factor,\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
" range=[[0, 20000], [0, 20000]],\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
")\n",
|
|
|
|
"ax1.set_xlabel(f\"True $P$\")\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
"ax1.set_ylabel(f\"EndVelo $P$\")\n",
|
|
|
|
"ax1.set_title(f\"lost P\")\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
"\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
"plt.suptitle(\"Momentum at Creation and EndVelo\")\n",
|
2024-01-24 16:17:45 +01:00
|
|
|
"plt.colorbar(a0[3], ax=ax1)\n",
|
2024-01-23 16:00:16 +01:00
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-01-28 16:15:00 +01:00
|
|
|
"execution_count": 19,
|
2024-01-23 16:00:16 +01:00
|
|
|
"metadata": {},
|
2024-01-26 11:34:42 +01:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2024-01-28 16:15:00 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAHJCAYAAACIU0PXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAABorElEQVR4nO3df3Qb53kn+i8k24y9igRRWWfT9NrSMNlu/E+sAZ0mbVOdWBj7trmnuzEBarvd06RrE4iX2e6tb0yY23uunXPaQmDdbE+2jA3Svsc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G9NdwGeTBqU1ShtfWJJ55ALpfDuXPnYJomjh49ivX1dTz22GNhvQQRERGRJ4E6OBsbG8hms1haWkK9XodpmohGo/ZKqz179oTVTiIiIgqAIzgdfOYzn8E999wDADh9+jSy2aydVMs0TWiahkwmg5mZmd60dIjccMMNjn9p64yNjeHhhx/G2NjYVjdl5PFrMTj4tRgkjb2B+/F50Y9km4PE83vNZrNYW1vDysoKSqWSvSVzPB5HJpPB4cOHe9bIYWN9o/7yL/8ybrzxxrZ1uNFff4yNjeGRRx7Z6mYQ+LUYJPxa+Ncac/MZxRnNH6/PAPjTDvV+DKA/HRyvIzj/E8AfdTh2Kbzm9Jyvjf7S6bTdsUkkEsjlckzB4OLEiRMDv9MjERH12mEA/6zDsVcAfLKPbVH751cf7bwA4N/2sS1B+BqtMk0Tc3NzmJ+fZ3wNERHREOEUVQeapqFSqTBFAxER0RBikHEH+XyenRsiIhoJkX8lnmh
|
2024-01-26 11:34:42 +01:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 2 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"a0 = plt.hist2d(\n",
|
|
|
|
" trueP_found,\n",
|
|
|
|
" endVeloP_found,\n",
|
|
|
|
" density=False,\n",
|
|
|
|
" bins=nbins,\n",
|
|
|
|
" cmap=plt.cm.jet,\n",
|
|
|
|
" cmin=1,\n",
|
2024-01-28 16:15:00 +01:00
|
|
|
" vmax=200,\n",
|
|
|
|
" range=[[0, 20000], [0, 20000]],\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
")\n",
|
2024-01-27 14:02:41 +01:00
|
|
|
"plt.xlabel(f\"True $P$ [MeV]\")\n",
|
|
|
|
"plt.ylabel(f\"EndVelo $P$ [MeV]\")\n",
|
2024-01-26 11:34:42 +01:00
|
|
|
"plt.title(f\"found P\")\n",
|
|
|
|
"plt.colorbar(a0[3])\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
2024-01-23 16:00:16 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|