Projektpraktikum/electron_lost_found.ipynb

1055 lines
1.8 MiB
Plaintext
Raw Normal View History

{
"cells": [
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 8,
"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",
"from mpl_toolkits import mplot3d\n",
"import itertools\n",
"import awkward as ak\n",
2023-09-14 16:33:27 +02:00
"import seaborn as sns\n",
"from scipy.optimize import curve_fit\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
2023-09-28 12:12:21 +02:00
"file = uproot.open(\"tracking_losses_ntuple_Bd2KstEE.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\")\n",
"#file = uproot.open(\"tracking_losses_ntuple_Dst0ToD0EE.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\")\n",
"\n",
2023-09-14 16:33:27 +02:00
"#look at particles only from Signal\n",
"allcolumns = file.arrays()\n",
2023-09-20 16:34:15 +02:00
"tracked = allcolumns[(allcolumns.isElectron) & (~allcolumns.lost) & (allcolumns.fromSignal) & (allcolumns.p > 5e3)]\n",
"lost = allcolumns[(allcolumns.isElectron) & (allcolumns.lost) & (allcolumns.fromSignal) & (allcolumns.p > 5e3)] \n",
2023-09-14 16:33:27 +02:00
"\n",
"#ak.num(tracked, axis=0)\n",
"\n"
]
},
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 10,
"metadata": {},
2023-09-15 12:33:25 +02:00
"outputs": [],
2023-09-14 16:33:27 +02:00
"source": [
"#lost\n",
"l_eph = lost[\"brem_photons_pe\"]\n",
"ak.nan_to_num(l_eph)\n",
"l_pT = lost[\"pt\"]\n",
"l_sci_x = lost[\"scifi_hit_pos_x\"]\n",
"ak.nan_to_num(l_sci_x)\n",
"\n",
"#found\n",
"f_eph = tracked[\"brem_photons_pe\"]\n",
"ak.nan_to_num(f_eph)\n",
"f_pT = tracked[\"pt\"]\n",
"f_sci_x = tracked[\"scifi_hit_pos_x\"]\n",
2023-09-15 12:33:25 +02:00
"ak.nan_to_num(f_sci_x)\n",
"\n",
"l_sci_x, l_pT = ak.broadcast_arrays(l_sci_x, l_pT)\n",
"f_sci_x, f_pT = ak.broadcast_arrays(f_sci_x, f_pT)\n",
"\n",
"l_sci_x = ak.to_numpy(ak.flatten(l_sci_x))\n",
"l_pT = ak.to_numpy(ak.flatten(l_pT))\n",
"f_sci_x = ak.to_numpy(ak.flatten(f_sci_x))\n",
"f_pT = ak.to_numpy(ak.flatten(f_pT))"
2023-09-14 16:33:27 +02:00
]
},
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 11,
2023-09-14 16:33:27 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-09-28 12:12:21 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAABiwAAAIhCAYAAADdMJK1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydeXgVRfb+38sSCFsgBEKCGFARF2QRFNwGcEMQlcUNEYmDy6iMI+A6DgIyyqACOjIu89MhLoiOXwgqAooLqMMiQdHBnRlwUHZkEZS9fn/kdvfp3Kp09829uU3u+3mePKlUV1edrl7Sde85540opRQIIYQQQgghhBBCCCGEEEJSSLVUG0AIIYQQQgghhBBCCCGEEMIvLAghhBBCCCGEEEIIIYQQknL4hQUhhBBCCCGEEEIIIYQQQlIOv7AghBBCCCGEEEIIIYQQQkjK4RcWhBBCCCGEEEIIIYQQQghJOfzCghBCCCGEEEIIIYQQQgghKYdfWBBCCCGEEEIIIYQQQgghJOXwCwtCCCGEEEIIIYQQQgghhKQcfmFBCCGEEEIIIYQQQgghhJCUUyW+sCgqKk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mP//5j7riiitUXl6eysjIUE2bNlVnn322+vTTT5VSShUUFCgArp+CgoJy7Tl06JD629/+ptq3b69q166tGjZsqAYMGKD+85//uNoNGTIkpi+/+yql1Ny5c9XZZ5+tGjRooDIzM9Vxxx2nHnzwQbvvsnbLOQKgbrnlFvXkk0+q4447TtWsWVM9+eSTSimlPvzwQ3X22WerevXqqczMTHXaaaep2bNna+f8vffeU7/73e9U48aNVXZ2turXr5/68ccfy50fy766deuqlStXqrPPPlvVqVNH5eTkqFtuuUXt3r3b1fbXX39Vd999t2rZsqWqWbOmys/PVzfffLPatm2bq927776runXrprKzs1Xt2rVVixYtVP/+/V39AVCjR492HUPZn6lTpxrPj19bCgoK1IUXXqjmzp2rOnbsqGrXrq3atGmjnn32WVe73bt3q5EjR6qWLVva12mnTp3USy+9VO78vf/++wqAev/992Pm9LvvvlO9evVSdevWVUcccYQaMWKE2rNnT7n9lXedW2O99NJL6o9//KPKy8tT9evXV+ecc476+uuvY/qaP3++Ovvss1X9+vVVZmamOv3009U777xT7vhKKXXw4EE1btw4deyxx6ratWurrKwsddJJJ6lHH33U1e6rr75SV155pWratKnKyMhQLVq0UIMHD7aPsezcdOvWLebYhgwZYs+Z1/1samfdQ88//7w67rjjVGZmpmrXrp164403PPuzbHz++efViBEjVH5+vopEIuqrr75SSvmfw1mzZqmTTjpJZWRkqFatWqlHH31UjR49WpV9tE+ZMkWdddZZqkmTJqpOnTqqbdu2asKECWrfvn2udt26dVMnnniiWrhwoTrttNNUZmamuuKKK5RSSv3444/qsssuU/Xq1VMNGjRQl19+uVq8eLHrntHhdZ8p5e9ZHbRf61g+/vhjdeaZZ6rMzEzVqlUrNX78eHXw4EFXXzt27LDvQ+u+/sMf/qB27drlaldQUGBfO0p5n0fJ6tWrtfZa/Vnnbfny5WrAgAGqYcOGqlmzZkoppZYtW6auuOIKVVBQoGrXrq0KCgrUlVdeqdasWaOdEz/P5fKel/v27VNNmjRRV199dcxxbNu2TdWuXVsNHz488PyV93/niSeeUO3atVN169ZV9erVU23atFH33HOPa//169erG264QTVv3lzVrFlTtWzZUo0ZM0bt378/xs6yWM/kN954Q3Xo0EHVrl1bHXfccfb9OnXqVHXcccepOnXqqFNOOUUtW7Yspo/XXntNde3aVWVmZqp69eqpc889Vy1atMjVxjqPn332mbr00ktVgwYNVKNGjdTw4cPV/v371ddff6169uyp6tWrpwoKCtSECRNixgk6n+U9gyx7yv5Yz0f5P7HsfMlr3bq23n33XXXdddep7OxsVb9+fTV48GC1a9cutX79enXZZZeprKws1axZMzVy5MiY5wshJLno3v27detmb/fzDDO9F+neLYK8B82ePVu1b99eZWRkqJYtW6qHH35Y26cJP+9FpvWg33eq8t4v/b5z6N6fvv/+ezVo0CDVpEkTlZGRoY477jj1yCOPuN5FrHeEhx9+WE2cOFG1bNlS1a1bV3Xt2lUtXrzYc34s+95++21VWFioGjVqpOrUqaP69OmjXUMmYo1sHbd1jXm951RkvR5kjePnfUJH2f+HFVnr+l2H+7l3vv32WzVw4EDX9TNlyhTP41FKqX/+85/q1FNPtT8raNWqlbr22mtdbbZt26ZGjBihWrVqpTIyMlSTJk1Ur169XO+ycm507xXWM8N0jsuiaxfkvV1Hee+Yfudw5cqV6rzzzlOZmZkqJydH3XzzzWr27Nkxa+63335bXXzxxap58+aqVq1a6uijj1Y33HCD2rx5s6u/8t7t9+3bp+644w6Vm5urMjMz1RlnnKGWLl0a8/5VFq/7TCl/n+UE7dc6lpUrV6orr7xSNWjQQDVt2lRde+21avv27a6+KvJZWHnnsSx+Pr/QrdE2bdqkbrrpJnX88cerunXrqiZNmqgePXqoDz74QDsnfp7LXs/LSy65RB155JHaa/nUU09VHTt2DDx/5f3f8fO52N69e9W4ceNUmzZtVEZGhsrJyVGFhYVq06ZN2vmWWM/kr776Sp1//vmqTp06qlmzZmr8+PFKKaUWL16szjjjDFWnTh3VunVrVVRUFNPHv//9b3XxxRerhg0bqlq1aqn27dvHtLPO47Rp09Sdd96pmjVrpurWrav69OmjNmzYoHbu3Kmuv/561bhxY9W4cWNVWFiofv75Z1cfQeezvGeQZU/ZH+v5KP8nlp0vea1b19ZDDz2k/vKXv9hr/G7duqlvvvlG7du3T911110qLy9PNWj
2023-09-14 16:33:27 +02:00
"text/plain": [
2023-09-15 12:33:25 +02:00
"<Figure size 2000x600 with 4 Axes>"
2023-09-14 16:33:27 +02:00
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
"a0=ax0.hist2d(l_sci_x, l_pT, bins=200, cmap=plt.cm.jet, cmin=0, range=[[-3000,3000],[0,2000]])\n",
2023-09-14 16:33:27 +02:00
"ax0.set_xlabel(\"scifi x\")\n",
"ax0.set_ylabel(r\"$p_T$\")\n",
"ax0.set_title(\"lost electron positions in the scifi in regard to their transverse momentum\")\n",
"plt.colorbar(a0[3],ax=ax0)\n",
2023-09-14 16:33:27 +02:00
"\n",
"a1=ax1.hist2d(f_sci_x, f_pT, bins=200, cmap=plt.cm.jet, cmin=0, range=[[-3000,3000],[0,2000]])\n",
2023-09-14 16:33:27 +02:00
"ax1.set_xlabel(\"scifi x\")\n",
"ax1.set_ylabel(r\"$p_T$\")\n",
"ax1.set_title(\"found electron positions in the scifi in regard to their transverse momentum\")\n",
"plt.colorbar(a1[3],ax=ax1)\n",
2023-09-14 16:33:27 +02:00
"\n",
2023-09-15 12:33:25 +02:00
"\"\"\"\n",
2023-09-18 12:12:50 +02:00
"B:\n",
2023-09-20 10:52:44 +02:00
"we can see that the lost electrons cover a wider spread in the x direction of the scifi tracker, most widely scattered electrons have low pt\n",
"\n",
"D:\n",
"heatmaps look fairly similar. lost e are more densely located between x \\in [1000,2000]. found e between x \\in [200,1500].\n",
"we can see a near empty space around the x origin in both. lost seem to have less pt.\n",
2023-09-18 12:12:50 +02:00
"\n",
2023-09-15 12:33:25 +02:00
"\"\"\"\n",
2023-09-14 16:33:27 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
2023-09-18 12:12:50 +02:00
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 12,
2023-09-15 12:33:25 +02:00
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
2023-09-28 12:12:21 +02:00
"[[4.09e+04], [8.66e+03], [8.07e+04], ..., [5.63e+03], [6.29e+03], [2.26e+03]]\n",
"[4.62e+04, 9.36e+03, 1.34e+05, 5.63e+04, ..., 2.01e+04, 6.94e+03, 7.83e+03]\n",
"8657.132\n",
"9355.866625028413\n"
2023-09-15 12:33:25 +02:00
]
}
],
"source": [
"energy_found = tracked[\"energy\"]\n",
"energy_found = energy_found[tracked[\"brem_photons_pe_length\"]!=0]\n",
"#ak.nan_to_num(energy_found)\n",
"\n",
"e_ph_found = tracked[\"brem_photons_pe\"]\n",
"e_ph_found = e_ph_found[tracked[\"brem_photons_pe_length\"]!=0]\n",
"#ak.nan_to_num(e_ph_found, nan=[0])\n",
"e_ph_found = ak.sum(e_ph_found, axis=-1, keepdims=True)\n",
"print(e_ph_found)\n",
"print(energy_found)\n",
"\n",
"energy_lost = lost[\"energy\"]\n",
"energy_lost = energy_lost[lost[\"brem_photons_pe_length\"]!=0]\n",
"#ak.nan_to_num(energy_lost)\n",
"\n",
"e_ph_lost = lost[\"brem_photons_pe\"]\n",
"e_ph_lost = e_ph_lost[lost[\"brem_photons_pe_length\"]!=0]\n",
"#ak.nan_to_num(e_ph_lost)\n",
"e_ph_lost = ak.sum(e_ph_lost, axis=-1,keepdims=True)\n",
"\n",
"#e_ph_found, energy_found = ak.broadcast_arrays(e_ph_found, energy_found)\n",
"#e_ph_lost, energy_lost = ak.broadcast_arrays(e_ph_lost, energy_lost)\n",
"\n",
"e_ph_found = ak.to_numpy(ak.flatten(e_ph_found))\n",
"energy_found = ak.to_numpy(energy_found)\n",
"\n",
"e_ph_lost = ak.to_numpy(ak.flatten(e_ph_lost))\n",
"energy_lost = ak.to_numpy(energy_lost)\n",
"\n",
"print(e_ph_found[1])\n",
"print(energy_found[1])"
]
},
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 13,
"metadata": {},
"outputs": [],
2023-09-15 12:33:25 +02:00
"source": [
"q_e_found = e_ph_found/energy_found\n",
"q_e_lost = e_ph_lost/energy_lost"
]
},
2023-09-14 16:33:27 +02:00
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 14,
2023-09-14 16:33:27 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-09-28 12:12:21 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAioAAAHMCAYAAAD7xYOxAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAyA0lEQVR4nO3deXgU1Z7G8bezJ4QEiAQC5LKGJQmCEsAAelFRFDU618ENERG3K1dAHDZRCSoT0YsKjKIgAjNueNkvosBFEnaBJC4YJAgoQcGwJsFogKTmD4cemwRIKr1Ud38/z9PPY52urvrVeZB+OedUtc0wDEMAAAAWFODpAgAAAM6HoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAIAACyLoAKg1lasWCGbzXbe1+zZs51ynvLycsXGxurVV191+7kBeEaQpwsA4P1ycnIkSUuXLlVsbGyl9xMTE51ynnXr1unw4cP6y1/+4vZzA/AMggqAWsvJyVFUVJRuueUW2Ww2l51nwYIFSklJUfPmzd1+bgCewdQPgFrLzs5Wp06dXBoUDMPQ4sWLdfvtt7v93AA8h6ACoFaOHj2q/fv3q2PHjjpz5kyll2EYTjnPpk2bdPDgQYeg4q5zA/AcggqAWjm7RuSNN95QcHBwpVdeXt5Fj2EYhqKionTkyJHz7rNgwQJ17NhRCQkJNT734cOHddNNN6lOnTpq27atVq9eXZtLBuBGrFEBUCv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CyvPr25IqKCv3000+qW7eubDabp8sBAADVYBiGSkpK1KRJEwUEXHjMxKuDyk8//VTlT7sDAADrKygoULNmzS64j1cHlbp160r6/ULP/dExAABgTcXFxYqPj7d/j1+IVweVs9M9UVFRBBUAALxMdZZtsJgWAABYFkEFAABYFkEFAABYllevUamu8vJynT592tNl+Jzg4GAFBgZ6ugwAgA/z6aBiGIYOHTqkEydOeLoUn1WvXj01btyY59gAAFzCp4PK2ZASGxuriIgIvkydyDAMlZaWqrCwUJIUFxfn4YoAAL7IZ4NKeXm5PaTExMR4uhyfFB4eLkkqLCxUbGws00AAAKfz2cW0Z9ekREREeLgS33a2f1kDBABwBZ8NKmcx3eNa9C8AwJV8PqgAAADvRVCxoN69e2vEiBGeLgMAAI/z2cW0F7Qp3X3n6uHGc50jMzNTV199tY4fP6569ep5rA4AAMxiRAUAAFgWQcXijh8/rvvuu0/169dXRESEbrzxRu3evdv+/g8//KBbbrlF9evXV506dZSUlKQVK1bo+++/19VXXy1Jql+/vmw2m+6//34PXQUAAOb459SPF7n//vu1e/duLVu2TFFRURozZoz69eunvLw8BQcHa+jQoTp16pTWrVunOnXqKC8vT5GRkYqPj9fChQt1++23a9euXYqKirI/9wQAAEmVl0J4cLnC+RBULOxsQNm4caN69OghSXrvvfcUHx+vJUuWqH///tq/f79uv/12dezYUZLUqlUr++cbNGggSYqNjWWNCgDAKzH1Y2E7d+5UUFCQunfvbm+LiYlRu3bttHPnTknSsGHD9MILL6hnz56aMGGCvvrqK0+VCwCA0xFULMwwjPO2n33Q2oMPPqi9e/dq4MCB+vrrr5WSkqLp06e7s0wAAFyGoGJhiYmJOnPmjD7//HN729GjR5Wfn68OHTrY2+Lj4/Xoo49q0aJFevLJJzVr1ixJUkhIiKTff/cIAABvRFCxsISEBN1666166KGHtGHDBn355Ze699571bRpU916662SpBEjRmjlypXat2+fcnJy9Nlnn9lDTPPmzWWz2bR8+XIdPnxYJ0+e9OTlAABQY/65mNaCq5rPZ86cORo+fLhuvvlmnTp1SldddZVWrFih4OBgSb+PlgwdOlQHDhxQVFSUbrjhBr366quSpKZNm2rixIkaO3asBg8erPvuu09z58714NUAAFAzNuN8CyG8QHFxsaKjo1VUVKSoqCiH93777Tft27dPLVu2VFhYmIcq9H30MwB4MQ/dnnyh7+9zMfUDAAAsi6ACAAAsi6ACAAAsi6ACAAAsi6ACAAAsi6ACAAAsi6ACAAAsi6ACAAAsi6ACAAAsi6BiQYZh6OGHH1aDBg1ks9n0xRdfeKyW3r17a8SIER47PwDAv/nlb/2kp1v7XJ9++qnmzp2rzMxMtWrVSpdcconT6wIAwBv4ZVCxuj179iguLk49evTwdCkAAF9x7u/6eAmmfizm/vvv1+OPP679+/fLZrOpRYsWKisr07BhwxQbG6uwsDD16tVL27Zts39m7ty5qlevnsNxlixZIpvNZt9OT09X586d9T//8z9q0aKFoqOjddddd6mkpMS+zy+//KL77rtPkZGRiouL05QpU1x+vQAAXAhBxWKmTp2q5557Ts2aNdPBgwe1bds2jR49WgsXLtS8efOUk5OjNm3aqG/fvjp27FiNjr1nzx4tWbJEy5cv1/Lly5WVlaUXX3zR/v6oUaO0du1aLV68WKtWrVJmZqays7OdfYkAAFQbQcVioqOjVbduXQUGBqpx48aKiIjQjBkz9PLLL+vGG29UYmKiZs2apfDwcM2ePbtGx66oqNDcuXOVnJysK6+8UgMHDtSaNWskSSdPntTs2bP197//Xdddd506duyoefPmqby83BWXCQBAtRBULG7Pnj06ffq0evbsaW8LDg5Wt27dtHPnzhodq0WLFqpbt659Oy4uToWFhfbznDp1Sqmpqfb3GzRooHbt2tXyCgAAMI+gYnGGYUiSw3qTs+1n2wICAuz7nXX69OlKxwoODnbYttlsqqiocDgPAABWQlCxuDZt2igkJEQbNmywt50+fVrbt29Xhw4dJEkNGzZUSUmJfvnlF/s+NX32Sps2bRQcHKwtW7bY244fP678/PzaXQAAALXA7ckWV6dOHf31r3/VqFG
2023-09-14 16:33:27 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
2023-09-15 12:33:25 +02:00
}
],
"source": [
2023-09-18 12:12:50 +02:00
"plt.hist(q_e_lost, bins=100, density=True, alpha=0.5, histtype='bar', color=\"darkorange\", label=\"lost\")\n",
"plt.hist(q_e_found, bins=100, density=True, alpha=0.5, histtype='bar', color=\"blue\", label=\"found\")\n",
2023-09-15 12:33:25 +02:00
"plt.xlabel(r\"$E_\\gamma/E_0$\")\n",
2023-09-18 12:12:50 +02:00
"plt.ylabel(\"counts (normed)\")\n",
"plt.title(r'$E_{ph}/E_0$')\n",
2023-09-15 12:33:25 +02:00
"plt.legend()\n",
"\n",
"\"\"\"\n",
2023-09-18 12:12:50 +02:00
"B:\n",
"we can clearly see that lost electrons are responsible for higher energy photons\n",
2023-09-20 10:52:44 +02:00
"D:\n",
"still able to see a trend that most electrons that give up all of their energy to photons are lost e. but nowhere near as extreme as for the B decay\n",
2023-09-15 12:33:25 +02:00
"\"\"\"\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
2023-09-28 12:12:21 +02:00
"execution_count": 17,
2023-09-15 12:33:25 +02:00
"metadata": {},
"outputs": [
2023-09-14 16:33:27 +02:00
{
"data": {
2023-09-28 12:12:21 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAABiEAAAImCAYAAAA1yym9AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAADLfUlEQVR4nOzdeZwUxf3/8fewC7sL7K5AOOX2QEXxQIOgERBRQf0Z4xEFFTTxhHjFaMCEKwpeMSRBISZeCIj6RY0n4gGYRExQ8CKKJvFA5VDBXVRY3KV+f8AMPbvd290z3TM9M6/n47EP2Z7qquqenrFruz71iRljjAAAAAAAAAAAAALWJNsdAAAAAAAAAAAA+YmHEAAAAAAAAAAAIBQ8hAAAAAAAAAAAAKHgIQQAAAAAAAAAAAgFDyEAAAAAAAAAAEAoeAgBAAAAAAAAAABCwUMIAAAAAAAAAAAQCh5CAAAAAAAAAACAUPAQAgAAAAAAAAAAhIKHEMiYBx98UL1791ZZWZlisZhef/31bHfJ1qRJkxSLxQKr795771UsFtOHH34YWJ1W//73vzVp0qTQ6kduisVimjRpUih1f/vtt5o0aZKWLFkSeN2jR49Wy5YtA61z6tSpeuyxxwKtEwAAIBvCHlvccccduvfeewOvd/To0erevXvg9cY9/fTTod37IjctWbJEsVgslDGLFO44vHv37jrxxBMDq++zzz7TpEmTIvs3GACFgYcQyIjPP/9c55xzjvbYYw8tXLhQy5Yt0957753tbuWFf//735o8eTIPIZBk2bJl+ulPfxpK3d9++60mT54c2g190HgIAQAA4E1YDyHC9vTTT2vy5MnZ7gYi5JBDDtGyZct0yCGHhFJ/Lo3DP/vsM02ePJmHEACyqjjbHUBheO+99/Tdd9/p7LPP1sCBA7PdnYL27bffqnnz5tnuRlZs2bJFpaWlgUa6RNXhhx+e7S4gogr5OwAAAMAYo61bt6qsrCzbXcmKQrkXrKioYEwER4XyOQCihEgIhG706NE68sgjJUk//vGPFYvFNGjQoMTrjz/+uPr376/mzZurvLxcQ4cO1bJlyxrUYRe+a7d0UiwW09ixY3X//fdr3333VfPmzXXggQfqySefbLD/U089pYMOOkglJSXq0aOHbr31Vl/H9vzzz2vIkCGqqKhQ8+bNdcQRR+iFF14IdN93331XZ511ltq3b6+SkhJ17dpV5557rmpqanTvvffq9NNPlyQNHjxYsVhMsVgsMXtp0KBB2n///fXSSy9pwIABat68uc4//3xJ0scff6yzzz5b7dq1U0lJifbdd1/99re/1fbt2xNtf/jhh4rFYrr11lt12223qUePHmrZsqX69++vV155xdNxrlu3ThdddJE6d+6sZs2aqUePHpo8ebJqa2tTbufVV1/V//t//0+tW7dWaWmpDj74YD300ENJZeKh6osWLdL555+vtm3bqnnz5qqpqZExRlOnTlW3bt1UWlqqQw89VM8995wGDRqUuDa//vpr7bbbbrrooosatP/hhx+qqKhIt9xyS6PHPnnyZPXr10+tW7dWRUWFDjnkEN11110yxiSVq6mp0c9//nN16NBBzZs311FHHaXXXntN3bt31+jRoxPlPv/8c1166aXab7/91LJlS7Vr105HH320/va3vzVou/5yTPHzsXjxYl1yySX63ve+pzZt2uhHP/qRPvvss6R9X3zxRQ0aNEht2rRRWVmZunbtqlNPPVXffvutPvzwQ7Vt2zZxfPFrztrP+uKh0HPmzNFVV12lDh06qKysTAMHDtTKlStt9/nPf/6j4cOHq2XLlurSpYt+/vOfq6amJqnMxo0bdemll2r33XdXs2bN1LNnT1133XVJ5WKxmL755hvdd999ib5av3/efvttnXzyyWrVqpVKS0t10EEH6b777rPt/wMPPKDrrrtOnTp1UkVFhY455hitXr3a8bit3n//fY0YMSLp83b77ben1Y6X75D4d+SKFSt02mmnqVWrVtpjjz0kebvuPvzwQxUXF2vatGkN2n/ppZcUi8X08MMPezoHAAAgPHfffbcOPPBAlZaWqnXr1jrllFP0zjvvJJX53//+pzPPPFOdOnVSSUmJ2rdvryFDhiRmR3fv3l2rVq3S0qVLE/dNbksoGWN0xx136KCDDlJZWZlatWql0047Tf/73/9c++xn34ULF2rIkCGqrKxU8+bNte+++ybuT0aPHp24r4r327pkVXx8OGvWLO27774qKSlJ3O/9/e9/15AhQ1ReXq7mzZtrwIABeuqpp5La9nMf7cTP+MVrOw8++KD69++vFi1aqGXLljruuOMa3FvHlzp96623dOyxx6q8vFxDhgyRJH311Vf6yU9+otatW6tly5Y64YQT9L///S9pHPG3v/0tcX9a3+zZsxWLxbR8+XLH4/Yzfvnkk0902mmnqby8XLvttptGjhyp5cuXJ41v4+fyzDPPVPfu3VVWVqbu3bvrrLPO0kcffZRUn91yTPHz4WWsMXPmTB144IFq2bKlysvLtc8++2j8+PGJ96qxcbid+H35ypUr9aMf/UgVFRWqrKzU2Wefrc8//9x2n4ULF+qQQw5RWVmZ9tlnH919990NyriNZ5YsWaLDDjtMknTeeecl+modK3r5m0y8/6tWrdJZZ52lyspKtW/fXueff76qqqocj9vKz/jFSztev0Ma+7uIl+vu/vvvVywWa3BOJGnKlClq2rSp5+8CoKAZIGT/+c9/zO23324kmalTp5ply5aZVatWGWOMmTt3rpFkjj32WPPYY4+ZBx980PTt29c0a9bM/O1vf0vUMWrUKNOtW7cGdU+cONHUv4wlme7du5vvf//75qGHHjJPP/20GTRokCkuLjb//e9/E+Wef/55U1RUZI488kjzyCOPmIcfftgcdthhpmvXrg3qtHP//febWCxmfvjDH5pHHnnEPPHEE+bEE080RUVF5vnnn0+Uu+eee4wk88EHH/je9/XXXzctW7Y03bt3N7NmzTIvvPCCmTNnjjnjjDNMdXW12bBhg5k6daqRZG6//XazbNkys2zZMrNhwwZjjDEDBw40rVu3Nl26dDF//OMfzeLFi83SpUvNhg0bzO67727atm1rZs2aZRYuXGjGjh1rJJlLLrkk0f4HH3yQOJ/HH3+8eeyxx8xjjz1mDjjgANOqVSvz1VdfNXqO1q5da7p06WK6detm/vSnP5nnn3/e/OY3vzElJSVm9OjRKbXz4osvmmbNmpkf/OAH5sEHHzQLFy40o0ePNpLMPffc0+C877777ubCCy80zzzzjPm///s/U1tba8aNG2ckmQsvvNAsXLjQ/PnPfzZdu3Y1HTt2NAMHDkzUceWVV5oWLVo0OM5f/OIXprS01HzxxReNHv/o0aPNXXfdZZ577jnz3HPPmd/85jemrKzMTJ48OancWWedZZo0aWJ++ctfmkWLFpnp06ebLl26mMrKSjNq1KhEuXfffddccsklZv78+WbJkiXmySefND/5yU9MkyZNzOLFi5PqlGQmTpzY4Hz07NnT/OxnPzPPPvus+ctf/mJatWplBg8enPRelJaWmqFDh5rHHnvMLFmyxMydO9ecc845ZtOmTWbr1q1m4cKFRpL5yU9+krjm/vOf/zieh8WLFxtJpkuXLubkk082TzzxhJkzZ47Zc889TUVFRdLnctSoUaZZs2Zm3333Nbfeeqt5/vnnzYQJE0wsFks6b1u2bDF9+vQxLVq0MLfeeqtZtGiR+fWvf22Ki4vN8OHDE+WWLVtmysrKzPDhwxN9jX//vPvuu6a8vNzsscceZvbs2eapp54yZ511lpFkbrrppgb97969uxk5cqR56qmnzAMPPGC6du1q9tprL1NbW9vodbBq1SpTWVlpDjjgADN79myzaNEi8/Of/9w0adLETJo0KaV2vH6HxL8ju3XrZq699lrz3HPPmccee8wY4/26O+WUU0zXrl0bHOfpp59uOnXqZL777rtGjx8AAATHbmwRHw+cddZZ5qmnnjKzZ882PXv2NJWVlea9995LlOvVq5fZc889zf3332+WLl1qFix
2023-09-14 16:33:27 +02:00
"text/plain": [
2023-09-15 12:33:25 +02:00
"<Figure size 2000x600 with 4 Axes>"
2023-09-14 16:33:27 +02:00
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
2023-09-15 12:33:25 +02:00
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
2023-09-28 12:12:21 +02:00
"a0 = ax0.hist2d(e_ph_found/(1e3), energy_found/(1e3), density=False, bins=200, cmap=plt.cm.jet, cmin=1, range=[[0,50],[0,50]])\n",
"ax0.set_xlabel(r\"$E_\\gamma$ [GeV]\")\n",
"ax0.set_ylabel(r\"$E_e$ [GeV]\")\n",
2023-09-15 12:33:25 +02:00
"ax0.set_title(\"found electron energy against photon energy\")\n",
"plt.colorbar(a0[3],ax=ax0)\n",
2023-09-15 12:33:25 +02:00
"\n",
2023-09-28 12:12:21 +02:00
"a1 = ax1.hist2d(e_ph_lost/(1e3), energy_lost/(1e3), density=False, bins=200, cmap=plt.cm.jet, cmin=1, range= [[0,50],[0,50]])\n",
"ax1.set_xlabel(r\"$E_\\gamma$ [GeV]\")\n",
"ax1.set_ylabel(r\"$E_e$ [GeV]\")\n",
2023-09-15 12:33:25 +02:00
"ax1.set_title(\"lost electron energy against photon energy\")\n",
"plt.colorbar(a1[3],ax=ax1)\n",
2023-09-15 12:33:25 +02:00
"\n",
"\"\"\"\n",
2023-09-18 12:12:50 +02:00
"B:\n",
"concentrated at the E_ph/E_0~1 line especially at lower energies.\n",
"lost E_ph to E_0: fewer entries at lower q_e\n",
2023-09-20 10:52:44 +02:00
"D:\n",
"both energies are much smaller than in the B decay. otherwise similar pattern.\n",
2023-09-15 12:33:25 +02:00
"\"\"\"\n",
2023-09-14 16:33:27 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [],
2023-09-18 12:12:50 +02:00
"source": [
"brem_vtx_x_found = tracked[\"brem_vtx_x\"]\n",
"brem_vtx_x_found = brem_vtx_x_found[tracked[\"brem_vtx_x_length\"]!=0]\n",
"brem_vtx_x_found = ak.to_numpy(ak.flatten(brem_vtx_x_found))\n",
"\n",
"brem_vtx_z_found = tracked[\"brem_vtx_z\"]\n",
"brem_vtx_z_found = brem_vtx_z_found[tracked[\"brem_vtx_z_length\"]!=0]\n",
"#print(ak.to_numpy(brem_vtx_z_found))\n",
2023-09-18 12:12:50 +02:00
"brem_vtx_z_found = ak.to_numpy(ak.flatten(brem_vtx_z_found))\n",
"\n",
"brem_vtx_x_lost = lost[\"brem_vtx_x\"]\n",
"brem_vtx_x_lost = brem_vtx_x_lost[lost[\"brem_vtx_x_length\"]!=0]\n",
"brem_vtx_x_lost = ak.to_numpy(ak.flatten(brem_vtx_x_lost))\n",
"\n",
"brem_vtx_z_lost = lost[\"brem_vtx_z\"]\n",
"brem_vtx_z_lost = brem_vtx_z_lost[lost[\"brem_vtx_z_length\"]!=0]\n",
"brem_vtx_z_lost = ak.to_numpy(ak.flatten(brem_vtx_z_lost))\n",
"\n",
"#vtx_x_fit= ak.to_numpy(vtx_x_found)\n",
"#vtx_z_fit = ak.to_numpy(vtx_z_found)"
2023-09-18 12:12:50 +02:00
]
},
{
"cell_type": "code",
2023-09-19 09:58:54 +02:00
"execution_count": null,
2023-09-18 12:12:50 +02:00
"metadata": {},
"outputs": [],
"source": [
"\n"
]
2023-09-18 12:12:50 +02:00
},
{
"cell_type": "code",
"execution_count": 47,
2023-09-18 12:12:50 +02:00
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABkAAAAIlCAYAAACNejRdAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAADxwElEQVR4nOzdf3wU1b3/8feSXwaarAQkITUobZGr8qOKFaHeC5RfUpEqtmCxXFCqWCw0AqLIrYBXQGOLtFCtVa+xosVvH7d4tbUUbBVL8QdE04q1qC0qVGKsxg1gyC/m+0d2djP7ezezu7Ob1/PxyGPZmbMzZ2aX5Jw95/M5LsMwDAEAAAAAAAAAAGSRHumuAAAAAAAAAAAAgN0YAAEAAAAAAAAAAFmHARAAAAAAAAAAAJB1GAABAAAAAAAAAABZhwEQAAAAAAAAAACQdRgAAQAAAAAAAAAAWYcBEAAAAAAAAAAAkHUYAAEAAAAAAAAAAFmHARAAAAAAAAAAAJB1GAABAAAAAAAAAABZhwEQACk3d+5cVVdXp7saAAAAAJCx6FcBABAdAyAAAAAAAAAAACDrMAACIOM8/vjjOvvss1VYWCiXy6Xa2tp0VymkVatWyeVyxVzuX//6Vwpqlfl2796tVatW6ZNPPrFsr66ulsvl0jvvvJOWegEAAACZIplt53Dt9XDoD8Un0v2lTwQAwRgAAZASU6dO1cknn6yTTz5Zjz32mBYsWOB7fscdd8R8nA8//FCzZ8/W5z//eW3btk0vvPCCzjjjjCTWHE6ze/durV69OqjBf/HFF+uFF15Q//7901MxAAAAIMns6lclU7j2OuwR6f7SJwKAYLnprgCA7uHXv/61799z587V2LFjNXfu3LiP8+abb6q1tVXf+ta3NGbMGBtrmJk+/fRT9ezZM93VSIlo13rKKafolFNOSWGNAAAAgNSyq1+VLegPWdEnAoBgRIAASNiuXbs0adIkud1u9e7dWxdffLHeeuutpJ1v7ty5uvDCCyVJM2fOlMvl0tixY311GT9+vIqKitSzZ0+NHj1av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EHHtCoUaNUUlKi//zP/1RdXV3CdQQAAED35KR+VTx9qmS2iVPZH5Ls7RN1h/6QRJ8IQGZiDRAAcTl48KAk6e677/YtSB6o80J0yda7d2/16NFDhw8fDtr3/vvvS5L69u3r23bSSSdZFnszhWoQx3p+l8sVssEXbyOwrq5On/3sZ33P29ra9NFHHwUNwnRerN2sgzk76/rrrw957IEDB8ZVl0RcddVVWrBggd544w394x//0OHDh3XVVVd1qZ6B1xqPkpIS5eTk6NChQ2HLxFOnvn37asOGDdqwYYPee+89Pfnkk7r55ptVX1+vbdu2JVxPAAAAdD9O6lfF06dKZpuY/pCz+0MSfSIAmYkBEABxMWevuFwunXfeeWmujdSrVy+NHDlSv/rVr/SDH/xAhYWFkqQTJ05o8+bNOvXUU3XGGWf4yp9++umqr6/XBx98oNLSUklSS0uLfve73yV8/vPPP1+/+tWvdNddd/lmCx05ckRPPfVUXMd69NFHNWLECN/z//f//p/a2to0duzYiK/r2bOnxo0bp1dffVXDhg1Tfn5+3Ndhh29+85tavHixqqur9Y9//EOf/exnNWnSJNvrGRiFE05hYaHGjBmjX/7yl1qzZo1lIKyrdRowYIC++93v6ve//73+9Kc/xX8RAAAA6Nac1K+Kt09lCtcmjrW9Hoj+UGyc0B+S6BMByBwMgACIy+c//3mNGzdO//Vf/6WjR49q5MiRMgxDhw8f1rPPPqs5c+ZEbaDabd26dZo4caLGjRunpUuXKj8/X/f
2023-09-18 12:12:50 +02:00
"text/plain": [
"<Figure size 2000x600 with 4 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
"a0 = ax0.hist2d(brem_vtx_z_found, brem_vtx_x_found, density=False, bins=300, cmap=plt.cm.jet, cmin=1)\n",
2023-09-19 09:58:54 +02:00
"ax0.set_xlabel(\"z [mm]\")\n",
"ax0.set_ylabel(\"x [mm]\")\n",
2023-09-18 12:12:50 +02:00
"ax0.set_title(r\"$e^\\pm$ found brem vertices\")\n",
"\n",
"plt.colorbar(a0[3],ax=ax0)\n",
"\n",
"a1 = ax1.hist2d(brem_vtx_z_lost, brem_vtx_x_lost, density=False, bins=300, cmap=plt.cm.jet, cmin=1)\n",
2023-09-19 09:58:54 +02:00
"ax1.set_xlabel(\"z [mm]\")\n",
"ax1.set_ylabel(\"x [mm]\")\n",
2023-09-18 12:12:50 +02:00
"ax1.set_title(r\"$e^\\pm$ lost brem vertices\")\n",
"#ax1.set(xlim=(0,4000), ylim=(-1000,1000))\n",
2023-09-18 12:12:50 +02:00
"\n",
"plt.colorbar(a1[3], ax=ax1)\n",
"\n",
"\"\"\"\n",
"z: VeLo - RICH1 - TT - Magnet - T1,T2,T3 - RICH2 - M1\n",
2023-09-18 12:12:50 +02:00
"B:\n",
"vertices of lost e photons are more densely concentrated around the beampipe, especially in the z range of the magnet\n",
"found: vertices are densely located @ or around the detectors, while there are no clusters in the z range of the magnet\n",
2023-09-20 10:52:44 +02:00
"D:\n",
"lost brem vertices: we can very clearly see the concentration of vertices @ the beampipe\n",
"both: less statistics in general, can still make out the tracking stations but not as well as in the B decay\n",
2023-09-18 12:12:50 +02:00
"\"\"\"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
"#plot singular tracks by fitting brem vertices\n",
"vtx_z_found = tracked[\"brem_vtx_z\"]\n",
"vtx_z_found = vtx_z_found[tracked[\"brem_vtx_z_length\"]>3]\n",
"\n",
"vtx_x_found = tracked[\"brem_vtx_x\"]\n",
"vtx_x_found = vtx_x_found[tracked[\"brem_vtx_x_length\"]>3]\n",
"\n",
"vtx_z_lost = lost[\"brem_vtx_z\"]\n",
"vtx_z_lost = vtx_z_lost[lost[\"brem_vtx_z_length\"]>3]\n",
"\n",
"vtx_x_lost = lost[\"brem_vtx_x\"]\n",
"vtx_x_lost = vtx_x_lost[lost[\"brem_vtx_x_length\"]>3]\n",
"\n",
"def cubic_fit(x, a, b, c, d):\n",
" return (a + b*x + c*x**2 + d*x**3)\n",
"\n",
"def quint_fit(x, a, b, c, d, e, f):\n",
" return (a + b*x + c*x**2 + d*x**3 + e*x**4 + f*x**5)\n"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABoQAAAIhCAYAAABnv9iQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzddXhT1/8H8HfaJmnq7u7e4j7ci46xAUO3wcaYwcaYAhuDAfsigwEzZAwb7u5WnAJ1d3eJ5/z+4Ecg1NtA2vJ5Pc+eZ9yce+8n9ybpOfdzhMMYYyCEEEIIIYQQQgghhBBCCCGtlpamAyCEEEIIIYQQQgghhBBCCCEvFiWECCGEEEIIIYQQQgghhBBCWjlKCBFCCCGEEEIIIYQQQgghhLRylBAihBBCCCGEEEIIIYQQQghp5SghRAghhBBCCCGEEEIIIYQQ0spRQogQQgghhBBCCCGEEEIIIaSVo4QQIYQQQgghhBBCCCGEEEJIK0cJIUIIIYQQQgghhBBCCCGEkFaOEkKEEEIIIYQQQgghhBBCCCGtHCWECGmFdu3aBX9/fwgEAnA4HNy/f1/TIVVrwYIF4HA4dZbbvn07Vq1a9eIDqoWLiwtCQ0M1GgMAFBYW4q233oKVlRU4HA5GjhxZY9nmEnNLsXjxYhw4cKDK9gsXLoDD4eDChQsvPaa63Lt3Dz179oSxsTE4HI7Gvyd1aUnxbt68GRwOB8nJyZoOBUDzi4cQQgh5Fbzov7/r1q3D5s2b612+pvrqy5KcnAwOh4NffvlFYzE8Ud96ZXOKuSXIzMzEggULqn2GUN/2uya0lGcgT7SkeKdMmQIXFxdNh6HU3OIhpCXS0XQAhBD1ysvLw8SJEzFo0CCsW7cOfD4fXl5emg6rSbZv345Hjx7h008/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Vj/vbbb3jttddgZWUFfX19BAYGYtmyZZBKpbVeUwDYvXs3OnXqBGNjY+jp6cHNzQ3Tpk2rcz9CXlmMENJqxMfHs99++40BYIsXL2bXr19nERERjDHGtm3bxgCwAQMGsAMHDrBdu3axdu3aMR6Pxy5fvqw8xuTJk5mzs3OVY8+fP589/5MBgLm4uLCOHTuy//77jx07doz16tWL6ejosISEBGW5M2fOMG1tbda9e3e2b98+tnv3btahQwfm5ORU5ZjPi4iIYN26dWM2Njbs+vXryv8YYywpKYkBYPb29qx3795sz5497NSpUywpKYkVFxezKVOmsK1bt7Jz586xEydOsM8//5xpaWmxLVu2qJxj4sSJjMPhsHfffZcdPHiQHT9+nP30009s9erVyjLOzs5s6NChjDHGFAoFmzNnDuNyuWzTpk3KMjt27GAA2EcffcROnTrFzpw5wzZs2MA+/vjjWt+jUChkQUFBTF9fn/3yyy/s1KlT7LvvvmM6OjpsyJAhjDHGRCIRu379OmvTpg1zc3NTXoeSkpIaj+vs7Mzs7e2Zk5MT27hxIzt27BibMGECA8CWL1+uLHf+/HnldRwzZgw7dOgQO3LkCCsoKGBbt25lHA6HjRw5ku3bt48dPnyYhYaGMm1tbXbmzBnlMZ58Pry9vdmPP/7ITp8+zebOncsAsFmzZjEfHx/266+/stOnT7OpU6cyAGzv3r21XpfVq1czACw2NlZl+7FjxxgAdujQIcYYY3K5nA0aNIjp6+uzhQsXstOnT7O//vqL2dvbMz8/P1ZZWalyTWxtbZmbmxvbuHEjO3/+PLt58ya7fv06EwgEbMiQIcpr++S78+T6nD9/XnmcEydOMC6Xy4KCgtjmzZvZuXPn2MaNG9lbb72lLBMREcGMjY1ZYGAg++eff9ipU6fYnDlzmJaWFluwYIGy3JIlS5i2tjabP38+O3v2LDtx4gRbtWqVSpn
"text/plain": [
"<Figure size 2000x600 with 2 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"n_end=100\n",
"\n",
"for i in range(0,n_end):\n",
" popt, pcov = curve_fit(cubic_fit,ak.to_numpy(vtx_z_found[i,:]),ak.to_numpy(vtx_x_found[i,:]))\n",
" z_coord = np.linspace(vtx_z_found[i,0],12000,1000)\n",
" fit = cubic_fit(z_coord, popt[0], popt[1], popt[2], popt[3])\n",
" ax0.plot(z_coord, fit, \"-\", label=\"fit\"+str(i), lw=0.5)\n",
" ax0.errorbar(ak.to_numpy(vtx_z_found[i,:]),ak.to_numpy(vtx_x_found[i,:]),fmt=\".\",ms=2)\n",
"\n",
"#ax0.legend()\n",
"ax0.set_xlabel(\"z [mm]\")\n",
"ax0.set_ylabel(\"x [mm]\")\n",
"ax0.set_title(\"found tracks of brem vertices from few signals\")\n",
"ax0.set(xlim=(0,12000), ylim=(-4000,4000))\n",
"ax0.grid()\n",
"\n",
"for i in range(0,n_end):\n",
" popt, pcov = curve_fit(cubic_fit,ak.to_numpy(vtx_z_lost[i,:]),ak.to_numpy(vtx_x_lost[i,:]))\n",
" z_coord = np.linspace(vtx_z_lost[i,0],12000,1000)\n",
" fit = cubic_fit(z_coord, popt[0], popt[1], popt[2], popt[3])\n",
" ax1.plot(z_coord, fit, \"-\", label=\"fit\"+str(i), lw=0.5)\n",
" ax1.errorbar(ak.to_numpy(vtx_z_lost[i,:]),ak.to_numpy(vtx_x_lost[i,:]),fmt=\".\",ms=2)\n",
"\n",
"#ax1.legend()\n",
"ax1.set_xlabel(\"z [mm]\")\n",
"ax1.set_ylabel(\"x [mm]\")\n",
"ax1.set_title(\"lost tracks of brem vertices from few signals\")\n",
"ax1.set(xlim=(0,12000), ylim=(-4000,4000))\n",
"ax1.grid()\n",
"\n",
"\"\"\"\n",
2023-09-20 10:52:44 +02:00
"B:\n",
"we can see that of the lost brem vertices, many trajectory fits seem illogical and not plausible\n",
2023-09-20 10:52:44 +02:00
"found: most seem like reasonable tracks\n",
"D:\n",
"both: many tracks arent good fits and are unusable\n",
"\"\"\"\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [],
2023-09-19 09:58:54 +02:00
"source": [
"endvtx_x_found = tracked[\"all_endvtx_x\"]\n",
"endvtx_x_found = endvtx_x_found[tracked[\"all_endvtx_x_length\"]!=0]\n",
"endvtx_x_found = ak.to_numpy(ak.flatten(endvtx_x_found))\n",
"\n",
"endvtx_z_found = tracked[\"all_endvtx_z\"]\n",
"endvtx_z_found = endvtx_z_found[tracked[\"all_endvtx_z_length\"]!=0]\n",
"#print(ak.to_numpy(brem_vtx_z_found))\n",
"endvtx_z_found = ak.to_numpy(ak.flatten(endvtx_z_found))\n",
"\n",
"endvtx_x_lost = lost[\"all_endvtx_x\"]\n",
"endvtx_x_lost = endvtx_x_lost[lost[\"all_endvtx_x_length\"]!=0]\n",
"endvtx_x_lost = ak.to_numpy(ak.flatten(endvtx_x_lost))\n",
"\n",
"endvtx_z_lost = lost[\"all_endvtx_z\"]\n",
"endvtx_z_lost = endvtx_z_lost[lost[\"all_endvtx_z_length\"]!=0]\n",
"endvtx_z_lost = ak.to_numpy(ak.flatten(endvtx_z_lost))"
]
},
{
"cell_type": "code",
"execution_count": 50,
2023-09-19 09:58:54 +02:00
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABkAAAAIlCAYAAACNejRdAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAADFMklEQVR4nOz9f3wU5b3//z+X/CJgEglIQiQiVfSoQavQIui7gPySitbiES0eDrQUbVEsJ1BOkVOJPQKKirZQqW05YEXFT79HWqkWAat4LGgxlha0/mpR0RJjNSZAY34x3z/I7s5kJ7uzuzO7O8njfrvtLZuZa6+5ZnaTXFfmer2ugGEYhgAAAAAAAAAAALqQHuluAAAAAAAAAAAAgNu4AQIAAAAAAAAAALocboAAAAAAAAAAAIAuhxsgAAAAAAAAAACgy+EGCAAAAAAAAAAA6HK4AQIAAAAAAAAAALocboAAAAAAAAAAAIAuhxsgAAAAAAAAAACgy+EGCAAAAAAAAAAA6HK4AQIAAAAAAAAAALocboAAyBizZs3Shg0b0t0MAAAAAPAtxlUAAIRxAwQAAAAAAAAAAHQ53AAB0GU89thjOuecc5Sfn69AIKC9e/emu0m2qqqqFAgE0t2MkExrjyTt2rVLVVVV+vTTTyP2bdiwQYFAQO+8807K2wUAAAB0ZV72taP18dPNT2MixkMAEB9ugABIqylTpujEE0/UiSeeqEceeURz584NfX/HHXc4ruejjz7SjBkzdNppp2nr1q3avXu3zjjjDA9bDi/t2rVLt912m+3g6LLLLtPu3bs1YMCA1DcMAAAAyEBujau8FK2Pj0idXS/GQwAQn+x0NwBA9/ab3/wm9HzWrFkaM2aMZs2aFXc9b775plpaWvRv//ZvGj16tIstRCr985//VK9evaKWOemkk3TSSSelqEUAAABA5nNrXIX0izUmYjwEAPEhAgSA61544QVNnDhRRUVF6tOnjy677DK99dZbnh1v1qxZuvjiiyVJ11xzjQKBgMaMGRNqy7hx41RQUKBevXpp1KhRevLJJ23rOPXUUyO2dwyFDn7/6quv6mtf+5qKiopUUlKib3zjG6qvr494/ZNPPqnPf/7zysvL0+DBg3X33XfHdW5vvfWWpk+frv79+ysvL09nnXWWfvzjH9u20UmbEm3Pr371KwUCAT3zzDMR+9auXatAIKA///nPCbX7lVde0b/+67+qT58+Ou2001RVVaXvfve7kqTBgwcrEAgoEAjoueeek2Qf8v3666/ra1/7mkpKSpSXl6dTTjlF//7v/66mpqa4r+dHH32k66+/XuXl5crLy9NJJ52kiy66SDt27HB0rQAAAAA3pHpcFa0dscZUsfrQsfr4nXF7PCSlZkzkpN3mtsczJuosBZaTMRHjIQDdEREgAFxVVVWl//7v/9asWbM0f/58NTY26rbbbtO4ceP02muv6YQTTuj0tRs2bEjomN///vf1xS9+UTfeeKOWL1+usWPHqrCwUDt37tSECRN07rnnat26dcrLy9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OKLamlpSbh9AAAAQLwyZVwVz5jK7T602+Oh4Pl4PSZKpN2S92MixkMAujNugABwRU1Njf74xz/qr3/9q/Ly8pSTk2N5NDY26sQTT0xZe+rq6mQYRihU2KysrEySkgrh7du3r+X7YJqlxsbG0PGPHTum0tLSiNfabevo448/Vmtrq1avXh1xLb/85S9Lkv7xj384blOy7ZGkc845R1/4whe0fv16SVJbW5s2btyor3zlKyouLk643XbvkVN1dXVqa2vTwIEDo5aLp12PPfaYZs6cqZ///OcaOXKkiouL9e///u+qqalJuJ0AAACAE5k0ropnTOV2H9rt8VDwfLweEyXSbsn7MRHjIQDdGWuAAHDFwYMHJUn33ntvaEHyjk477bSUtadPnz7q0aOHDh06FLHv73//uySpX79+oW09e/aMWDBbsu+cOj1+IBCw7SQ66Tj26dMnNLPqxhtvtC0zePDglLUn6Otf/7rmzp2rv/zlL/rb3/6mQ4cO6etf/3pS7TYvMh+v4uJiZWVl6f33349aLp529evXT/fdd5/uu+8+vffee3riiSf0ve99T7W1tdq6dWvCbQUAAABiyaRxVTxjKrf70G6Ph4J1ej0mSrTdXo+JGA8B6M64AQLAFcEIgEAgoOHDh6e5NVLv3r01YsQIPf7447r77ruVn58vSTp27Jg2btyogQMH6owzzgiVP/XUU1VbW6sPP/xQJSUlkqTm5mY9/fTTCR//i1/8oh5//HHdddddoRDrw4cPa8uWLTFf36tXL40dO1Z//OMfde655yo3NzehdrjVnqCvfe1rqqys1IYNG/S3v/1NJ598siZOnOh6uzvO1upMfn6+Ro8erV/+8pdatmyZ5aaWWaLtOuWUU3TTTTfpmWee0e9///v4TgIAAACIUyaNq+IdUwV11od22seX3B8PBc/H6zGRm+12c0zEeAhAd8YNEACuOO200zR27Fj913/9l44cOaIRI0bIMAwdOnRIzz77rGbOnKkxY8aktE0rVqzQhAkTNHbsWC1cuFC5ubm6//77tX//fj366KOWWTbXXHONbr31Vl177bX67ne/q88++0w/+tGP1NbWlvDx//u//1uXXnqpJkyYoAULFqitrU133nmnevfurU8++STm63/4wx/q4osv1v/7f/9P3/72t3Xqqafq8OHDevvtt7Vlyxb97ne/S2l7JOnEE0/UV7/6VW3YsEGffvqpFi5cqB49rNkU3Wj30KFDQ3XNnDlTOTk5OvPMM1VQUBBRdtWqVbr44os1YsQIfe9739Ppp5+uDz/8UE888YQeeOCB0GuctKu+vl5jx47V9OnT9S//8i8qKCjQnj17tHXrVk2dOtXRNQIAAAASlWnjKidjKqd96Hj6+MFybo6HpNSMidxqd2fXy46TMRHjIQDdVnrXYAfQldTX1xu
2023-09-19 09:58:54 +02:00
"text/plain": [
"<Figure size 2000x600 with 4 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
"a0 = ax0.hist2d(endvtx_z_found, endvtx_x_found, density=False, bins=500, cmap=plt.cm.jet, cmin=1)\n",
2023-09-19 09:58:54 +02:00
"ax0.set_xlabel(\"z [mm]\")\n",
"ax0.set_ylabel(\"x [mm]\")\n",
"ax0.set_title(r\"$e^\\pm$ found end vertices\")\n",
"ax0.set(xlim=(0,12000), ylim=(-4000,4000))\n",
2023-09-19 09:58:54 +02:00
"\n",
"plt.colorbar(a0[3],ax=ax0)\n",
"\n",
"a1 = ax1.hist2d(endvtx_z_lost, endvtx_x_lost, density=False, bins=500, cmap=plt.cm.jet, cmin=1)\n",
2023-09-19 09:58:54 +02:00
"ax1.set_xlabel(\"z [mm]\")\n",
"ax1.set_ylabel(\"x [mm]\")\n",
"ax1.set_title(r\"$e^\\pm$ lost end vertices\")\n",
"ax1.set(xlim=(0,12000), ylim=(-4000,4000))\n",
2023-09-19 09:58:54 +02:00
"\n",
"plt.colorbar(a1[3], ax=ax1)\n",
"\n",
"\"\"\"\n",
"z: VeLo - RICH1 - TT - Magnet - T1,T2,T3 - RICH2 - M1\n",
"B:\n",
"vertices of lost e photons are more densely concentrated around the beampipe, especially in the z range of the magnet\n",
"found: vertices are densely located @ or around the detectors, while there are no clusters in the z range of the magnet\n",
2023-09-20 10:52:44 +02:00
"D:\n",
"lost: densely located @ the beampipe.\n",
"both: almost cant make out the velo or ut\n",
2023-09-19 09:58:54 +02:00
"\"\"\"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 51,
2023-09-19 09:58:54 +02:00
"metadata": {},
"outputs": [],
"source": [
"# try to plot trajectories using all tracker hits (Velo, UT, SciFi)\n",
"\n",
"velo_x_found = tracked[\"velo_hit_pos_x\"]\n",
"velo_z_found = tracked[\"velo_hit_pos_z\"]\n",
"ut_x_found = tracked[\"ut_hit_pos_x\"]\n",
"ut_z_found = tracked[\"ut_hit_pos_z\"]\n",
"scifi_x_found = tracked[\"scifi_hit_pos_x\"]\n",
"scifi_z_found = tracked[\"scifi_hit_pos_z\"]\n",
"\n",
"tracker_x_found = ak.concatenate([velo_x_found,ut_x_found,scifi_x_found], axis=1)\n",
"tracker_z_found = ak.concatenate([velo_z_found,ut_z_found,scifi_z_found], axis=1)\n",
"\n",
"velo_x_lost = lost[\"velo_hit_pos_x\"]\n",
"velo_z_lost = lost[\"velo_hit_pos_z\"]\n",
"ut_x_lost = lost[\"ut_hit_pos_x\"]\n",
"ut_z_lost = lost[\"ut_hit_pos_z\"]\n",
"scifi_x_lost = lost[\"scifi_hit_pos_x\"]\n",
"scifi_z_lost = lost[\"scifi_hit_pos_z\"]\n",
"\n",
"tracker_x_lost = ak.concatenate([velo_x_lost,ut_x_lost,scifi_x_lost], axis=1)\n",
"tracker_z_lost = ak.concatenate([velo_z_lost,ut_z_lost,scifi_z_lost], axis=1)\n",
"\n",
"\n",
2023-09-20 16:34:15 +02:00
"#tracker_x_found = tracker_x_found[tracked[\"energy\"]>1e4]\n",
"#tracker_z_found = tracker_z_found[tracked[\"energy\"]>1e4]\n",
"\n",
2023-09-20 16:34:15 +02:00
"#tracker_x_lost = tracker_x_lost[lost[\"energy\"]>1e4]\n",
"#tracker_z_lost = tracker_z_lost[lost[\"energy\"]>1e4]"
2023-09-19 09:58:54 +02:00
]
},
{
"cell_type": "code",
2023-09-20 10:52:44 +02:00
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 52,
2023-09-19 09:58:54 +02:00
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABoQAAAIhCAYAAABnv9iQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzdd3hURdvA4d+m9wpplBAgPaEjICBdEBALTTqK6GtBUVBUkCZVpCjVhgWlgzTpHaR3SK+EkN57stmd74+YhSVtg0CAb+7rei/fnD1nzuzZc5aZfWaeUQghBJIkSZIkSZIkSZIkSZIkSZIkSdJTS6+mKyBJkiRJkiRJkiRJkiRJkiRJkiQ9XDIgJEmSJEmSJEmSJEmSJEmSJEmS9JSTASFJkiRJkiRJkiRJkiRJkiRJkqSnnAwISZIkSZIkSZIkSZIkSZIkSZIkPeVkQEiSJEmSJEmSJEmSJEmSJEmSJOkpJwNCkiRJkiRJkiRJkiRJkiRJkiRJTzkZEJIkSZIkSZIkSZIkSZIkSZIkSXrKyYCQJEmSJEmSJEmSJEmSJEmSJEnSU04GhCRJkiRJkiRJkiRJkiRJkiRJkp5yMiAkSU+wDRs24Ovri6mpKQqFgitXrtR0lco1ffp0FApFlfutXbuWJUuWPPwKVaJBgwb07dv3oZUfHR1Nnz59sLOzQ6FQMH78+Id2roclOjoahULBr7/+Wu1jAwMDmT59OtHR0Q+8XjVxnruV3ucpKSlV7tugQQNGjx6t+TsuLo7p06c/8Gd46dKlNG7cGCMjIxQKBRkZGQ+0/AftSapv586d6dy5c01XQ+Nxq48kSZIkPSl+/fVXFArFQ2s3rlixolrt5jlz5rBt27aHUhddlLb1v/nmm4d2jkOHDtGqVSvMzc1RKBQ1+n7v13+5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Zc+3du5du3bphbW2NmZkZ3t7ezJ07V6fzVPeabt26lebNm2NiYsKMGTOqvGbnz5+nY8eOmJmZ0bBhQ+bNm1dun6K0jTx9+nQ++eQTANzc3DT1PXr0KACHDx+mc+fO2NvbY2pqSv369enfvz95eXkV1kGhUPDTTz+Rn59fpk9Y+hvHqlWr8Pb2xtjYWNNHPnnyJN26dcPS0hIzMzOeffZZ/v77b62yS5/Hw4cPM3bsWOzt7bGysmLkyJHk5uaSkJDAoEGDsLGxwdnZmYkTJ1Z4z+hSX13ui+XLl6Onp6fV91q4cCEKhYL33ntPs02tVmNra8uECRMqrY8u17y8FG0nT56kXbt2mJiYUKdOHb788kt++umnMikWS++tvXv30qJFC0xNTfHy8mL16tVa5SUnJ/Puu+/i4+ODhYUFDg4OdO3alRMnTlRaf7i/7ylJ+n9BSJL0xAkPDxfLly8XgJgzZ444ffq0CAgIEEII8eeffwpAPP/882Lbtm1iw4YNomXLlsLIyEicOHFCU8aoUaOEq6trmbKnTZsm7v1qAESDBg3EM888IzZu3Ch2794tOnfuLAwMDERERIRmv4MHDwp9fX3RoUMHsXXrVrFp0ybRunVrUb9+/TJl3isgIEC0b99eODk5idOnT2v+J4QQUVFRAhB16tQRXbp0EZs3bxb79+8XUVFRIiMjQ4wePVqsWbNGHD58WOzdu1dMnDhR6Onpid9++03rHCNGjBAKhUK8+eabYvv27WLPnj1i9uzZ4ttvv9Xs4+rqKvr06SOEEEKtVosJEyYIQ0ND8csvv2j2WbdunQDEuHHjxP79+8XBgwfFqlWrxAcffFDh+8vMzBSnT58WTk5Oon379pr3V1BQII4cOaJ5fwMGDBA7duwQu3btEqmpqWLOnDkCEEOGDBF///23+P3330XDhg2FtbW1CA0N1fo8jYyMhLe3t/j222/FgQMHxOu
2023-09-19 09:58:54 +02:00
"text/plain": [
"<Figure size 2000x600 with 2 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
"nstart=0\n",
"nend=130\n",
"\n",
"for i in range(nstart,nend):\n",
2023-09-19 09:58:54 +02:00
" popt, pcov = curve_fit(cubic_fit,ak.to_numpy(tracker_z_found[i,:]),ak.to_numpy(tracker_x_found[i,:]))\n",
" z_coord = np.linspace(tracker_z_found[i,0],14000,1000)\n",
2023-09-19 09:58:54 +02:00
" fit = cubic_fit(z_coord, popt[0], popt[1], popt[2], popt[3])\n",
" ax0.plot(z_coord, fit, \"-\", lw=0.5)\n",
" ax0.errorbar(ak.to_numpy(tracker_z_found[i,:]),ak.to_numpy(tracker_x_found[i,:]),fmt=\".\",ms=3)\n",
2023-09-19 09:58:54 +02:00
"\n",
2023-09-20 16:34:15 +02:00
"ax0.legend([r\"$E>5$GeV\"])\n",
"ax0.vlines(3000, -4000,4000, lw=1, ls=\":\", color=\"red\")\n",
"ax0.vlines(7500, -4000,4000, lw=1, ls=\":\", color=\"red\")\n",
"ax0.set_xticks(np.arange(0,14000,1000) , minor=True)\n",
"ax0.set_yticks(np.arange(-4000,4000,500), minor=True)\n",
2023-09-19 09:58:54 +02:00
"ax0.set_xlabel(\"z [mm]\")\n",
"ax0.set_ylabel(\"x [mm]\")\n",
"ax0.set_title(\"found tracks from detector hits from few signals\")\n",
"ax0.set(xlim=(0,14000), ylim=(-4000,4000))\n",
2023-09-19 09:58:54 +02:00
"ax0.grid()\n",
"\n",
"for i in range(nstart,nend):\n",
2023-09-19 09:58:54 +02:00
" popt, pcov = curve_fit(cubic_fit,ak.to_numpy(tracker_z_lost[i,:]),ak.to_numpy(tracker_x_lost[i,:]))\n",
" z_coord = np.linspace(tracker_z_lost[i,0],14000,1000)\n",
2023-09-19 09:58:54 +02:00
" fit = cubic_fit(z_coord, popt[0], popt[1], popt[2], popt[3])\n",
" ax1.plot(z_coord, fit, \"-\", lw=0.5)\n",
" ax1.errorbar(ak.to_numpy(tracker_z_lost[i,:]),ak.to_numpy(tracker_x_lost[i,:]),fmt=\".\",ms=3)\n",
2023-09-19 09:58:54 +02:00
"\n",
"ax1.vlines(3000, -4000,4000, lw=1, ls=\":\", color=\"red\")\n",
"ax1.vlines(7500, -4000,4000, lw=1, ls=\":\", color=\"red\")\n",
"ax1.set_xticks(np.arange(0,14000,1000) , minor=True)\n",
"ax1.set_yticks(np.arange(-4000,4000,500), minor=True)\n",
2023-09-19 09:58:54 +02:00
"ax1.set_xlabel(\"z [mm]\")\n",
"ax1.set_ylabel(\"x [mm]\")\n",
"ax1.set_title(\"lost tracks from detector hits from few signals\")\n",
"ax1.set(xlim=(0,14000), ylim=(-4000,4000))\n",
2023-09-19 09:58:54 +02:00
"ax1.grid()\n",
"\n",
"\n",
"\"\"\"\n",
"electrons and photons will be stopped by the ECAL which serves to measure the particles energy\n",
"\n",
2023-09-20 10:52:44 +02:00
"B:\n",
"the trajectories between the velo and tt should be linear, which cannot be plotted accurately using a single fit.\n",
"lost tracks diverge more severely.\n",
"\n",
"most higher energy particles maintain a trajectory closer to the beamdirection ie a larger pseudorapidity,\n",
"and show less bending in their trajectory, especially upstream.\n",
"found: higher energy: very compact trajectory, less bending wrt lower energy particles \n",
2023-09-20 10:52:44 +02:00
"\n",
"D:\n",
"E<10GeV: almost all diverge from the x origin (almost no hit for x<1500)\n",
"E>10GeV: much more densely clustered. however still a noticeable empty space around the x origin\n",
"\"\"\"\n",
"\n",
"\n",
"\n",
2023-09-19 09:58:54 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [],
"source": [
"c = 299792458 #m/s\n",
"energy_found = tracked[\"energy\"]\n",
"p_found = tracked[\"p\"]\n",
"pt_found = tracked[\"pt\"]\n",
"eta_found = tracked[\"eta\"]\n",
"\n",
"energy_lost = lost[\"energy\"]\n",
"p_lost = lost[\"p\"]\n",
"pt_lost = lost[\"pt\"]\n",
"eta_lost = lost[\"eta\"]\n",
"\n",
"p_found = ak.to_numpy(p_found)\n",
"pt_found = ak.to_numpy(pt_found)\n",
"eta_found = ak.to_numpy(eta_found)\n",
"\n",
"p_lost = ak.to_numpy(p_lost)\n",
"pt_lost = ak.to_numpy(pt_lost)\n",
"eta_lost = ak.to_numpy(eta_lost)\n",
"#print(np.sqrt(energy_found[0]**2 - p_found[0]**2))"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABjEAAAIhCAYAAAAPYJjtAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAACt5ElEQVR4nOzdeXgUVdr38V+TQBKWBIKQRXZFhACCoAgugAgIg8uo446gPgwOiIPIg+JGcCGCjIOKgL7DEJEBl0EUhUFwIY6CIyC4oDLjM6gIRFwwAYSEhPP+gWm7SXe6q1PdXd39/VxXLtOVqlOnFmLdqXOf22WMMQIAAAAAAAAAAHCYOtHuAAAAAAAAAAAAgC+8xAAAAAAAAAAAAI7ESwwAAAAAAAAAAOBIvMQAAAAAAAAAAACOxEsMAAAAAAAAAADgSLzEAAAAAAAAAAAAjsRLDAAAAAAAAAAA4Ei8xAAAAAAAAAAAAI7ESwwAAAAAAAAAAOBIvMSAnnvuOeXl5SktLU0ul0tbtmyJdpd8ys/Pl8vlsq29wsJCuVwuffnll7a16enTTz9Vfn5+2NpH6KZNm6aXXnop2t2IaZxDRBq/UwEAThbu2GLOnDkqLCy0vd2RI0eqTZs2trdbZeXKlcrPzw9b+wjNrl27lJ+f79jYPxZwDhEN/E5FIuMlRoL77rvvNHz4cJ1wwglatWqV1q9fr5NOOina3YoLn376qaZOncof3ByIP8DXHucQkcbvVABAIgvXS4xwW7lypaZOnRrtbuAYu3bt0tSpU/kDfC1wDhEN/E5FIkuOdgcQXf/+9791+PBhXXvtterbt2+0u5PQfv75Z9WvXz/a3QAkSZWVlaqoqFBKSkqt2zp48KBSU1NtzaRymoM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HgdOHDA5/n2VPW7Y/369erTp4/S0tLUpk0bLViwQNLR352nnnqq6tevry5dumjVqlXV2njnnXc0YMAANWrUSPXr11efPn20YsUKr3Xs+B1h9XyuWrVKp556qtLS0nTyySfrr3/9q1d/avqd2qZNG40cOdLn+fL8/1rVvbV48WLdfvvtysnJUcOGDXXBBRfo22+/1b59+/T73/9exx13nI477jhdf/312r9/f8DrAgCAP3/96191yimnKDU1VZmZmfrtb3+rzz77zGud//73v7ryyiuVm5urlJQUZWVlacCAAe4R3m3atNHWrVtVVFTk/n9goCmgjDGaM2eOunXrprS0NDVp0kSXXXaZ/vvf/wbss5VtV61apQEDBriffTp27KiCggJJR2PFJ554QpLc/fZ8pq6KE+bNm6eOHTsqJSXF/dxr5Xnlrbfe0h/+8Acdd9xxatq0qS655BLt2rUr4HGOHDlSDRs21Oeff67BgwerQYMGysnJ0UMPPSRJeu+993TWWWepQYMGOumkk7yeyasEenaX7Hn+CPaaVD0rbtiwQWeffbb7efShhx5yx5Nr167VaaedJkm6/vrr3delaoqaY5+fPM+X531XFUM8/PDDmj59utq0aaO0tDT169fPPVjyjjvuUG5urjIyMvTb3/5We/bsCXhdpMB/i3jppZfkcrl8xulz586Vy+XSRx995F62ceNGXXjhhcrMzFRqaqq6d++u559/3mu7muKYYwU6h1X31scff6xBgwapUaNGGjBggCRpzZo1uuiii9SiRQulpqbqxBNP1OjRo/X999977SPY+FaqOQaJdPx45MgRPfDAA+7Yv3HjxurataseffRRr33/5z//0dVXX+31d4+q3xeB2PE3hmB+N9vxO8LK+Qz0952afqdWteErY8/z3pR+vbc++ugj/e53v1NGRoYyMzM1YcIEVVRUaNu2bTr//PPVqFEjtWnTRjNmzAjqugBhZ5CwvvjiC/PEE08YSWbatGlm/fr1ZuvWrcYYY/72t78ZSWbQoEHmpZdeMs8995zp0aOHqVevnvnnP//pbmPEiBGmdevW1dqeMmWKOfb2kmTatGljTj/9dPP888+blStXmn79+pnk5GTzf//3f+71Xn/9dZOUlGTOOuss8+KLL5oXXnjBnHbaaaZVq1bV2vTlmWeeMS6Xy1x88cXmxRdfNK+88ooZNmyYSUpKMq+//rp7vQULFhhJZvv27Za33bJli2nYsKFp06aNmTdvnnnjjTfMokWLzOWXX25KS0vNnj17zLRp04wk88QTT5j169eb9evXmz179hhjjOnbt6/JzMw0LVu2NI8//rh56623TFFRkdmzZ485/vjjTbNmzcy8efPMqlWrzM0332wkmT/84Q/u/W/fvt19Ps8//3zz0ksvmZdeesl06dLFNGnSxPz00081nqOqY2/btq257bbbzOrVq8306dNNUlKSueqqq8ypp55qHnjgAbNmzRpz++23G0nmT3/6k3v7gwcPmq5du5oGDRqYmTNnmtWrV5t77rnHJCcnm6FDh1a77q1btzZ9+vQxL774olm2bJk56aSTTGZmprn11lvNRRddZF599VXzt7/9zWRlZZmuXbuaI0eOWL4mVfdchw4dzL333mvWrFljHnnkEZOSkmKuv/5693rr1683aWlpZujQoe7rUnXf+7pv/d0rrVu3Ni1atDCdO3c2S5YsMStXrjS9evUydevWNffee68588wzvY43KyvL/PzzzzVel88//9w0atTInHDCCWbhwoVmxYoV5qqrrjKSzPTp093r/fa3vzUtW7Y0lZWVXttPmjTJ1KtXz3z//ffGGGN2795tWrZsaVq3bm2efPJJ8/rrr5v777/fpKSkmJEjR7q3q7qfjj/+eNO/f3/z97//3axevdrreD3VdA6rztXxxx9vfv/735t//OMf5u9//7upqKgwRUVF5rbbbjN///vfTVFRkVm2bJm5+OKLTVpamvn888/d7b/11lvu+/uaa64xK1asMEuWLDGtWrUy7du3NxUVFcYYY/bv32+aNm1qevbsaZ5//nlTVFRknnv
"text/plain": [
"<Figure size 2000x600 with 4 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
"a0=ax0.hist2d(p_found, pt_found, bins=200, cmap=plt.cm.jet, cmin=0,range=[[0,1e4],[0,1e3]])\n",
"ax0.set_xlabel(\"p\")\n",
"ax0.set_ylabel(r\"$p_T$\")\n",
"ax0.set_title(\"found electron momentum over transverse momentum\")\n",
"plt.colorbar(a0[3],ax=ax0)\n",
"\n",
"a1=ax1.hist2d(p_lost, pt_lost, bins=200, cmap=plt.cm.jet, cmin=0, range=[[0,1e4],[0,1e3]]) \n",
"ax1.set_xlabel(\"p\")\n",
"ax1.set_ylabel(r\"$p_T$\")\n",
"ax1.set_title(\"lost electron momentum over transverse momentum\")\n",
"plt.colorbar(a1[3],ax=ax1)\n",
"\n",
"\"\"\"\n",
2023-09-20 10:52:44 +02:00
"B:\n",
"\n",
2023-09-20 10:52:44 +02:00
"D:\n",
"both: clustered between 2000<p<6000 and 20<pt<400 (found a little more spread)\n",
"\"\"\"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABhUAAAIiCAYAAADPQknpAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAACQI0lEQVR4nOzde3wU1f3/8feSQBIuiQQlgNwCIqKA3BRBK1CEiohYq1ZFhVq/9QJWQOv1pwRBULBqWyoWLyhVRK2KoBVFBdSKFVHUIsUbRWxFvEACiIGE8/sDdjObzLAzu7PZ3cnr+Xjsw83szJkzs0k7H875nE/IGGMEAAAAAAAAAAAQQ71UdwAAAAAAAAAAAGQGBhUAAAAAAAAAAIArDCoAAAAAAAAAAABXGFQAAAAAAAAAAACuMKgAAAAAAAAAAABcYVABAAAAAAAAAAC4wqACAAAAAAAAAABwhUEFAAAAAAAAAADgCoMKAAAAAAAAAADAFQYVAAePP/64jjrqKOXl5SkUCmnNmjWp7pKtkpIShUIh39p78803VVJSom3btvnWZm0bM2aM2rdv71t7ft/j6oJwz4Pohx9+UElJiZYvX57qrgAAAGSkhx56SKFQSP/5z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KNWrVopJydHRUVFGjx4cGRZ2vbt22vt2rVasWJF5Fkt1hKoxhjdc8896tGjh/Ly8tS0aVOdeeaZ+vzzzyP7DBw4UM8//7w2btwYadf6fDd58mT17dtXhYWFys/PV69evfTAAw/IGBPzut955x2dc845kWfd9u3b69xzz9XGjRuj9gsvG7Vs2TJddtllOvjgg9WsWTOdccYZ+t///he17549e3TNNdeoRYsWatiwoU444QS9/fbbMfsStnv3bk2dOlVHHHGEcnJydMghh+hXv/qVvvnmG1+PnT9/vvr166fGjRurcePG6tGjhx544AFJB77n4ThhxowZmjp1qoqLi5WTk6Nly5ZJchefh5/R165dq3PPPVcFBQUqKirSRRddpNLS0pjXOXDgQHXt2lUrV65U//79I9/d3LlzJe2L03v16qWGDRuqW7duWrJkSY023njjDQ0ePFhNmjRRw4YN1b9/fz3//PNR+4S/91dffVX/93//p2bNmik/P18XXnihdu7cqc2bN+vss8/WQQcdpJYtW+rqq6/Wnj174vpOwnHmkiVL1KtXL+Xl5emII47Qgw8+GNWfs846S5I0aNCgyPcSzg5yWmKr+lJZ4Zh0/vz5uvbaa9WyZUs1btxYI0aM0Ndff63t27frN7/5jQ4++GAdfPDB+tWvfqUdO3bE/F4ApJgBEOXTTz81f/7zn40kM23aNLNy5Uqzdu1aY4wxjz76qJFkhg4dahYuXGgef/xx07t3b9OgQQPz+uuvR9oYPXq0adeuXY22J02aZKr/2Uky7du3N8cee6x54oknzN///nczcOBAk52dbT777LPIfi+//LLJysoyJ5xwgnn66afNk08+aY455hjTtm3bGm3a+etf/2pCoZA5/fTTzdNPP20WL15sTj31VJOVlWVefvllY4wxmzZtMldccYWRZJ5++mmzcuVKs3LlSlNaWmqMMWbKlCnmrrvuMs8//7xZvny5uffee01xcbEZNGhQzPP/+9//NpdddplZsGCBWb58uXnuuefMr3/9a1OvXj2zbNmyyH4bNmyI3JOTTz7ZLFy40CxcuNB069bNNG3a1Gzbti2y79y5c40kM3LkSLN48WLzyCOPmMMOO8y0adPG9v5Xd+utt5pQKGQuuugi89xzz5mnn37a9OvXzzRq1CjynRtj/725PXbJkiWmfv36pnv37uahhx4yr776qnnwwQfNOeec4+qet2vXzrRs2dJ06NDBPPjgg2bZsmXm7bffNv/+979NkyZNTMeOHc28efPM888/b84991wjydx+++2R8y9btixyP0eNGmWef/5589hjj5m2bduaTp06mYqKigPeo/C1d+7c2UyZMsUsXbrUXHPNNUaSGTdunDniiCPMH//4R7N06VLzq1/9ykgyTz31VOT4LVu2mEMPPdQccsgh5t577zVLliwx48aNM5LMZZddVuN7b9eunRkxYoR57rnnzCOPPGKKiorM4Ycfbi644AJz0UUXmRdeeMHce++9pnHjxmbEiBFxfSejR482DRo0MF26dDF33HGHefnll83NN99sQqGQmTx5sjHGmB9//NEsWbLESDK//vWvI9/Lp59+GmnDy994u3btTP/+/c3TTz9tnnnmGXP44YebwsJCM2HCBDNy5Ejz3HPPmUcffdQUFRWZ7t27m7179x7wewEAAMgE4ef1DRs2RLZNmzbNSDLnnnuuef755828efNMhw4dTEFBgfn4448j+3Xu3Nkcdthh5q9//atZsWKFeeqpp8xVV10ViR3effdd06FDB9OzZ8/Is9q77757wP783//9n6lfv7656qqrzJIlS8z8+fPNEUccYYqKiszmzZuNMcasXbvWHH/88aZFixaRdleuXBlpY8yYMeaBBx4wS5cuNUuXLjVTpkwxeXl5kefIA3nyySfNzTffbJ555hmzYsUKs2DBAjNgwABzyCGHmG+++abGfevQoYO54oorzIsvvmjuv/9+07Rp0xqx1+jRo00oFDK/+93vzEsvvWTuvPNOc+ihh5r8/HwzevToA/ansrLSnHzyyaZRo0Zm8uTJZunSpeb+++83hx56qDnyyCPNDz/8ENl3wIABZsCAAXEde9NNNxlJ5owzzjBPPvlkpJ833XRTzHsejhMOPfRQM2jQIPO3v/3NvPTSS2bDhg2u43NrTHPzzTebpUuXmjvvvNPk5OSYX/3qVzG/twEDBphmzZqZzp07mwceeMC8+OKL5tRTTzWSzOTJk023bt3MY489Zv7+97+b4447zuTk5Jj//ve/keOXL19u6tevb3r37m0ef/xxs3DhQjN06FATCoXMggULanzvxcX
"text/plain": [
"<Figure size 2000x600 with 4 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
"\n",
"a0=ax0.hist2d(eta_found, p_found/(1e3), bins=200, cmap=plt.cm.jet, cmin=0, range=[[0,7],[0,50]])\n",
"ax0.set_xlabel(r\"$\\eta$\")\n",
2023-09-20 10:52:44 +02:00
"ax0.set_ylabel(r\"$p$ [GeV]\")\n",
"ax0.set_title(\"found eta and electron momentum\")\n",
"plt.colorbar(a0[3],ax=ax0)\n",
"\n",
"a1=ax1.hist2d(eta_lost, p_lost/(1e3), bins=200, cmap=plt.cm.jet, cmin=0, range=[[0,7],[0,50]])\n",
"ax1.set_xlabel(r\"$\\eta$\")\n",
2023-09-20 10:52:44 +02:00
"ax1.set_ylabel(r\"$p$ [GeV]\")\n",
"ax1.set_title(\"lost eta and electron momentum\")\n",
"plt.colorbar(a1[3],ax=ax1)\n",
"\n",
"\"\"\"\n",
2023-09-20 10:52:44 +02:00
"B:\n",
"particles with lower momentum appear to have lower rapidity as well, ie a larger angle to the beam axis.\n",
"D:\n",
"both: clustered between 3<eta<5 and 0<p<10GeV. it seems that most particles had a higher rapidity \n",
"\"\"\"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
2023-09-19 09:58:54 +02:00
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'all_endvtx_types_length': 11,\n",
" 'all_endvtx_types': [101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 101.0,\n",
" 0.0],\n",
" 'all_endvtx_x_length': 11,\n",
" 'all_endvtx_x': [19.496400833129883,\n",
" 24.957000732421875,\n",
" 32.490699768066406,\n",
" 34.14419937133789,\n",
" 34.6599006652832,\n",
" 36.427101135253906,\n",
" -1914.992431640625,\n",
" -2413.033203125,\n",
" -3782.947998046875,\n",
" -3786.80810546875,\n",
" -3819.826904296875],\n",
" 'all_endvtx_y_length': 11,\n",
" 'all_endvtx_y': [-20.370500564575195,\n",
" -26.043100357055664,\n",
" -33.85060119628906,\n",
" -35.53160095214844,\n",
" -36.069400787353516,\n",
" -37.92850112915039,\n",
" -504.0671081542969,\n",
" -533.6621704101562,\n",
" -598.8317260742188,\n",
" -599.1124877929688,\n",
" -593.3890991210938],\n",
" 'all_endvtx_z_length': 11,\n",
" 'all_endvtx_z': [399.7018127441406,\n",
" 500.7049865722656,\n",
" 637.5723266601562,\n",
" 667.4852905273438,\n",
" 677.0195922851562,\n",
" 709.4874877929688,\n",
" 8576.556640625,\n",
" 9281.2119140625,\n",
" 11183.1640625,\n",
" 11188.4541015625,\n",
" 11237.0966796875],\n",
" 'brem_photons_pe_length': 10,\n",
" 'brem_photons_pe': [2469.182861328125,\n",
" 169.8916473388672,\n",
" 223.71347045898438,\n",
" 388.2983703613281,\n",
" 3228.4228515625,\n",
" 809.4715576171875,\n",
" 171.57342529296875,\n",
" 223.80494689941406,\n",
" 178.85166931152344,\n",
" 793.921142578125],\n",
" 'brem_photons_px_length': 10,\n",
" 'brem_photons_px': [133.6999969482422,\n",
" 9.329999923706055,\n",
" 12.489999771118164,\n",
" 20.93000030517578,\n",
" 175.22000122070312,\n",
" 43.81999969482422,\n",
" -98.19999694824219,\n",
" -129.77000427246094,\n",
" -106.12000274658203,\n",
" -465.2200012207031],\n",
" 'brem_photons_py_length': 10,\n",
" 'brem_photons_py': [-137.9199981689453,\n",
" -9.65999984741211,\n",
" -12.579999923706055,\n",
" -21.809999465942383,\n",
" -183.27999877929688,\n",
" -47.79999923706055,\n",
" -6.090000152587891,\n",
" -7.429999828338623,\n",
" -5.800000190734863,\n",
" -36.66999816894531],\n",
" 'brem_photons_pz_length': 10,\n",
" 'brem_photons_pz': [2461.699951171875,\n",
" 169.36000061035156,\n",
" 223.00999450683594,\n",
" 387.1199951171875,\n",
" 3218.449951171875,\n",
" 806.8699951171875,\n",
" 140.55999755859375,\n",
" 182.19000244140625,\n",
" 143.85000610351562,\n",
" 642.2899780273438],\n",
" 'brem_vtx_x_length': 10,\n",
" 'brem_vtx_x': [19.496400833129883,\n",
" 24.957000732421875,\n",
" 32.490699768066406,\n",
" 34.14419937133789,\n",
" 34.6599006652832,\n",
" 36.427101135253906,\n",
" -1914.992431640625,\n",
" -2413.033203125,\n",
" -3782.947998046875,\n",
" -3786.80810546875],\n",
" 'brem_vtx_y_length': 10,\n",
" 'brem_vtx_y': [-20.370500564575195,\n",
" -26.043100357055664,\n",
" -33.85060119628906,\n",
" -35.53160095214844,\n",
" -36.069400787353516,\n",
" -37.92850112915039,\n",
" -504.0671081542969,\n",
" -533.6621704101562,\n",
" -598.8317260742188,\n",
" -599.1124877929688],\n",
" 'brem_vtx_z_length': 10,\n",
" 'brem_vtx_z': [399.7018127441406,\n",
" 500.7049865722656,\n",
" 637.5723266601562,\n",
" 667.4852905273438,\n",
" 677.0195922851562,\n",
" 709.4874877929688,\n",
" 8576.556640625,\n",
" 9281.2119140625,\n",
" 11183.1640625,\n",
" 11188.4541015625],\n",
" 'endvtx_type': 0,\n",
" 'endvtx_x': nan,\n",
" 'endvtx_y': nan,\n",
" 'endvtx_z': nan,\n",
" 'energy': 9355.866625028413,\n",
" 'eta': 3.237728027535365,\n",
" 'event_count': 2,\n",
" 'fromB': True,\n",
" 'fromD': False,\n",
" 'fromDecay': True,\n",
" 'fromHadInt': False,\n",
" 'fromPV': False,\n",
" 'fromPairProd': False,\n",
" 'fromSignal': True,\n",
" 'fromStrange': False,\n",
" 'isElectron': True,\n",
" 'isKaon': False,\n",
" 'isMuon': False,\n",
" 'isPion': False,\n",
" 'isProton': False,\n",
" 'lost': False,\n",
" 'lost_in_track_fit': False,\n",
" 'match_fraction': 1.0,\n",
" 'mcp_idx': 5488,\n",
" 'mother_id': 511,\n",
" 'mother_key': 5479,\n",
" 'originvtx_type': 2,\n",
" 'originvtx_x': -0.0663,\n",
" 'originvtx_y': -0.0023,\n",
" 'originvtx_z': 40.3966,\n",
" 'p': 9355.866611073503,\n",
" 'phi': -0.8090232566094933,\n",
" 'pid': -11,\n",
" 'pt': 733.3612464536151,\n",
" 'px': 506.17,\n",
" 'py': -530.67,\n",
" 'pz': 9327.08,\n",
" 'scifi_hit_pos_x_length': 13,\n",
" 'scifi_hit_pos_x': [-1402.2215576171875,\n",
" -1448.5460205078125,\n",
" -1495.479736328125,\n",
" -1542.3804931640625,\n",
" -1865.9482421875,\n",
" -1914.599853515625,\n",
" -1915.0545654296875,\n",
" -1963.8216552734375,\n",
" -2012.78173828125,\n",
" -2349.04052734375,\n",
" -2398.658935546875,\n",
" -2448.573486328125,\n",
" -2498.376220703125],\n",
" 'scifi_hit_pos_y_length': 13,\n",
" 'scifi_hit_pos_y': [-470.2232666015625,\n",
" -473.55914306640625,\n",
" -476.8390197753906,\n",
" -480.12762451171875,\n",
" -501.0274963378906,\n",
" -504.04315185546875,\n",
" -504.0709228515625,\n",
" -507.0843200683594,\n",
" -510.0830383300781,\n",
" -530.0570068359375,\n",
" -532.8589477539062,\n",
" -535.61572265625,\n",
" -538.2548217773438],\n",
" 'scifi_hit_pos_z_length': 13,\n",
" 'scifi_hit_pos_z': [7824.40576171875,\n",
" 7894.1943359375,\n",
" 7964.38330078125,\n",
" 8034.171875,\n",
" 8506.294921875,\n",
" 8575.99609375,\n",
" 8576.6455078125,\n",
" 8646.2744140625,\n",
" 8716.0634765625,\n",
" 9191.1904296875,\n",
" 9260.98046875,\n",
" 9331.171875,\n",
" 9400.962890625],\n",
" 'track_p': 1931.9397828451663,\n",
" 'track_pt': 151.36962154532284,\n",
" 'tx': 0.05426886013629132,\n",
" 'ty': -0.056895620065443846,\n",
" 'ut_hit_pos_x_length': 4,\n",
" 'ut_hit_pos_x': [112.31356048583984,\n",
" 114.4996337890625,\n",
" 122.83889770507812,\n",
" 124.72588348388672],\n",
" 'ut_hit_pos_y_length': 4,\n",
" 'ut_hit_pos_y': [-135.26077270507812,\n",
" -138.64544677734375,\n",
" -152.51470947265625,\n",
" -155.91305541992188],\n",
" 'ut_hit_pos_z_length': 4,\n",
" 'ut_hit_pos_z': [2313.153564453125,\n",
" 2368.153564453125,\n",
" 2593.153564453125,\n",
" 2648.153564453125],\n",
" 'velo_hit_pos_x_length': 10,\n",
" 'velo_hit_pos_x': [3.2025206089019775,\n",
" 4.559732437133789,\n",
" 5.917426109313965,\n",
" 7.274953365325928,\n",
" 8.638668060302734,\n",
" 10.008487701416016,\n",
" 11.378168106079102,\n",
" 12.745656967163086,\n",
" 15.399646759033203,\n",
" 19.47773551940918],\n",
" 'velo_hit_pos_y_length': 10,\n",
" 'velo_hit_pos_y': [-3.429784059524536,\n",
" -4.8510894775390625,\n",
" -6.275496482849121,\n",
" -7.6981940269470215,\n",
" -9.124002456665039,\n",
" -10.54817008972168,\n",
" -11.963949203491211,\n",
" -13.374946594238281,\n",
" -16.1297550201416,\n",
" -20.351228713989258],\n",
" 'velo_hit_pos_z_length': 10,\n",
" 'velo_hit_pos_z': [100.64099884033203,\n",
" 125.64099884033203,\n",
" 150.64100646972656,\n",
" 175.64100646972656,\n",
" 200.64100646972656,\n",
" 225.64100646972656,\n",
" 250.64100646972656,\n",
" 275.6409912109375,\n",
" 324.3590087890625,\n",
" 399.3590087890625],\n",
" 'velo_track_idx': 143,\n",
" 'velo_track_tx': 0.054571494460105896,\n",
" 'velo_track_ty': -0.056447889655828476,\n",
" 'velo_track_x': 39.710758209228516,\n",
" 'velo_track_y': -41.2618293762207,\n",
" 'velo_track_z': 770.0}"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tracked[1].tolist()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "env1",
"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.11.5"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}