From 66c49d67d4692562d0db62c3d27d33d4ac659e4f Mon Sep 17 00:00:00 2001 From: Felix Metzner <felix.metzner@kit.edu> Date: Wed, 17 Apr 2024 13:36:41 +0200 Subject: [PATCH] Updating notebooks. --- .../testing_fit_routine_rdstar.ipynb | 164 +++++++++++++++++- 1 file changed, 160 insertions(+), 4 deletions(-) diff --git a/rdstar/offline_analysis/fitting/dedicated_fit_approach/notebooks/rdstar_fits/testing_fit_routine_rdstar.ipynb b/rdstar/offline_analysis/fitting/dedicated_fit_approach/notebooks/rdstar_fits/testing_fit_routine_rdstar.ipynb index a8bacaaf3..367e6eb32 100644 --- a/rdstar/offline_analysis/fitting/dedicated_fit_approach/notebooks/rdstar_fits/testing_fit_routine_rdstar.ipynb +++ b/rdstar/offline_analysis/fitting/dedicated_fit_approach/notebooks/rdstar_fits/testing_fit_routine_rdstar.ipynb @@ -404,7 +404,9 @@ "id": "9abe220d", "metadata": {}, "outputs": [], - "source": [] + "source": [ + "fit_status.minuit_instance.params" + ] }, { "cell_type": "code", @@ -551,6 +553,10 @@ "source": [ "lid_shape_eval_generator = fit_evaluator.plot_l_id_sys_shape_effects(\n", " fit_status_container=fit_status,\n", + " add_statistical_uncertainties=True,\n", + " normalize_pulls=False,\n", + " plot_subsets=False,\n", + " scale_factor=1,\n", ")" ] }, @@ -572,7 +578,15 @@ { "cell_type": "code", "execution_count": null, - "id": "a184acb5", + "id": "c113d278", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "3810338d", "metadata": {}, "outputs": [], "source": [] @@ -594,6 +608,10 @@ "source": [ "norm_ff_shape_eval_generator = fit_evaluator.plot_norm_ff_sys_shape_effects(\n", " fit_status_container=fit_status,\n", + " add_statistical_uncertainties=True,\n", + " normalize_pulls=True,\n", + " plot_subsets=False,\n", + " scale_factor=10,\n", ")" ] }, @@ -617,7 +635,7 @@ "metadata": {}, "outputs": [], "source": [ - "_this_norm_ff_shape_eval_info.relative_shape_error" + "_this_norm_ff_shape_eval_info.shape_error" ] }, { @@ -636,6 +654,26 @@ "id": "c9b8ef4c", "metadata": {}, "outputs": [], + "source": [ + "_this_norm_ff_shape_eval_info.stat_error" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e6db126c", + "metadata": {}, + "outputs": [], + "source": [ + "_this_norm_ff_shape_eval_info.stat_error" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f86a06db", + "metadata": {}, + "outputs": [], "source": [] }, { @@ -655,6 +693,10 @@ "source": [ "sig_ff_shape_eval_generator = fit_evaluator.plot_sig_ff_sys_shape_effects(\n", " fit_status_container=fit_status,\n", + " add_statistical_uncertainties=True,\n", + " normalize_pulls=True,\n", + " plot_subsets=False,\n", + " scale_factor=10,\n", ")" ] }, @@ -698,7 +740,7 @@ "metadata": {}, "outputs": [], "source": [ - "_this_sig_ff_shape_eval_info.relative_shape_error" + "_this_sig_ff_shape_eval_info.shape_error" ] }, { @@ -717,6 +759,120 @@ "outputs": [], "source": [] }, + { + "cell_type": "code", + "execution_count": null, + "id": "8fc8ab78", + "metadata": {}, + "outputs": [], + "source": [ + "tracking_shape_eval_generator = fit_evaluator.plot_tracking_sys_shape_effects(\n", + " fit_status_container=fit_status,\n", + " add_statistical_uncertainties=True,\n", + " normalize_pulls=True,\n", + " plot_subsets=False,\n", + " scale_factor=10,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "854b1246", + "metadata": {}, + "outputs": [], + "source": [ + "_this_tracking_shape_eval_info = None\n", + "for _a_tracking_shape_eval_info in tracking_shape_eval_generator:\n", + " _this_tracking_shape_eval_info = _a_tracking_shape_eval_info\n", + " break" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1009d09a", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "550570ef", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "ab3663bd", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "98e31a6f", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b83e2447", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6409aeec", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0b8846ec", + "metadata": {}, + "outputs": [], + "source": [ + "k_short_shape_eval_generator = fit_evaluator.plot_k_short_sys_shape_effects(\n", + " fit_status_container=fit_status,\n", + " add_statistical_uncertainties=True,\n", + " normalize_pulls=True,\n", + " plot_subsets=False,\n", + " scale_factor=10,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "789a213e", + "metadata": {}, + "outputs": [], + "source": [ + "_this_k_short_shape_eval_info = None\n", + "for _a_k_short_shape_eval_info in k_short_shape_eval_generator:\n", + " _this_k_short_shape_eval_info = _a_k_short_shape_eval_info\n", + " break" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "5012c33c", + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null, -- GitLab