409 lines
267 KiB
Plaintext
409 lines
267 KiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Welcome to JupyROOT 6.28/04\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"import uproot\n",
|
||
|
"import ROOT\n",
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"import awkward as ak\n",
|
||
|
"import numpy as np\n",
|
||
|
"import math\n",
|
||
|
"from array import array\n",
|
||
|
"%matplotlib inline"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"File = uproot.open(\"/work/cetin/LHCb/reco_tuner/data/ghost_data_B_default_weights.root:PrMatchNN_3e224c41.PrMCDebugMatchToolNN/MVAInputAndOutput\")\n",
|
||
|
"allcolumns = File.arrays()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tracked = allcolumns[allcolumns[\"mc_quality\"]==-1]\n",
|
||
|
"ghost = allcolumns[allcolumns[\"mc_quality\"]==0]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tracked_v_qop = np.abs(ak.to_numpy(tracked[\"mc_end_velo_qop\"]))\n",
|
||
|
"tracked_t_qop = np.abs(ak.to_numpy(tracked[\"mc_end_t_qop\"]))\n",
|
||
|
"\n",
|
||
|
"ghost_v_qop = np.abs(ak.to_numpy(ghost[\"mc_end_velo_qop\"]))\n",
|
||
|
"ghost_t_qop = np.abs(ak.to_numpy(ghost[\"mc_end_t_qop\"]))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABkEAAAImCAYAAADkLC3NAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAADJgUlEQVR4nOz9f3Rj6X3feX5YVW2KcnU1ii1bycg/uoDOmZFn5JQu2HZmMpmy1EB8lN14xuKP2rN2Ntq1C7APNnNyeizCNZpsd59ZGULFk509sxgZoLwzOYln3E3Q+TE/PDbQcvpkMkksAqqsx+7EEm+VLCm2nG4QXV0RRXWxsH+Q9+IBeS9w7+UlCJDv1zk4fHjv89z7gGR33QfP832+M71erycAAAAAAAAAAIAz5sJpdwAAAAAAAAAAAOAkMAkCAAAAAAAAAADOJCZBAAAAAAAAAADAmcQkCAAAAAAAAAAAOJOYBAEAAAAAAAAAAGcSkyAAAAAAAAAAAOBMYhIEAAAAAAAAAACcSUyCAAAAAAAAAACAM4lJEABj0Ww2lc/nVa/XT+we7XZbtVrtxK6PydXtdtXtdk+7GwAAAICk/efTWq0m27ZPuys4BxgPAcBwTIIAZ0yxWNTMzIxmZmZ09epVXb161ff7mZmZsTyU1+t1FYtF1Wo1dTqd2K9v27aWl5eVTqdVrVaH1m02m0qlUu77T6fTnhMz9Xpd6XTardNut4det91uq1gsKp1OK51OH+v9wF+321U+n9fVq1eVSqV09epVpdNpPf/882o2m6GvZ9u2rl69OnTyrFgs6s6dO1peXtbVq1dVLBaP8xYAAAAwhdrttpaXlweeQbPZrDvOMccAtVpN165dUz6fn8gPpk9iTMR4aDwYDwFANEyCAGdMt9tVJpPR9va2+8pkMpKktbU1b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JVIJNxnsrDJ0cM8D57ks/WoMdFpjYfM9pP2bM14yN+k/s4AnG9MggAYyrZtN+Hb+vr6kZUr5iqmIPL5vCzLUj6fP9ImyLWcc51OJ/B7GMV5WCyXy6rX61pYWDiyQmVUv0bxStbm3GN+ft6zTdj7RrmHwzkfdHLJSaLYbDZl27ZeeeWVIwkjk8mk7t27505epdPpYyUC9Po5VKtV92/SXGEVx+8sqkn+vQEAACAYczwwLNLBNOrZzU+Q58G4n60PGzYmOq3xUJR7j+vZmvGQv0n9nQE435gEATBUNpvV/Py8b9ius/JifX3d8/zhB59EIuHWPRwe6zy4mCHFpmaz6dYxt+g6rlwu54al37p1y/PhdVS//Dg/H686zsNeKpXybOs8+G1tbQ3t/3Hu4XAmldLp9NB6Jic8vlqteoYx27Y9EK4t6cjPNozDId6Ocrnslp33G/bvMk6T/nsDAABAMM5zpvm8Gacwz4NxP1sfNmxMdFrjIWmyn60ZD3mb5N8ZgPOLSRDgHAkbPWHbtvvg5nAeRpxrOWGqtVrtyMNLsVj0XLmRTCZVrVZl2/bAQ6ATRl0sFo+ExjorZsz7ea0Y8ToWhJkDxNzHNWi//CSTSVmW5f4sTZubm0okEgNbb3nd986dO0fel/n9ce7hqNfrgeqZLMty97n1eiA3H8aXlpbcUHGzj2Eevp18MH4SiYT7txrl7zIuk/57AwAAQDCrq6vu85q51VAQb731lqThY7Awz4NBnq2l6OMhyX9MdFrjIfPek/hszXjI2yT/zgCcX0yCAOeA80Dh90DsHD983nkwqtfrqtVqqtVq7sN/u912H8Cch7tsNqvl5WUVi0Wl02mlUin3IezwPXK5nDKZjGq1mhu2m0gk3IiTdDqt5eVl3blzR9lsVltbW8pkMkfqOOHHTr9s2x4IAw7KeWjyengK0q9hnL1gzQmfbrercrmstbU1331ak8mkO/h4/vnnVa/
|
||
|
"text/plain": [
|
||
|
"<Figure size 2000x600 with 4 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
|
||
|
"\n",
|
||
|
"a0=ax0.hist2d(tracked_v_qop[:180000], tracked_t_qop[:180000], bins=200, cmap=plt.cm.jet, cmin=1)\n",
|
||
|
"ax0.set_xlabel(\"Velo qop\")\n",
|
||
|
"ax0.set_ylabel(\"Scifi qop\")\n",
|
||
|
"ax0.set_title(\"Tracked Velo qop vs. Scifi qop\")\n",
|
||
|
"plt.colorbar(a0[3],ax=ax0)\n",
|
||
|
"\n",
|
||
|
"a1=ax1.hist2d(ghost_v_qop[:180000], ghost_t_qop[:180000], bins=200, cmap=plt.cm.jet, cmin=1)\n",
|
||
|
"ax1.set_xlabel(\"Velo qop\")\n",
|
||
|
"ax1.set_ylabel(\"Scifi qop\")\n",
|
||
|
"ax1.set_title(\"Ghost Velo qop vs. Scifi qop\")\n",
|
||
|
"plt.colorbar(a1[3],ax=ax1)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plt.show()\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmEAAAHJCAYAAADNUu5VAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA73UlEQVR4nO3dT4wj6WH399+8FjTuZLCu7tXFiA+a4kkHAYtiC75lDlOFPRkQ1OQsAsvwQRgSQh8MLGyW25eZuZgowofYAAGTjQAOIATxkC0YMBJHJtfA+L1E2WZ53leAnShgtYPohV8k2u7axTitlmRVDqOq5f9ms9l8muzvB2jskPVU1fPU9JC/fZ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hXvCyuWyHj58OHGb4zjK5/P6oz/6o6X0hE3Sbrdl23bW49Tv9yVJOzs7E8vHcbzSMvN69OjR3GUnefbsmZ4/f36tYwAAcFdUq1W9ePHCdDUkXWM48vHjxzO327atP/zDP7yxEFatVoeGRHO5nCTp9PR0an1WWWZer169uta8ufv37y+8LwAAd83BwYE+/PDDhfd//fr1tTtQUguHsFl3PkZRJN/3Fz30pXzf1+Hh4VDYSf88rRfKtu2VlpnXgwcPrrWaLwAAmN/9+/ev1YFxnccgjVo4hDmOo3v37k3dniSJarXaooefqtlsyvO8sccIpHcmpndLptLX+Xx+pWUAAABmWTiEWZalJ0+eyLKssW3vvvuuHMe5dMjyqtrttqTxuyXTFfQdx1Gn0xl6XFK325WkrK6rKgMAADDLwiHs8PBQe3t7y6zLzAnt3W5X1WpV5XJZzWYze7/
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"tracked_dQop = np.abs( tracked_v_qop[:180000]-tracked_t_qop[:180000] )\n",
|
||
|
"ghost_dQop = np.abs( ghost_v_qop[:180000]-ghost_t_qop[:180000] )\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plt.hist(tracked_dQop, bins=100, label=\"tracked\", alpha=0.6, density=True)\n",
|
||
|
"plt.hist(ghost_dQop, bins=100, label=\"ghosts\", alpha=0.6, density=True)\n",
|
||
|
"plt.xlabel(\"Velo qop - Scifi qop\")\n",
|
||
|
"plt.ylabel(\"a.u.\")\n",
|
||
|
"plt.title(\"Velo qop - Scifi qop\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"#plt.colorbar(h2[3])\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 28,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tracked_t_tx = ak.to_numpy(tracked[\"mc_end_t_tx\"])\n",
|
||
|
"tracked_t_ty = ak.to_numpy(tracked[\"mc_end_t_ty\"])\n",
|
||
|
"\n",
|
||
|
"tracked_t_teta2 = tracked_t_tx * tracked_t_tx + tracked_t_ty * tracked_t_ty\n",
|
||
|
"\n",
|
||
|
"tracked_v_tx = ak.to_numpy(tracked[\"mc_end_velo_tx\"])\n",
|
||
|
"tracked_v_ty = ak.to_numpy(tracked[\"mc_end_velo_ty\"])\n",
|
||
|
"tracked_v_teta2 = ak.to_numpy(tracked[\"mc_teta2\"])\n",
|
||
|
"\n",
|
||
|
"ghost_t_tx = ak.to_numpy(ghost[\"mc_end_t_tx\"])\n",
|
||
|
"ghost_t_ty = ak.to_numpy(ghost[\"mc_end_t_ty\"])\n",
|
||
|
"\n",
|
||
|
"ghost_t_teta2 = ghost_t_tx * ghost_t_tx + ghost_t_ty * ghost_t_ty\n",
|
||
|
"\n",
|
||
|
"ghost_v_tx = ak.to_numpy(ghost[\"mc_end_velo_tx\"])\n",
|
||
|
"ghost_v_ty = ak.to_numpy(ghost[\"mc_end_velo_ty\"])\n",
|
||
|
"ghost_v_teta2 = ak.to_numpy(ghost[\"mc_teta2\"])"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 26,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABi4AAAImCAYAAADEwHIwAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAACmNElEQVR4nOz9f3Sj2X3feX5YVa3qalVXodht64dlSQX0ZGIlG7ceUHJsx+6VGpAde3zOREWynUxm4sQqwAon2U0fieja7Byp92RNoeJJZmcGkUA6Z+WsM5suouxdO44dAa1s20n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DS59b8vl8+++t/rv+DAzLIN836fif/YNKpZIajYa35foAAAAYvdbY9+AY2CeXWMH3eP+wo2KiKMRDEjGRK+IhANOMiQtgzLiuUqjX6+3BX0trYNZqq7U8d3V1tWvgk8vljE/PxONxFYtF1ev1joFka6lqLpfrWobaelLm4PuZnto5br9Nm4M5LQ4/IdJLv2zi8biCIGhfy4M2NjYUi8U6tqWyCYKgvWeraQB9cPA8Pz/fXkJ98D1dBsutXCI2sVis/XPRz89AWA5+/12/bwdf28vPfkulUtHzzz9vHKT7fAoOAAAAw7W8vNweyx/cFqgXr7zyiqSjYzCXWKGX8b7Ufzwk2WOiKMRDEjFRL4iHAGAfExfAmGgNzmyD2Fb54fOtwVWpVNLq6qpWV1fbA/ZardYexLUGiOl0WgsLC8rlckomk0okEu2BzuH3yGQySqVSWl1dbS+xjcVi7cFOMpnUwsKCrl69qnQ6rc3NTaVSqa46raXCrX7V6/WOJbu9ag2WTYPmXvp
|
||
|
"text/plain": [
|
||
|
"<Figure size 2000x600 with 4 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"\n",
|
||
|
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
|
||
|
"\n",
|
||
|
"a0=ax0.hist2d(tracked_v_teta2, tracked_t_teta2, bins=100, cmap=plt.cm.jet, cmin=1, range=[[0,0.3],[0,1.3]],cmax=8000)\n",
|
||
|
"ax0.set_xlabel(\"Velo teta2\")\n",
|
||
|
"ax0.set_ylabel(\"Scifi teta2\")\n",
|
||
|
"ax0.set_title(\"Tracked Velo vs. Scifi teta2\")\n",
|
||
|
"plt.colorbar(a0[3],ax=ax0)\n",
|
||
|
"\n",
|
||
|
"a1=ax1.hist2d(ghost_v_teta2, ghost_t_teta2, bins=100, cmap=plt.cm.jet, cmin=1, range=[[0,0.3],[0,1.3]], cmax=8000)\n",
|
||
|
"ax1.set_xlabel(\"Velo teta2\")\n",
|
||
|
"ax1.set_ylabel(\"Scifi teta2\")\n",
|
||
|
"ax1.set_title(\"Ghost Velo vs. Scifi teta2\")\n",
|
||
|
"plt.colorbar(a1[3],ax=ax1)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plt.show()\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 29,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjMAAAHJCAYAAABws7ggAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAxi0lEQVR4nO3db4gjeWLf/0/H5todN7PVvQfBYMNNiYScwbBU9ZKHAxmJhYTA4pZmCD4wwYxkI34sLJyU9pOZfWKhzj1IHghOaj9wwj7ZlvowLEk4S2syF0ww0ypPchAnF1TjH7f5Ob9w162d9KVvNvZVHsxWbatbrT/V+vfter9A7LaqvlXfb9do9Jnv91vfWguCIBAAAICh/sayKwAAAHAThBkAAGA0wgwAADAaYQYAABiNMAMAAIxGmAEAAEYjzAAAAKMRZgAAgNEIMwASr9/vq9/vL7saAGIizAAz1ul0lEqltLa2prW1Nbmuq1ardWW/Vqsl13WjfTzPu/aYnuepXC7LdV25rjvP6i+U7/vK5XLa2trS1taWcrncXENFv99XoVDQ1taWUqmUtra25Lqu7t+/r06nM/XxfN/X1taWGo3GtfuUy2Xt7+9H7SyXyzdpwtwt+poAs0CYAWYsnU6r2+1GPxcKBWWz2Sv7ZbNZFQoFWZalbrcrx3GuPabjOHr48OHIwHMTvu/H/sKKW9bzvCiYPXjwQNLrgHf37t25fXnev39fx8fHevHihXq9nl68eCHbtuV5nnzfn/p4YY9Or9cbui2VSunhw4cqlUpqNp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8wDgNrscZiq//mtLqglMN+n391weNHn37l3V63U
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from numpy import abs\n",
|
||
|
"\n",
|
||
|
"tracked_dteta2 = tracked_v_teta2-tracked_t_teta2\n",
|
||
|
"ghost_dteta2 = ghost_v_teta2-ghost_t_teta2\n",
|
||
|
"\n",
|
||
|
"plt.hist(tracked_dteta2, bins=100, label=\"tracked\", alpha=0.6, density=True)\n",
|
||
|
"plt.hist(ghost_dteta2, bins=100, label=\"ghosts\", alpha=0.6, density=True)\n",
|
||
|
"plt.xlabel(\"dteta2\")\n",
|
||
|
"plt.ylabel(\"a.u.\")\n",
|
||
|
"plt.title(\"Velo teta2 - Scifi teta2\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"#plt.colorbar(h2[3])\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 39,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABlkAAAImCAYAAADQVezRAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAACQjUlEQVR4nO39f5AjaX7fd36qu7m9RTZnMLW7JG9l0TtZdNgzPp+GidpZS7JuRA6gtazT+cxC9VjBDQdpaQomEXaEJ8SG+iLudsYXRyw6GOGLsGEKaNniWcs7TwNF/TpRooAVPVZIsmcLybZ0N0NRKuxwSQ653NlqzGxza3qmq3F/VAPTKGRW4Uk8mchMvF8RiJnOfPDgQQKZeL715PN810aj0UgAAAAAAAAAAAAwcmHZDQAAAAAAAAAAAEg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gOM44dH46pxbFEoFEa7u7uj3d3dUb/fn6pznjjhvL7+aUmIj6KIjRZ5b37tIz4CgHisjUajUbzDOgAA2Nfr9dRutydT8QEAAABgVREfAUB8WC4MAJAJzWYzdAJNAAAAAMgS4iMAiM+lZTcAAICwer2eHMeZJNx0XXfZTQIAAACApSA+AoDlYJAFAJBKvV5PxWJx8u+Dg4MltgYAAAAAlof4CACWh5wsAIDUqlarGgwGun79OndpAQAAAFhpxEcAsBwMsgAAAAAAAAAAAIRA4nsAAAAAAAAAAIAQyMkSkXfeeUe/8iu/os985jNaX19fdnMAAACMHB0d6a233tLnP/95ffKTn1x2cyRJX//61/XOO+9EUvcnP/lJ/eAP/mAkdQP
|
||
|
"text/plain": [
|
||
|
"<Figure size 2000x600 with 4 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"\n",
|
||
|
"tracked_dtx = tracked_v_tx - tracked_t_tx\n",
|
||
|
"tracked_dty = tracked_v_ty - tracked_t_ty\n",
|
||
|
"\n",
|
||
|
"ghost_dtx = ghost_v_tx - ghost_t_tx\n",
|
||
|
"ghost_dty = ghost_v_ty - ghost_t_ty\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"fig, ((ax0, ax1)) = plt.subplots(nrows=1, ncols=2, figsize=(20,6))\n",
|
||
|
"\n",
|
||
|
"a0=ax0.hist2d(tracked_dtx, tracked_dty, bins=100, cmap=plt.cm.jet, cmin=1)\n",
|
||
|
"ax0.set_xlabel(\"dtx\")\n",
|
||
|
"ax0.set_ylabel(\"dty\")\n",
|
||
|
"ax0.set_title(\"tracked dtx vs dty\")\n",
|
||
|
"plt.colorbar(a0[3],ax=ax0)\n",
|
||
|
"\n",
|
||
|
"a1=ax1.hist2d(ghost_dtx, ghost_dty, bins=100, cmap=plt.cm.jet, cmin=1)\n",
|
||
|
"ax1.set_xlabel(\"dtx\")\n",
|
||
|
"ax1.set_ylabel(\"dty\")\n",
|
||
|
"ax1.set_title(\"Ghost dtx vs dty\")\n",
|
||
|
"plt.colorbar(a1[3],ax=ax1)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 40,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkIAAAGzCAYAAADDgXghAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA28ElEQVR4nO3dX4gj/X3v+U9vDk97Ns08Gj2+MXsuPKUrP2AYSv1w7nYOPCoeWAiYtNRzER/CEkaV0BeGIe7K5GZmbiIkcpNALy51DuSAb6ZVHQKGc45ROTA+5MJMS55dg7PrpWuyrJfsha2pZ2ifTj9JVnvRp8qtbrW6Wn9LqvcLhB+p6vdTdY1b+vb39/t9f2v9fr8vAACADPrvFn0BAAAAi0IgBAAAMotACAAAZBaBEAAAyCwCIQAAkFkEQgAAILMIhAAAQGYRCAEAgMz6V4u+gDT7xS9+oe9///v66le/qjt37iz6cgAAQAKnp6f6+7//e3322Wf68pe/PPJcAqERvv/97+ub3/zmoi8DAACM4bvf/a5+53d+Z+Q5BEIjfPWrX5V0fiO/9rWvDRzb2trS4eHh2H2fnJzo4cOHevXqlTY2NsbqY9JrmEYfq3AfFn0fp3EPJr2GabSftA/uwznuw7k0fDZMo49V+IycRh/zvg9/93d/p29+85vx9/hI/Rn5/d///f5f/MVfzKr7ueh0On1J/U6nc+XY1772tYn6/vzzz/uS+p9//vnYfUx6DdPoYxXuw6Lv4zTuwaTXMI32k/bBfTjHfTiXhs+GafSxCp+R0+hj3vdh1Pf3ZTPJCL19+1au6+rg4EC/93u/N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1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plt.hist(abs(tracked_dtx), bins=100, label=\"tracked\", alpha=0.6, density=True)\n",
|
||
|
"plt.hist(abs(ghost_dtx), bins=100, label=\"ghosts\", alpha=0.6, density=True)\n",
|
||
|
"plt.xlabel(\"dtx\")\n",
|
||
|
"plt.ylabel(\"a.u.\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"#plt.colorbar(h2[3])\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 41,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAj0AAAGzCAYAAADEw6Y0AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAtIUlEQVR4nO3dQYwb+2Hf8d826VurXehRa1+MXvyGpxwMCMN9yKFAdTAH72QgsMgVigTIIRDHwR4MCPCONxdJKBBiiBzqwwIebg4p+lDgiSNfjDYwSAeQCxQwtKSV+NK62FGApnAPftRIWFfZl6TTg97MW3K5u0MuhxzufD/AQiLn/5+Z/ZMif/rPf/7/tSiKIgEAAFxz/2zZJwAAALAIhB4AAFAIhB4AAFAIhB4AAFAIhB4AAFAIhB4AAFAIhB4AAFAIhB4AAFAIv73sE8iLX//61/rxj3+sr33ta7px48ayTwcAAKTw9u1b/e3f/q0++ugjfeUrX7mwLKHncz/+8Y/1B3/wB8s+DQAAMIOPP/5Yv//7v39hGULP5772ta9Jkr761a9qfX19Ypk3b96o2+1Ove/j42PduXNHz54908bGxtT17969q6dPn05dbxXr0lbp0Vbp0Vbp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AAAommm+v3MzpgcAACBLuRrTkwd3797VjRs3Jm7b2dnRzs7Ogs8IAIBi29/f1/7+/sRtb9++Tb0fQs+Yp0+fZnJ5CwAAzOaiTof48lYaXN4CAACFQOgBAACFQOgBAACFQOgBAACFQOgBAACFQOgBAACFQOgBAACFQOgBAAC
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plt.hist(abs(tracked_dty), bins=100, label=\"tracked\", alpha=0.6, density=True)\n",
|
||
|
"plt.hist(abs(ghost_dty), bins=100, label=\"ghosts\", alpha=0.6, density=True)\n",
|
||
|
"plt.xlabel(\"dtx\")\n",
|
||
|
"plt.ylabel(\"a.u.\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"#plt.colorbar(h2[3])\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 42,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGzCAYAAAAi6m1wAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAtI0lEQVR4nO3dTWwj6WHm8UebYGSthW622pcAPkwXTz4YaFTJyG37MCzMycDAIjUIYiCHoFkJeBigAavQARbdcwlBbQ7rAwGTyiHAziUiZRiYQ+CQE6A3yMFosdILH7JrQNUOdhZZLGyquiEvrdnE2kNP0U2JosjiV7Hq/wOEpFl8q16Wa8RH7+faxcXFhQAAABLk3y27AgAAALNGwAEAAIlDwAEAAIlDwAEAAIlDwAEAAIlDwAEAAIlDwAEAAIlDwAEAAInzu8uuwLL84he/0I9//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qtdu4GXaZpD5/mbpjlyoBQAYLnStp1FsVhUrVbT4eGhJPX3WQy/31zXHdgzMZPJqFaryXXd/pTu8L2Hh4d6/vy58vm89vb2ZBiGyuWyms2mTNNUpVLpt8g0m83+zKhw9lQ+n+93N7muq+fPn/d7Ou7evduvW9jI8PaA5Eqlomw2q0qlItu2+9+3zWZT+Xx+bruVz8raRbiqUMp4nndlo04AizFqxd8oXU4/+vreWF+il687zrUm3aohbV/mwKKN+/0dmy4qAACAWYlNFxUAzNWnH8VuZ3IA80MLDgAASBwCDgAASBy6qABghMsDkScddAxgOQg4AJaGRfoAzAsBB8DcjZoWDgDzwBgcAACQOKlvwdnZ2dHGxsb
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plt.hist(tracked_dtx-tracked_dty, bins=100, label=\"tracked\", alpha=0.6, density=True)\n",
|
||
|
"plt.hist(ghost_dtx-ghost_dty, bins=100, label=\"ghosts\", alpha=0.6, density=True)\n",
|
||
|
"plt.xlabel(\"dtx\")\n",
|
||
|
"plt.ylabel(\"a.u.\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"#plt.colorbar(h2[3])\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tracked_zmag = tracked[\"mc_zMag\"]\n",
|
||
|
"ghost_zmag = ghost[\"mc_zMag\"]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"plt.hist(tracked_zmag, bins=100, label=\"tracked\", alpha=0.6, density=True)\n",
|
||
|
"plt.hist(ghost_zmag, bins=100, label=\"ghosts\", alpha=0.6, density=True)\n",
|
||
|
"plt.xlabel(r\"$z_{mag}$\")\n",
|
||
|
"plt.ylabel(\"a.u.\")\n",
|
||
|
"plt.legend()\n",
|
||
|
"#plt.colorbar(h2[3])\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"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
|
||
|
}
|