From ff076cb45eafa5b8fa56a6c803248af12dd01dd1 Mon Sep 17 00:00:00 2001 From: Ivana Klackova <klackova@max-exfl461.desy.de> Date: Thu, 6 Jul 2023 14:06:45 +0200 Subject: [PATCH] Adding description of constants notation --- ...haracterization_unequalClockStep_NBC.ipynb | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/notebooks/AGIPD/CS_Characterization_unequalClockStep_NBC.ipynb b/notebooks/AGIPD/CS_Characterization_unequalClockStep_NBC.ipynb index 5013f9944..cfd5ecaff 100644 --- a/notebooks/AGIPD/CS_Characterization_unequalClockStep_NBC.ipynb +++ b/notebooks/AGIPD/CS_Characterization_unequalClockStep_NBC.ipynb @@ -20,7 +20,20 @@ "\n", "First, the algorithm labels the individual gain stages which are then fitted with a linear function, leading to three sets of slopes (m) and intercepts (b). Prior to fitting, selection of the fit range is performed to exclude non-linear regions of the injected signal. Dark data are collected in the same fashion as current source data, i.e. for each integration time step there is one dark signal data point. No averaging is performed. Offset correction is done only for the high gain as for medium and low gain this led to worse fitting results.\n", "\n", - "The fitted slopes and intercepts are sanitised in the next steps; problematic fits and pixels are marked as bad and median values are used to replace these values." + "The fitted slopes and intercepts are sanitised in the next steps; problematic fits and pixels are marked as bad and median values are used to replace these values.\n", + "\n", + "Constants are saved wit the following notation: \n", + "- Slopes:\n", + " - mH: high gain slope\n", + " - mM: medium gain slope\n", + " - mL: low gain slope\n", + "- Intercepts:\n", + " - bH: high gain intercept\n", + " - bM: medium gain intercept\n", + " - bL: low gain intercept\n", + "- Ratios:\n", + " - H-M: ratio of high gain and medium gain slope\n", + " - M-L: ratio of medium gain and low gain slope" ] }, { @@ -1485,6 +1498,18 @@ "metadata": {}, "outputs": [], "source": [ + "# Sanitised constants keys:\n", + "# mH: high gain slope\n", + "# mM: medium gain slope\n", + "# mL: low gain slope\n", + "#\n", + "# bH: high gain intercept\n", + "# bM: medium gain intercept\n", + "# bL: low gain intercept\n", + "# \n", + "# H-M: ratio of high gain and medium gain slope\n", + "# M-L: ratio of medium gain and low gain slope\n", + "\n", "sanitised_const = {}\n", "gain_keys = ['mH', 'mM', 'mL', 'bH', 'bM', 'bL']\n", "\n", -- GitLab