diff --git a/notebooks/AGIPD/PlotFromCalDB_AGIPD_NBC.ipynb b/notebooks/AGIPD/PlotFromCalDB_AGIPD_NBC.ipynb index f36c345ea00d5deeb8df4822b9cf1349cbf8230a..270516a39edb4e0ede9aad7080d4e5abb731573e 100644 --- a/notebooks/AGIPD/PlotFromCalDB_AGIPD_NBC.ipynb +++ b/notebooks/AGIPD/PlotFromCalDB_AGIPD_NBC.ipynb @@ -42,7 +42,13 @@ "nMemToShow = 32 # Number of memory cells to be shown in plots over ASICs\n", "db_module = \"AGIPD1M1\" # detector entry in the DB to investigate\n", "dclass = \"AGIPD\" # Detector class\n", - "cal_db_interface = \"tcp://max-exfl016:8015#8025\" # the database interface to use" + "cal_db_interface = \"tcp://max-exfl016:8015#8025\" # the database interface to use\n", + "range_offset = [4000., 5500, 6500, 8500] # plotting range for offset: high gain l, r, medium gain l, r \n", + "range_noise = [2.5, 15, 7.5, 17.0] # plotting range for noise: high gain l, r, medium gain l, r \n", + "range_gain = [0.8, 1.2, 0.8, 1.2] # plotting range for gain: high gain l, r, medium gain l, r \n", + "range_noise_e = [85., 500., 85., 500.] # plotting range for noise in [e-]: high gain l, r, medium gain l, r \n", + "range_slopesPC = [22.0, 27.0, -0.5, 1.5] # plotting range for slope PC: high gain l, r, medium gain l, r \n", + "range_slopesFF = [0.8, 1.2, 0.6, 1.2] # plotting range for slope FF: high gain l, r, medium gain l, r " ] }, { @@ -445,7 +451,7 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "collapsed": false }, "outputs": [], "source": [ @@ -453,12 +459,12 @@ "\n", "# Define range for plotting\n", "rangevals = {\n", - " \"Offset\": [[4000., 5500], [6500, 8500]],\n", - " \"Noise\": [[2.5, 15], [7.5, 17.0]],\n", - " \"Gain\": [[0.8, 1.2], [0.8, 1.2]],\n", - " \"Noise-e\": [[85., 500.], [85., 500.]],\n", - " \"SlopesPC\": [[22.0, 27.0], [-0.5, 1.5]],\n", - " \"SlopesFF\": [[0.8, 1.2], [0.6, 1.2]]\n", + " \"Offset\": [range_offset[0:2], range_offset[2:4]],\n", + " \"Noise\": [range_noise[0:2], range_noise[2:4]],\n", + " \"Gain\": [range_gain[0:2], range_gain[2:4]],\n", + " \"Noise-e\": [range_noise_e[0:2], range_noise_e[2:4]],\n", + " \"SlopesPC\": [range_slopesPC[0:2], range_slopesPC[2:4]],\n", + " \"SlopesFF\": [range_slopesFF[0:2], range_slopesFF[2:4]]\n", "}\n", "\n", "keys = {\n", diff --git a/notebooks/AGIPD/PlotFromCalDB_Summary_AGIPD_NBC.ipynb b/notebooks/AGIPD/PlotFromCalDB_Summary_AGIPD_NBC.ipynb index 2c3c3a5f64984a3f3c5b885ddc9fc46d53eaf0b4..5edf0ec6eda2dfb25ab4fe3f7610727a9fda684e 100644 --- a/notebooks/AGIPD/PlotFromCalDB_Summary_AGIPD_NBC.ipynb +++ b/notebooks/AGIPD/PlotFromCalDB_Summary_AGIPD_NBC.ipynb @@ -23,7 +23,14 @@ "out_folder = \"/gpfs/exfel/data/scratch/karnem/testLPD_11/\" # Output folder, required\n", "use_existing = \"/gpfs/exfel/data/scratch/karnem/testLPD_10/\" # Input folder\n", "dclass = \"LPD\" # Detector class\n", - "nMemToShow = 32 # Number of memory cells to be shown in plots over ASICs" + "nMemToShow = 32 # Number of memory cells to be shown in plots over ASICs\n", + "range_offset = [4000., 5500, 6500, 8500] # plotting range for offset: high gain l, r, medium gain l, r \n", + "range_noise = [2.5, 15, 7.5, 17.0] # plotting range for noise: high gain l, r, medium gain l, r \n", + "range_gain = [0.8, 1.2, 0.8, 1.2] # plotting range for gain: high gain l, r, medium gain l, r \n", + "range_noise_e = [85., 500., 85., 500.] # plotting range for noise in [e-]: high gain l, r, medium gain l, r \n", + "range_slopesPC = [22.0, 27.0, -0.5, 1.5] # plotting range for slope PC: high gain l, r, medium gain l, r \n", + "range_slopesCI = [22.0, 27.0, -0.5, 1.5] # plotting range for slope CI: high gain l, r, medium gain l, r \n", + "range_slopesFF = [0.8, 1.2, 0.6, 1.2] # plotting range for slope FF: high gain l, r, medium gain l, r " ] }, { @@ -89,13 +96,13 @@ "\n", "# Define range for plotting\n", "rangevals = {\n", - " \"Offset\": [[4000., 5500], [6500, 8500]],\n", - " \"Noise\": [[2.5, 15], [7.5, 17.0]],\n", - " \"Gain\": [[0.8, 1.2], [0.8, 1.2]],\n", - " \"Noise-e\": [[85., 500.], [85., 500.]],\n", - " \"SlopesCI\": [[0.95, 1.05], [0.0, 0.5]],\n", - " \"SlopesPC\": [[22.0, 27.0], [-0.5, 1.5]],\n", - " \"SlopesFF\": [[0.8, 1.2], [0.6, 1.2]]\n", + " \"Offset\": [range_offset[0:2], range_offset[2:4]],\n", + " \"Noise\": [range_noise[0:2], range_noise[2:4]],\n", + " \"Gain\": [range_gain[0:2], range_gain[2:4]],\n", + " \"Noise-e\": [range_noise_e[0:2], range_noise_e[2:4]],\n", + " \"SlopesPC\": [range_slopesPC[0:2], range_slopesPC[2:4]],\n", + " \"SlopesCI\": [range_slopesCI[0:2], range_slopesCI[2:4]],\n", + " \"SlopesFF\": [range_slopesFF[0:2], range_slopesFF[2:4]]\n", "}\n", "\n", "keys = {\n", diff --git a/notebooks/LPD/PlotFromCalDB_LPD_NBC.ipynb b/notebooks/LPD/PlotFromCalDB_LPD_NBC.ipynb index f540215d90303c6c05aa8df15633a8339a3e2a6a..091b9826d5b6ce6b9913e1e886741c5bb5e75a66 100644 --- a/notebooks/LPD/PlotFromCalDB_LPD_NBC.ipynb +++ b/notebooks/LPD/PlotFromCalDB_LPD_NBC.ipynb @@ -42,7 +42,13 @@ "nMemToShow = 32 # Number of memory cells to be shown in plots over ASICs\n", "db_module = \"LPD1M1\" # detector entry in the DB to investigate\n", "dclass = \"LPD\" # Detector class\n", - "cal_db_interface = \"tcp://max-exfl016:8015#8025\" # the database interface to use" + "cal_db_interface = \"tcp://max-exfl016:8015#8025\" # the database interface to use\n", + "range_offset = [[800., 1500, 600, 900]] # plotting range for offset: high gain l, r, medium gain l, r \n", + "range_noise = [2.0, 16, 1.0, 7.0] # plotting range for noise: high gain l, r, medium gain l, r \n", + "range_gain = [20, 30, 20, 30] # plotting range for gain: high gain l, r, medium gain l, r \n", + "range_noise_e = [100., 600., 100., 600.] # plotting range for noise in [e-]: high gain l, r, medium gain l, r \n", + "range_slopesCI = [0.95, 1.05, 0.0, 0.5] # plotting range for slope CI: high gain l, r, medium gain l, r \n", + "range_slopesFF = [0.8, 1.2, 0.8, 1.2] # plotting range for slope FF: high gain l, r, medium gain l, r " ] }, { @@ -446,12 +452,12 @@ "\n", "# Define range for plotting\n", "rangevals = {\n", - " \"Offset\": [[800., 1500], [600, 900]],\n", - " \"Noise\": [[2.0, 16], [1.0, 7.0]],\n", - " \"Gain\": [[20, 30], [20, 30]],\n", - " \"Noise-e\": [[100., 600.], [100., 600.]],\n", - " \"SlopesCI\": [[0.95, 1.05], [0.0, 0.5]],\n", - " \"SlopesFF\": [[0.8, 1.2], [0.8, 1.2]]\n", + " \"Offset\": [range_offset[0:2], range_offset[2:4]],\n", + " \"Noise\": [range_noise[0:2], range_noise[2:4]],\n", + " \"Gain\": [range_gain[0:2], range_gain[2:4]],\n", + " \"Noise-e\": [range_noise_e[0:2], range_noise_e[2:4]],\n", + " \"SlopesCI\": [range_slopesCI[0:2], range_slopesCI[2:4]],\n", + " \"SlopesFF\": [range_slopesFF[0:2], range_slopesFF[2:4]]\n", "}\n", "\n", "keys = {\n",