2024-02-12 15:57:23 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-13 09:34:22 +01:00
|
|
|
"execution_count": 1,
|
2024-02-12 15:57:23 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"import uproot\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"import numpy as np\n",
|
|
|
|
"import mplhep\n",
|
|
|
|
"\n",
|
|
|
|
"mplhep.style.use([\"LHCbTex2\"])\n",
|
|
|
|
"plt.rcParams[\"savefig.dpi\"] = 600\n",
|
|
|
|
"# %matplotlib inline"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-19 15:41:09 +01:00
|
|
|
"execution_count": 2,
|
2024-02-12 15:57:23 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2024-02-21 08:34:33 +01:00
|
|
|
"train_tree = uproot.open(\n",
|
|
|
|
" {\n",
|
|
|
|
" \"/work/cetin/LHCb/reco_tuner/nn_electron_training/result_e_sig_filter_bkg/matching_ghost_mlp_training.root\": \"MatchNNDataSet/TrainTree\"\n",
|
|
|
|
" }\n",
|
|
|
|
")\n",
|
|
|
|
"test_tree = uproot.open(\n",
|
|
|
|
" {\n",
|
|
|
|
" \"/work/cetin/LHCb/reco_tuner/nn_electron_training/result_e_sig_filter_bkg/matching_ghost_mlp_training.root\": \"MatchNNDataSet/TestTree\"\n",
|
|
|
|
" }\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"train_array = train_tree.arrays()\n",
|
|
|
|
"test_array = test_tree.arrays()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-19 15:41:09 +01:00
|
|
|
"execution_count": 3,
|
2024-02-12 15:57:23 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2024-02-19 15:41:09 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAOWCAYAAAANzz7PAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9XWwjaZof+P6pqu6pnvFIQaUxQK4ETClYaWN3vTupoLLvFnCXyG4bx8A5PRVUtoEBGrtdiqi8W2i6yFTZu4AXdimDVaWzV54Mqsrrho2dkYKZdbPnbE8ylLWwz8W6S4ysxu7iHJ8qRmYDKQswnGIk5/R0TXeX4lxoIzr4/RVkBJP/H0Bkigq+8cQHQ4yHz/u+Cdd1XRAREREREREREb3gFqIOgIiIiIiIiIiIaBqYCCMiIiIiIiIiornARBgREREREREREc0FJsKIiIiIiIiIiGguMBFGRERERERERERzgYkwIiIiIiIiIiKaC0yEERERERERERHRXGAijIiIiIiIiIiI5gITYURERERERERENBeYCCMiIiIiIiIiornARBgREREREREREc0FJsKIiIiIiIiIiGguMBFGRERERERERERzgYkwIiIiIiIiIiKaC0yEERERERERERHRXGAijIiIiIiIiIiI5gITYURERERERERENBeYCCMiIiIiIiIiornARBgREREREREREc0FJsKIiIiIiIiIiGguMBFGRERERERERERzgYkwIiIiIiIiIiKaC0yEERERERERERHRXGAijIiIiIiIiIiI5gITYURERERERERENBeYCCMiIiIiIiIiornARBgREREREREREc0FJsKIaGiO40QdAhEREREREdHQmAgjooFYloVCoYBkMont7e2owyEiIiIiIiIa2stRB0BE47MsC4eHh7AsC7Zt4/z8HI7jQBAEiKKI5eVlSJKEbDaLTCbT9vpcLgfbtlGtVv3nHMeBaZo4PDyEaZqsAiMiIiIiIqKZl3Bd1406CKJSqQRVVYd+nSRJTcmbUSUSiaFfIwgC6vV6x9/lcjmUy+Wh26xUKh0TVZ04joO9vT0Ui8Wh1yN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u7Te1LkgTDMABcxr69vd30WkEQIElS24QO3nPB3w17LDyFQgGqqkIQBNRqNeTzeUiSBFEUIcsyqtWqH3O5XEYqlWo6N87Pz5HNZtvOyZOTE6ytrfldemu1GnRd94+V4zgc/J+IiIiI6EURdSaOqBvErCJM07SR22utyEGfirDWqhrv4VUkTVtrZVOnaptuvAqjcbej2z4Zpc1gW/2qkFqrhLpV5bVWrgUrw4KC+6PbuiuVykAVXPV6PdSKMFmW+57v/doZNHbPoMciWAnW71gHK766VS8GYxQEoeNxbT13p3X9ISIiIiKiyWFFGFEMxb0ibBitsz8Co21HPp9HvV7vWgXlzVQ5SNudYuomOEGBoihdx0ZrnSmxWxVgMH7HcWJ7TLudg8HnwxgUf9BjUSgU/PUrijLQssBllVunCRqC23FwcNDxuLaeaycnJwPFSkRERERE8cVEGFEMdUsO1Gq1KUcyvk4JlWfPno3clmEYqFarbV3wgMukx+bmZqjJpUG7gQaP2TBdR+M0w+LBwQE0TYNhGH2TTcD0ErOlUslf1yCJM0VRmo7BMBM0tAquL07HioiIiIiIRsNEGFEMdas66lTZEnedEhdXrlwZq01JkrqOvWZZVtv4VdMw6oye5+fn4QYyBkEQkM/nu47JNszYbmGqVCr+/wetIAu+h2bxfUNERERERJPBRBhRTHWqeLJtO7Zd6YYxTNfEXhRFQa1Wa0tClcvlWCc/Rk2aTZtt2yiVSjBNs+NA+NOMY1it59i
|
2024-02-12 15:57:23 +01:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1200x900 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"train_bkg = train_array[train_array.classID == 1]\n",
|
|
|
|
"train_sig = train_array[train_array.classID == 0]\n",
|
|
|
|
"test_bkg = test_array[test_array.classID == 1]\n",
|
|
|
|
"test_sig = test_array[test_array.classID == 0]\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"plt.hist(\n",
|
|
|
|
" train_sig.matching_mlp,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"plt.hist(\n",
|
|
|
|
" train_bkg.matching_mlp,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"mplhep.histplot(\n",
|
|
|
|
" np.histogram(np.array(test_sig.matching_mlp), 50),\n",
|
|
|
|
" histtype=\"errorbar\",\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" yerr=True,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" marker=\"^\",\n",
|
|
|
|
" markersize=7,\n",
|
|
|
|
" label=\"test sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"mplhep.histplot(\n",
|
|
|
|
" np.histogram(np.array(test_bkg.matching_mlp), 50),\n",
|
|
|
|
" histtype=\"errorbar\",\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" yerr=True,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"test sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"plt.xlabel(\"neural network response\")\n",
|
|
|
|
"plt.ylabel(\"Number of tracks (normalised)\")\n",
|
|
|
|
"mplhep.lhcb.text(\"Simulation\", loc=0)\n",
|
|
|
|
"plt.legend(loc=\"upper center\")\n",
|
2024-02-21 08:34:33 +01:00
|
|
|
"# plt.savefig(\"/work/cetin/LHCb/reco_tuner/thesis/filtered_NN_elec_response.pdf\",\n",
|
|
|
|
"# format=\"PDF\")\n",
|
|
|
|
"plt.show()"
|
2024-02-12 15:57:23 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-19 15:41:09 +01:00
|
|
|
"execution_count": 4,
|
2024-02-12 15:57:23 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2024-02-21 08:34:33 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABYcAAAXuCAYAAAAwc5d9AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9T2wr+33nfX4o36Tvk8S6Jd3uzGgkYHyK9jo2qRPgAZ4ewBYZDDCr7pDneJdFItJeDUaByXO8SXpjXdKxgJlFEvK4F1kNziHtrJ4Hmcs614Pu4GkgR6yb3szGZp0bjPRwEPSV6tJJx0na4izUVSYpiir+KVaRfL8A4ZDSj7/6VbFK58evvvX9Jfr9fl8AAAAAAAAAgI2yFfUAAAAAAAAAAADLR3AYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgAxEcBgAAAAAAAIANRHAYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgAxEcBgAAAAAAAIANRHAYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgAxEcBgAAAAAAAIANRHAYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgAxEcBgAAAAAAAIANRHAYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgAxEcBgAAAAAAAIANRHAYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgAxEcBgAAAAAAAIANRHAYAAAAAAAAADYQwWEAAAAAAAAA2EAEhwEAAAAAAABgA70T9QCAX/3VX9XPfvYzfe5zn9Ov//qvRz0cAACwJv72b/9WP//5z/Xuu+/q7//+76MeDmKIeSgAAAj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6 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"fig, axes = plt.subplots(3, 2, figsize=(14, 15), sharey=False)\n",
|
|
|
|
"# 0,0\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[0, 0].hist(\n",
|
|
|
|
" train_sig.chi2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 0].hist(\n",
|
|
|
|
" train_bkg.chi2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"axes[0, 0].set_xlabel(r\"$\\chi^{2}_{\\mathrm{match}}$\")\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[0, 0].legend(prop={\"size\": 20})\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"# 1,0\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[1, 0].hist(\n",
|
|
|
|
" train_sig.distX,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 0].hist(\n",
|
|
|
|
" train_bkg.distX,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"axes[1, 0].set_xlabel(r\"$D_{x}$ [mm]\")\n",
|
2024-02-21 08:34:33 +01:00
|
|
|
"axes[1, 0].set_ylabel(\"Number of tracks (normalised)\", va=\"bottom\", ha=\"center\")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"# 0,1\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[0, 1].hist(\n",
|
|
|
|
" train_sig.teta2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0.0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 1].hist(\n",
|
|
|
|
" train_bkg.teta2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0.0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"axes[0, 1].set_xlabel(r\"$t_{x}^{2}+t_{y}^{2}$\")\n",
|
|
|
|
"# 1,1\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[1, 1].hist(\n",
|
|
|
|
" train_sig.distY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 1].hist(\n",
|
|
|
|
" train_bkg.distY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"axes[1, 1].set_xlabel(r\"$D_{y}$ [mm]\")\n",
|
|
|
|
"# 2,0\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[2, 0].hist(\n",
|
|
|
|
" train_sig.dSlope,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[2, 0].hist(\n",
|
|
|
|
" train_bkg.dSlope,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"axes[2, 0].set_xlabel(r\"$|\\Delta t_{x}^{\\mathrm{match}}|$\")\n",
|
|
|
|
"# 2,1\n",
|
2024-02-19 15:41:09 +01:00
|
|
|
"axes[2, 1].hist(\n",
|
|
|
|
" train_sig.dSlopeY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[2, 1].hist(\n",
|
|
|
|
" train_bkg.dSlopeY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
2024-02-12 15:57:23 +01:00
|
|
|
"axes[2, 1].set_xlabel(r\"$|\\Delta t_{y}^{\\mathrm{match}}|$\")\n",
|
2024-02-21 08:34:33 +01:00
|
|
|
"# plt.savefig(\n",
|
|
|
|
"# \"/work/cetin/LHCb/reco_tuner/thesis/filtered_NN_elec_variables.pdf\",\n",
|
|
|
|
"# format=\"PDF\")\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 9,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAACdYAAAUmCAYAAACRBHQVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzdT2wjZ57f/w81k2CBZNQldRJAkICxiu7zuIvq3McsOucZk+q57WEs0s6ROxZbvuzNatIzOu6abM9hb5FIe64bs9pz+Z22xWrvNRmWOkA3CARrqZqbAIsEK/4OStWSlETx/x/p/QKIJsWnnudbxaJU1fWt7xNptVotAQAAAAAAAAAAAAAAAAAASdLSrAMAAAAAAAAAAAAAAAAAAGCekFgHAAAAAAAAAAAAAAAAAEAbEusAAAAAAAAAAAAAAAAAAGhDYh0AAAAAAAAAAAAAAAAAAG1IrAMAAAAAAAAAAAAAAAAAoA2JdQAAAAAAAAAAAAAAAAAAtCGxDgAAA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lKIZv4VLrAtsbm5qZ2dHOzs7sw4FAAAAAAAAAAAAmBvn5+d68+ZNzzbNZnNK0QAAAOC2ajabNx53LrKFTawDAAAAAAAAAAAAcNnS0pLW1tZ6tlleXp5SNAAAALitlpeXtb6+3rNNo9HQ+fn5lCIar1uZWLe3t6ePP/5YP/3pT2cdCgAAAAAAAAAAADBVa2trev369azDAAAAwC2XzWaVzWZ7ttnY2FjYqnYLl1j3zTffqFqt6vj4WHt7e/rlL395qU0sFtPDhw/1wQcfKJ/Pk2B3S2SzWTWbTe6gAgbA9wYYDt8
|
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 2500x1300 with 6 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"fig, axes = plt.subplots(2, 3, figsize=(25, 13), sharey=False)\n",
|
|
|
|
"# 0,0\n",
|
|
|
|
"axes[0, 0].hist(\n",
|
|
|
|
" train_sig.chi2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 0].hist(\n",
|
|
|
|
" train_bkg.chi2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 0].set_xlabel(r\"$\\chi^{2}_{\\mathrm{match}}$\")\n",
|
|
|
|
"axes[0, 0].legend(prop={\"size\": 20})\n",
|
|
|
|
"\n",
|
|
|
|
"# 0,1\n",
|
|
|
|
"axes[0, 1].hist(\n",
|
|
|
|
" train_sig.teta2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0.0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 1].hist(\n",
|
|
|
|
" train_bkg.teta2,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0.0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 1].set_xlabel(r\"$t_{x}^{2}+t_{y}^{2}$\")\n",
|
|
|
|
"# 0,2\n",
|
|
|
|
"axes[0, 2].hist(\n",
|
|
|
|
" train_sig.distX,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 2].hist(\n",
|
|
|
|
" train_bkg.distX,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[0, 2].set_xlabel(r\"$D_{x}$ [mm]\")\n",
|
|
|
|
"axes[0, 0].set_ylabel(\"Number of tracks (normalised)\", va=\"bottom\", ha=\"center\")\n",
|
|
|
|
"# 1,0\n",
|
|
|
|
"axes[1, 0].hist(\n",
|
|
|
|
" train_sig.distY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 0].hist(\n",
|
|
|
|
" train_bkg.distY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 100),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 0].set_xlabel(r\"$D_{y}$ [mm]\")\n",
|
|
|
|
"# 2,0\n",
|
|
|
|
"axes[1, 1].hist(\n",
|
|
|
|
" train_sig.dSlope,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 1].hist(\n",
|
|
|
|
" train_bkg.dSlope,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 1].set_xlabel(r\"$|\\Delta t_{x}^{\\mathrm{match}}|$\")\n",
|
|
|
|
"# 2,1\n",
|
|
|
|
"axes[1, 2].hist(\n",
|
|
|
|
" train_sig.dSlopeY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#107E7D\",\n",
|
|
|
|
" label=\"training sample, true pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 2].hist(\n",
|
|
|
|
" train_bkg.dSlopeY,\n",
|
|
|
|
" bins=50,\n",
|
|
|
|
" range=(0, 0.02),\n",
|
|
|
|
" alpha=0.5,\n",
|
|
|
|
" density=True,\n",
|
|
|
|
" log=False,\n",
|
|
|
|
" color=\"#F05342\",\n",
|
|
|
|
" label=\"training sample, wrong pairs\",\n",
|
|
|
|
")\n",
|
|
|
|
"axes[1, 2].set_xlabel(r\"$|\\Delta t_{y}^{\\mathrm{match}}|$\")\n",
|
|
|
|
"# plt.savefig(\n",
|
|
|
|
"# \"/work/cetin/LHCb/reco_tuner/thesis/filtered_NN_elec_variables_landscape.pdf\",\n",
|
|
|
|
"# format=\"PDF\",\n",
|
|
|
|
"# )\n",
|
|
|
|
"plt.show()"
|
2024-02-12 15:57:23 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|