Update the nb tutorials
"metadata": {},
"outputs": [],
"source": [
- "sensitivity_estimator = SensitivityEstimator(gamma_min=5, n_sigma=3)\n",
+ "sensitivity_estimator = SensitivityEstimator(gamma_min=5, n_sigma=3, bkg_syst_fraction=0.10)\n",
"sensitivity_table = sensitivity_estimator.run(dataset_on_off)"
]
},
"plt.plot(\n",
" t[\"energy\"][is_g], t[\"e2dnde\"][is_g], \"*-\", color=\"blue\", label=\"gamma\"\n",
")\n",
+ "is_bkg_syst = t[\"criterion\"] == \"bkg\"\n",
+ "plt.plot(\n",
+ " t[\"energy\"][is_bkg_syst], t[\"e2dnde\"][is_bkg_syst], \"v-\", color=\"green\", label=\"bkg syst\"\n",
+ ")\n",
"\n",
"plt.loglog()\n",
"plt.xlabel(f\"Energy ({t['energy'].unit})\")\n",
