<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?action=history&amp;feed=atom&amp;title=Cctbx.xfel_GUI%2FEnergy_tab</id>
	<title>Cctbx.xfel GUI/Energy tab - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?action=history&amp;feed=atom&amp;title=Cctbx.xfel_GUI%2FEnergy_tab"/>
	<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Cctbx.xfel_GUI/Energy_tab&amp;action=history"/>
	<updated>2026-11-25T07:35:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Cctbx.xfel_GUI/Energy_tab&amp;diff=1814&amp;oldid=prev</id>
		<title>Aaron at 19:22, 2 November 2026</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Cctbx.xfel_GUI/Energy_tab&amp;diff=1814&amp;oldid=prev"/>
		<updated>2026-11-02T19:22:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:22, 2 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:cctbx.xfel GUI/Energy tab}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:cctbx.xfel GUI/Energy tab}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Energy tab&amp;#039;&amp;#039;&amp;#039; calibrates the per-shot photon energy at LCLS. It is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;shown &lt;/del&gt;only when the facility is LCLS and the GUI is not in monitoring mode. The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tab runs its calculations in the &lt;/del&gt;&amp;#039;&amp;#039;Calib Worker&amp;#039;&amp;#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;thread, whose &lt;/del&gt;light turns yellow while a calibration is running &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and &lt;/del&gt;green when it is idle.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Energy tab&amp;#039;&amp;#039;&amp;#039; calibrates the per-shot photon energy at LCLS. It is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;present &lt;/ins&gt;only when the facility is LCLS and the GUI is not in monitoring mode&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;; otherwise both the tab and the &amp;#039;&amp;#039;Calib Worker&amp;#039;&amp;#039; light are absent&lt;/ins&gt;. The &amp;#039;&amp;#039;Calib Worker&amp;#039;&amp;#039; light turns yellow while a calibration is running&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;green when it is idle&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, and red when a calibration failed; the reason is printed in the terminal, and the next calibration can be started straight away&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Back to [[cctbx.xfel GUI]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Back to [[cctbx.xfel GUI]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Ebeam calibration&amp;#039;&amp;#039;&amp;#039;: with the spectrometer calibrated, its per-shot energies are compared with the ebeam energies over a set of ordinary runs to find the constant &amp;#039;&amp;#039;&amp;#039;ebeam offset&amp;#039;&amp;#039;&amp;#039; (and the equivalent wavelength offset), so that the ebeam value can be corrected on shots where the spectrometer is unusable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Ebeam calibration&amp;#039;&amp;#039;&amp;#039;: with the spectrometer calibrated, its per-shot energies are compared with the ebeam energies over a set of ordinary runs to find the constant &amp;#039;&amp;#039;&amp;#039;ebeam offset&amp;#039;&amp;#039;&amp;#039; (and the equivalent wavelength offset), so that the ebeam value can be corrected on shots where the spectrometer is unusable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The results are entered into [[cctbx.xfel GUI/Trials tab#Run block settings|run block settings]] (&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;spectrum_eV_per_pixel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;spectrum_eV_offset&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;wavelength_offset&amp;lt;/code&amp;gt;&lt;/del&gt;) so that processing jobs use the calibrated energies.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The results are entered into [[cctbx.xfel GUI/Trials tab#Run block settings|run block settings]] (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &amp;#039;&amp;#039;Spectrum&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Wavelength&amp;#039;&amp;#039; rows&lt;/ins&gt;) so that processing jobs use the calibrated energies&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. The run block dialog can take them straight from this tab, or from a file it saved&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== FEE Energy Scan Description ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== FEE Energy Scan Description ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Experiment&amp;#039;&amp;#039;&amp;#039;: the LCLS experiment the scan runs belong to. Defaults to the experiment in Settings; change it if the scan was collected under a different experiment.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Experiment&amp;#039;&amp;#039;&amp;#039;: the LCLS experiment the scan runs belong to. Defaults to the experiment in Settings; change it if the scan was collected under a different experiment.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Max events&amp;#039;&amp;#039;&amp;#039;: how many shots of each run to average (200 by default). More shots give a cleaner spectrum but take longer.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Max events&amp;#039;&amp;#039;&amp;#039;: how many shots of each run to average (200 by default)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Must be a positive integer&lt;/ins&gt;. More shots give a cleaner spectrum but take longer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Run / Notch Energy (eV)&amp;#039;&amp;#039;&amp;#039; table: one row per calibration run. Click a cell to edit it. &amp;#039;&amp;#039;&amp;#039;Add Row&amp;#039;&amp;#039;&amp;#039; appends a row and &amp;#039;&amp;#039;&amp;#039;Clear All&amp;#039;&amp;#039;&amp;#039; empties the table.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Run / Notch Energy (eV)&amp;#039;&amp;#039;&amp;#039; table: one row per calibration run. Click a cell to edit it. &amp;#039;&amp;#039;&amp;#039;Add Row&amp;#039;&amp;#039;&amp;#039; appends a row and &amp;#039;&amp;#039;&amp;#039;Clear All&amp;#039;&amp;#039;&amp;#039; empties the table.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Run Calibration&amp;#039;&amp;#039;&amp;#039;: checks that each run exists and each energy is a number, then runs the calibration in the background. Two plots fill in when it finishes: the &amp;#039;&amp;#039;&amp;#039;trendline&amp;#039;&amp;#039;&amp;#039; (notch position against energy, with the fitted line) and the &amp;#039;&amp;#039;&amp;#039;spectra&amp;#039;&amp;#039;&amp;#039; (each run&amp;#039;s averaged spectrum with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;its &lt;/del&gt;detected &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;notch&lt;/del&gt;). Each plot has a matplotlib toolbar for zooming and saving.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Run Calibration&amp;#039;&amp;#039;&amp;#039;: checks that each run exists and each energy is a number &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(a dialog reports the offending entry otherwise), clears the previous results&lt;/ins&gt;, then runs the calibration in the background. Two plots fill in when it finishes: the &amp;#039;&amp;#039;&amp;#039;trendline&amp;#039;&amp;#039;&amp;#039; (notch position against energy, with the fitted line) and the &amp;#039;&amp;#039;&amp;#039;spectra&amp;#039;&amp;#039;&amp;#039; (each run&amp;#039;s averaged spectrum&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;with &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;detected &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;notches labelled on the plot and a draggable legend listing the runs&lt;/ins&gt;). Each plot has a matplotlib toolbar for zooming and saving&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Starting a new FEE calibration also discards the ebeam result, since that was measured against the previous spectrometer calibration; run the ebeam comparison again afterwards&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Runs for Ebeam Calibration ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Runs for Ebeam Calibration ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The checklist shows every run in the database; &amp;#039;&amp;#039;&amp;#039;Refresh&amp;#039;&amp;#039;&amp;#039; picks up runs that arrived since the tab was opened and &amp;#039;&amp;#039;&amp;#039;Clear&amp;#039;&amp;#039;&amp;#039; unticks everything and clears the plot.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The checklist shows every run in the database; &amp;#039;&amp;#039;&amp;#039;Refresh&amp;#039;&amp;#039;&amp;#039; picks up runs that arrived since the tab was opened and &amp;#039;&amp;#039;&amp;#039;Clear&amp;#039;&amp;#039;&amp;#039; unticks everything and clears the plot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Tick the runs to compare and press &amp;#039;&amp;#039;&amp;#039;Run Calibration&amp;#039;&amp;#039;&amp;#039;. The FEE calibration must have been run first, and each run must belong to a run block (the detector address is taken from it). Runs that are in no run block are skipped with a message in the terminal.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Tick the runs to compare and press &amp;#039;&amp;#039;&amp;#039;Run Calibration&amp;#039;&amp;#039;&amp;#039;. The FEE calibration must have been run first &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(the button refuses with a dialog otherwise)&lt;/ins&gt;, and each run must belong to a run block (the detector address is taken from it). Runs that are in no run block&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, or that have no events with both a spectrometer and an ebeam reading, &lt;/ins&gt;are skipped&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: the former &lt;/ins&gt;with a message in the terminal&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, the latter with a note in the plot legend&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The plot overlays the ebeam energies with the calibrated spectrometer energies for the selected runs. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The worker writes a small locator file per run to an &amp;lt;code&amp;gt;energy&amp;lt;/code&amp;gt; folder next to &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;output folder&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The plot overlays the ebeam energies with the calibrated spectrometer energies for the selected runs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &amp;#039;&amp;#039;&amp;#039;Clear&amp;#039;&amp;#039;&amp;#039; unticks the runs and discards &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ebeam result and its plot&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Calibration Results ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Calibration Results ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The box shows &amp;#039;&amp;#039;&amp;#039;FEE eV per pixel&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;FEE eV offset&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Ebeam offset&amp;#039;&amp;#039;&amp;#039; (in eV, with the equivalent wavelength offset in Å). &amp;#039;&amp;#039;&amp;#039;Save calibration&amp;#039;&amp;#039;&amp;#039; writes &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;them &lt;/del&gt;as a PHIL file (default &amp;lt;code&amp;gt;fee/fee_calib.phil&amp;lt;/code&amp;gt; next to the output folder):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The box shows &amp;#039;&amp;#039;&amp;#039;FEE eV per pixel&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;FEE eV offset&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Ebeam offset&amp;#039;&amp;#039;&amp;#039; (in eV, with the equivalent wavelength offset in Å). &amp;#039;&amp;#039;&amp;#039;Save calibration&amp;#039;&amp;#039;&amp;#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is enabled once there is a result to save; it &lt;/ins&gt;writes &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the results &lt;/ins&gt;as a PHIL file (default &amp;lt;code&amp;gt;fee/fee_calib.phil&amp;lt;/code&amp;gt; next to the output folder) &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and confirms the file name in the box&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;spectrum_eV_per_pixel=...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;spectrum_eV_per_pixel=...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;wavelength_offset=...&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;wavelength_offset=...&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;first &lt;/del&gt;two &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;go into &lt;/del&gt;the &amp;#039;&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spectrum_eV_per_pixel&lt;/del&gt;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spectrum_eV_offset&lt;/del&gt;&amp;#039;&amp;#039; fields &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of a run block &lt;/del&gt;and the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wavelength offset into its &lt;/del&gt;&amp;#039;&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wavelength_offset&lt;/del&gt;&amp;#039;&amp;#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;field&lt;/del&gt;. Since changing those fields creates a new run block, do the calibration before starting the main processing where possible, or create a new trial with the calibrated run block afterwards.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[cctbx.xfel GUI/Trials tab#Run block settings|run block dialog]] has &lt;/ins&gt;two &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;buttons under its &amp;#039;&amp;#039;Spectrum&amp;#039;&amp;#039; row: &amp;#039;&amp;#039;&amp;#039;Use Energy tab calibration&amp;#039;&amp;#039;&amp;#039; copies the current results from this tab (enabled once the FEE calibration has run), and &amp;#039;&amp;#039;&amp;#039;Load calibration file...&amp;#039;&amp;#039;&amp;#039; reads a file saved here. Both fill &lt;/ins&gt;the &amp;#039;&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;eV per pixel&lt;/ins&gt;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;eV offset&lt;/ins&gt;&amp;#039;&amp;#039; fields&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;and the &amp;#039;&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Wavelength offset&lt;/ins&gt;&amp;#039;&amp;#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when the ebeam comparison has been run&lt;/ins&gt;. Since changing those fields creates a new run block, do the calibration before starting the main processing where possible, or create a new trial with the calibrated run block afterwards.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Cctbx.xfel_GUI/Energy_tab&amp;diff=1794&amp;oldid=prev</id>
		<title>Aaron: Created page with &quot;{{DISPLAYTITLE:cctbx.xfel GUI/Energy tab}} The &#039;&#039;&#039;Energy tab&#039;&#039;&#039; calibrates the per-shot photon energy at LCLS. It is shown only when the facility is LCLS and the GUI is not in monitoring mode. The tab runs its calculations in the &#039;&#039;Calib Worker&#039;&#039; thread, whose light turns yellow while a calibration is running and green when it is idle.  Back to cctbx.xfel GUI.  == Background == At LCLS each shot&#039;s photon energy can be measured two ways: from the electron beam energy...&quot;</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Cctbx.xfel_GUI/Energy_tab&amp;diff=1794&amp;oldid=prev"/>
		<updated>2026-10-09T21:04:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:cctbx.xfel GUI/Energy tab}} The &amp;#039;&amp;#039;&amp;#039;Energy tab&amp;#039;&amp;#039;&amp;#039; calibrates the per-shot photon energy at LCLS. It is shown only when the facility is LCLS and the GUI is not in monitoring mode. The tab runs its calculations in the &amp;#039;&amp;#039;Calib Worker&amp;#039;&amp;#039; thread, whose light turns yellow while a calibration is running and green when it is idle.  Back to &lt;a href=&quot;/cctbx.xfel/index.php/Cctbx.xfel_GUI&quot; title=&quot;Cctbx.xfel GUI&quot;&gt;cctbx.xfel GUI&lt;/a&gt;.  == Background == At LCLS each shot&amp;#039;s photon energy can be measured two ways: from the electron beam energy...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:cctbx.xfel GUI/Energy tab}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Energy tab&amp;#039;&amp;#039;&amp;#039; calibrates the per-shot photon energy at LCLS. It is shown only when the facility is LCLS and the GUI is not in monitoring mode. The tab runs its calculations in the &amp;#039;&amp;#039;Calib Worker&amp;#039;&amp;#039; thread, whose light turns yellow while a calibration is running and green when it is idle.&lt;br /&gt;
&lt;br /&gt;
Back to [[cctbx.xfel GUI]].&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
At LCLS each shot&amp;#039;s photon energy can be measured two ways: from the electron beam energy reported by the accelerator (the &amp;#039;&amp;#039;ebeam&amp;#039;&amp;#039;), and from the &amp;#039;&amp;#039;FEE spectrometer&amp;#039;&amp;#039;, which records the spectrum of every pulse on a one-dimensional detector. The spectrometer gives the better value, but its pixel axis must be calibrated into eV. This tab does that in two steps:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;FEE calibration&amp;#039;&amp;#039;&amp;#039;: several short runs are collected with the beam energy stepped through a notch of known energy. Fitting the notch position in each run&amp;#039;s average spectrum against the known energies gives the spectrometer&amp;#039;s &amp;#039;&amp;#039;&amp;#039;eV per pixel&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;eV offset&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Ebeam calibration&amp;#039;&amp;#039;&amp;#039;: with the spectrometer calibrated, its per-shot energies are compared with the ebeam energies over a set of ordinary runs to find the constant &amp;#039;&amp;#039;&amp;#039;ebeam offset&amp;#039;&amp;#039;&amp;#039; (and the equivalent wavelength offset), so that the ebeam value can be corrected on shots where the spectrometer is unusable.&lt;br /&gt;
&lt;br /&gt;
The results are entered into [[cctbx.xfel GUI/Trials tab#Run block settings|run block settings]] (&amp;lt;code&amp;gt;spectrum_eV_per_pixel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;spectrum_eV_offset&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;wavelength_offset&amp;lt;/code&amp;gt;) so that processing jobs use the calibrated energies.&lt;br /&gt;
&lt;br /&gt;
== FEE Energy Scan Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Experiment&amp;#039;&amp;#039;&amp;#039;: the LCLS experiment the scan runs belong to. Defaults to the experiment in Settings; change it if the scan was collected under a different experiment.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Max events&amp;#039;&amp;#039;&amp;#039;: how many shots of each run to average (200 by default). More shots give a cleaner spectrum but take longer.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Run / Notch Energy (eV)&amp;#039;&amp;#039;&amp;#039; table: one row per calibration run. Click a cell to edit it. &amp;#039;&amp;#039;&amp;#039;Add Row&amp;#039;&amp;#039;&amp;#039; appends a row and &amp;#039;&amp;#039;&amp;#039;Clear All&amp;#039;&amp;#039;&amp;#039; empties the table.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Run Calibration&amp;#039;&amp;#039;&amp;#039;: checks that each run exists and each energy is a number, then runs the calibration in the background. Two plots fill in when it finishes: the &amp;#039;&amp;#039;&amp;#039;trendline&amp;#039;&amp;#039;&amp;#039; (notch position against energy, with the fitted line) and the &amp;#039;&amp;#039;&amp;#039;spectra&amp;#039;&amp;#039;&amp;#039; (each run&amp;#039;s averaged spectrum with its detected notch). Each plot has a matplotlib toolbar for zooming and saving.&lt;br /&gt;
&lt;br /&gt;
== Runs for Ebeam Calibration ==&lt;br /&gt;
* The checklist shows every run in the database; &amp;#039;&amp;#039;&amp;#039;Refresh&amp;#039;&amp;#039;&amp;#039; picks up runs that arrived since the tab was opened and &amp;#039;&amp;#039;&amp;#039;Clear&amp;#039;&amp;#039;&amp;#039; unticks everything and clears the plot.&lt;br /&gt;
* Tick the runs to compare and press &amp;#039;&amp;#039;&amp;#039;Run Calibration&amp;#039;&amp;#039;&amp;#039;. The FEE calibration must have been run first, and each run must belong to a run block (the detector address is taken from it). Runs that are in no run block are skipped with a message in the terminal.&lt;br /&gt;
* The plot overlays the ebeam energies with the calibrated spectrometer energies for the selected runs. The worker writes a small locator file per run to an &amp;lt;code&amp;gt;energy&amp;lt;/code&amp;gt; folder next to the output folder.&lt;br /&gt;
&lt;br /&gt;
== Calibration Results ==&lt;br /&gt;
The box shows &amp;#039;&amp;#039;&amp;#039;FEE eV per pixel&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;FEE eV offset&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Ebeam offset&amp;#039;&amp;#039;&amp;#039; (in eV, with the equivalent wavelength offset in Å). &amp;#039;&amp;#039;&amp;#039;Save calibration&amp;#039;&amp;#039;&amp;#039; writes them as a PHIL file (default &amp;lt;code&amp;gt;fee/fee_calib.phil&amp;lt;/code&amp;gt; next to the output folder):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;spectrum_eV_per_pixel=...&lt;br /&gt;
spectrum_eV_offset=...&lt;br /&gt;
ebeam_eV_offset=...&lt;br /&gt;
wavelength_offset=...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first two go into the &amp;#039;&amp;#039;spectrum_eV_per_pixel&amp;#039;&amp;#039; and &amp;#039;&amp;#039;spectrum_eV_offset&amp;#039;&amp;#039; fields of a run block and the wavelength offset into its &amp;#039;&amp;#039;wavelength_offset&amp;#039;&amp;#039; field. Since changing those fields creates a new run block, do the calibration before starting the main processing where possible, or create a new trial with the calibrated run block afterwards.&lt;/div&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
</feed>