diff --git a/pxiii_bec/bec_widgets/widgets/client.py b/pxiii_bec/bec_widgets/widgets/client.py
index f86e584..d9d9797 100644
--- a/pxiii_bec/bec_widgets/widgets/client.py
+++ b/pxiii_bec/bec_widgets/widgets/client.py
@@ -13,10 +13,135 @@ logger = bec_logger.logger
_Widgets = {
+ "PXIIIPonytailOC": "PXIIIPonytailOC",
+ "PxIIIBECskillOC": "PxIIIBECskillOC",
"ScanHistory": "ScanHistory",
}
+class PXIIIPonytailOC(RPCBase):
+ _IMPORT_MODULE = "pxiii_bec.bec_widgets.widgets.imports.imports"
+
+ @rpc_call
+ def move_to(self, degrees: "float"):
+ """
+ Move omega to an absolute angle in degrees.
+ """
+
+ @rpc_call
+ def move_by(self, degrees: "float"):
+ """
+ Rotate omega by `degrees` relative to the current position.
+ """
+
+ @rpc_call
+ def stop(self):
+ """
+ Stop the stage. stop_devices works per root device, so this stops all aerotech axes.
+
+ ponytail: pxii_bec's Aerotech controller.stop() is still a TODO upstream (no REST stop endpoint);
+ the message is right, the hardware side lands with that fix.
+ """
+
+ @rpc_call
+ def set_presets(self, presets: "list[tuple[str, float, bool]]"):
+ """
+ Rebuild the preset buttons from (label, degrees, relative) entries.
+
+ Absolute presets take a full row, relative ones go two per row so +x/-x sit side by side.
+ """
+
+
+class PxIIIBECskillOC(RPCBase):
+ _IMPORT_MODULE = "pxiii_bec.bec_widgets.widgets.imports.imports"
+
+ @rpc_call
+ def remove(self):
+ """
+ Cleanup the BECConnector
+ """
+
+ @rpc_call
+ def attach(self):
+ """
+ None
+ """
+
+ @rpc_call
+ def detach(self):
+ """
+ Detach the widget from its parent dock widget (if widget is in the dock), making it a floating widget.
+ """
+
+ @property
+ @rpc_call
+ def device(self) -> "str":
+ """
+ Omega axis: flat BEC name or dotted sub-axis (default aerotech_u, i.e. aerotech.u).
+ """
+
+ @device.setter
+ @rpc_call
+ def device(self) -> "str":
+ """
+ Omega axis: flat BEC name or dotted sub-axis (default aerotech_u, i.e. aerotech.u).
+ """
+
+ @property
+ @rpc_call
+ def absolute_presets(self) -> "str":
+ """
+ Go-to angles in degrees, comma separated (``"0, 90"``); a list is accepted when setting.
+ """
+
+ @absolute_presets.setter
+ @rpc_call
+ def absolute_presets(self) -> "str":
+ """
+ Go-to angles in degrees, comma separated (``"0, 90"``); a list is accepted when setting.
+ """
+
+ @property
+ @rpc_call
+ def relative_presets(self) -> "str":
+ """
+ Step angles in degrees, comma separated (``"10, -10"``); a list is accepted when setting.
+ """
+
+ @relative_presets.setter
+ @rpc_call
+ def relative_presets(self) -> "str":
+ """
+ Step angles in degrees, comma separated (``"10, -10"``); a list is accepted when setting.
+ """
+
+ @rpc_call
+ def move_absolute(self, angle: "float") -> "None":
+ """
+ Rotate to ``angle``.
+
+ Args:
+ angle (float): target angle in degrees.
+ """
+
+ @rpc_call
+ def move_relative(self, delta: "float") -> "None":
+ """
+ Rotate by ``delta`` from the current position.
+
+ Args:
+ delta (float): signed step in degrees.
+ """
+
+ @rpc_call
+ def stop(self) -> "None":
+ """
+ Stop the rotation: BEC's stop_devices on the root device, as PositionerBox does.
+
+ The REST Aerotech controller has no stop endpoint, so on the beamline this is best effort.
+ """
+
+
class ScanHistory(RPCBase):
_IMPORT_MODULE = "pxiii_bec.bec_widgets.widgets.scan_history.scan_history"
diff --git a/pxiii_bec/bec_widgets/widgets/designer_plugins.py b/pxiii_bec/bec_widgets/widgets/designer_plugins.py
index 37d9ecb..ebf1b77 100644
--- a/pxiii_bec/bec_widgets/widgets/designer_plugins.py
+++ b/pxiii_bec/bec_widgets/widgets/designer_plugins.py
@@ -5,9 +5,13 @@ from __future__ import annotations
# pylint: skip-file
designer_plugins = {
+ "PXIIIPonytailOC": ("pxiii_bec.bec_widgets.widgets.imports.imports", "PXIIIPonytailOC"),
+ "PxIIIBECskillOC": ("pxiii_bec.bec_widgets.widgets.imports.imports", "PxIIIBECskillOC"),
"ScanHistory": ("pxiii_bec.bec_widgets.widgets.scan_history.scan_history", "ScanHistory"),
}
widget_icons = {
+ "PXIIIPonytailOC": "rotate_right",
+ "PxIIIBECskillOC": "rotate_right",
"ScanHistory": "widgets",
}
diff --git a/pxiii_bec/bec_widgets/widgets/imports/__init__.py b/pxiii_bec/bec_widgets/widgets/imports/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/pxiii_bec/bec_widgets/widgets/imports/imports.py b/pxiii_bec/bec_widgets/widgets/imports/imports.py
new file mode 100644
index 0000000..0f8207b
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/imports.py
@@ -0,0 +1,6 @@
+from mx_bec.bec_widgets.widgets.omega_control.becskill.becskill_omega_control import AareOmegaControl as BECOC
+from mx_bec.bec_widgets.widgets.omega_control.ponytail.ponytail_omega_control import AareOmegaControl as PONYOC
+
+class PxIIIBECskillOC(BECOC): ...
+
+class PXIIIPonytailOC(PONYOC): ...
\ No newline at end of file
diff --git a/pxiii_bec/bec_widgets/widgets/imports/px_iiibe_cskill_oc.pyproject b/pxiii_bec/bec_widgets/widgets/imports/px_iiibe_cskill_oc.pyproject
new file mode 100644
index 0000000..d85d94e
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/px_iiibe_cskill_oc.pyproject
@@ -0,0 +1 @@
+{'files': ['imports.py']}
\ No newline at end of file
diff --git a/pxiii_bec/bec_widgets/widgets/imports/px_iiibe_cskill_oc_plugin.py b/pxiii_bec/bec_widgets/widgets/imports/px_iiibe_cskill_oc_plugin.py
new file mode 100644
index 0000000..dc59eba
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/px_iiibe_cskill_oc_plugin.py
@@ -0,0 +1,57 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+from qtpy.QtDesigner import QDesignerCustomWidgetInterface
+from qtpy.QtWidgets import QWidget
+
+from bec_widgets.utils.bec_designer import designer_material_icon
+from pxiii_bec.bec_widgets.widgets.imports.imports import PxIIIBECskillOC
+
+DOM_XML = """
+
+
+
+
+"""
+
+
+class PxIIIBECskillOCPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
+ def __init__(self):
+ super().__init__()
+ self._form_editor = None
+
+ def createWidget(self, parent):
+ if parent is None:
+ return QWidget()
+ t = PxIIIBECskillOC(parent)
+ return t
+
+ def domXml(self):
+ return DOM_XML
+
+ def group(self):
+ return ""
+
+ def icon(self):
+ return designer_material_icon(PxIIIBECskillOC.ICON_NAME)
+
+ def includeFile(self):
+ return "px_iiibe_cskill_oc"
+
+ def initialize(self, form_editor):
+ self._form_editor = form_editor
+
+ def isContainer(self):
+ return False
+
+ def isInitialized(self):
+ return self._form_editor is not None
+
+ def name(self):
+ return "PxIIIBECskillOC"
+
+ def toolTip(self):
+ return "PxIIIBECskillOC"
+
+ def whatsThis(self):
+ return self.toolTip()
diff --git a/pxiii_bec/bec_widgets/widgets/imports/pxiii_ponytail_oc.pyproject b/pxiii_bec/bec_widgets/widgets/imports/pxiii_ponytail_oc.pyproject
new file mode 100644
index 0000000..d85d94e
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/pxiii_ponytail_oc.pyproject
@@ -0,0 +1 @@
+{'files': ['imports.py']}
\ No newline at end of file
diff --git a/pxiii_bec/bec_widgets/widgets/imports/pxiii_ponytail_oc_plugin.py b/pxiii_bec/bec_widgets/widgets/imports/pxiii_ponytail_oc_plugin.py
new file mode 100644
index 0000000..e34470b
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/pxiii_ponytail_oc_plugin.py
@@ -0,0 +1,57 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+from qtpy.QtDesigner import QDesignerCustomWidgetInterface
+from qtpy.QtWidgets import QWidget
+
+from bec_widgets.utils.bec_designer import designer_material_icon
+from pxiii_bec.bec_widgets.widgets.imports.imports import PXIIIPonytailOC
+
+DOM_XML = """
+
+
+
+
+"""
+
+
+class PXIIIPonytailOCPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
+ def __init__(self):
+ super().__init__()
+ self._form_editor = None
+
+ def createWidget(self, parent):
+ if parent is None:
+ return QWidget()
+ t = PXIIIPonytailOC(parent)
+ return t
+
+ def domXml(self):
+ return DOM_XML
+
+ def group(self):
+ return ""
+
+ def icon(self):
+ return designer_material_icon(PXIIIPonytailOC.ICON_NAME)
+
+ def includeFile(self):
+ return "pxiii_ponytail_oc"
+
+ def initialize(self, form_editor):
+ self._form_editor = form_editor
+
+ def isContainer(self):
+ return False
+
+ def isInitialized(self):
+ return self._form_editor is not None
+
+ def name(self):
+ return "PXIIIPonytailOC"
+
+ def toolTip(self):
+ return "PXIIIPonytailOC"
+
+ def whatsThis(self):
+ return self.toolTip()
diff --git a/pxiii_bec/bec_widgets/widgets/imports/register_px_iiibe_cskill_oc.py b/pxiii_bec/bec_widgets/widgets/imports/register_px_iiibe_cskill_oc.py
new file mode 100644
index 0000000..b05e8b5
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/register_px_iiibe_cskill_oc.py
@@ -0,0 +1,15 @@
+def main(): # pragma: no cover
+ from qtpy import PYSIDE6
+
+ if not PYSIDE6:
+ print("PYSIDE6 is not available in the environment. Cannot patch designer.")
+ return
+ from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection
+
+ from pxiii_bec.bec_widgets.widgets.imports.px_iiibe_cskill_oc_plugin import PxIIIBECskillOCPlugin
+
+ QPyDesignerCustomWidgetCollection.addCustomWidget(PxIIIBECskillOCPlugin())
+
+
+if __name__ == "__main__": # pragma: no cover
+ main()
diff --git a/pxiii_bec/bec_widgets/widgets/imports/register_pxiii_ponytail_oc.py b/pxiii_bec/bec_widgets/widgets/imports/register_pxiii_ponytail_oc.py
new file mode 100644
index 0000000..634feb1
--- /dev/null
+++ b/pxiii_bec/bec_widgets/widgets/imports/register_pxiii_ponytail_oc.py
@@ -0,0 +1,15 @@
+def main(): # pragma: no cover
+ from qtpy import PYSIDE6
+
+ if not PYSIDE6:
+ print("PYSIDE6 is not available in the environment. Cannot patch designer.")
+ return
+ from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection
+
+ from pxiii_bec.bec_widgets.widgets.imports.pxiii_ponytail_oc_plugin import PXIIIPonytailOCPlugin
+
+ QPyDesignerCustomWidgetCollection.addCustomWidget(PXIIIPonytailOCPlugin())
+
+
+if __name__ == "__main__": # pragma: no cover
+ main()
diff --git a/pxiii_bec/daily_setup_files/Ge_edge_derivative.png b/pxiii_bec/daily_setup_files/Ge_edge_derivative.png
new file mode 100644
index 0000000..474859c
Binary files /dev/null and b/pxiii_bec/daily_setup_files/Ge_edge_derivative.png differ
diff --git a/pxiii_bec/daily_setup_files/Ge_edge_signal.png b/pxiii_bec/daily_setup_files/Ge_edge_signal.png
new file mode 100644
index 0000000..a8b902a
Binary files /dev/null and b/pxiii_bec/daily_setup_files/Ge_edge_signal.png differ
diff --git a/pxiii_bec/daily_setup_files/daily_beam_13000eV.png b/pxiii_bec/daily_setup_files/daily_beam_13000eV.png
new file mode 100644
index 0000000..010a646
Binary files /dev/null and b/pxiii_bec/daily_setup_files/daily_beam_13000eV.png differ
diff --git a/pxiii_bec/daily_setup_files/daily_beamline_health.csv b/pxiii_bec/daily_setup_files/daily_beamline_health.csv
index 17b0778..a4a5a8a 100644
--- a/pxiii_bec/daily_setup_files/daily_beamline_health.csv
+++ b/pxiii_bec/daily_setup_files/daily_beamline_health.csv
@@ -18,3 +18,11 @@ timestamp,energy_eV,pitch_offset,flux_ph_s,beam_start_x_px,beam_start_y_px,vfm_m
2026-10-04T16:06:54,13001,0.002,,,,,,,,-3.3,0.2,-6.58865,-6.63733,-4.49432,1.69984,-0.04999,4.00172
2026-10-04T16:10:07,13001,0.002,,,,,,,,-0.1,-0.3,-6.58865,-6.63734,-4.49436,1.69983,-0.04991,4.00177
2026-10-04T16:12:45,13001,0.002,,,,,,,,-2.1,-0.8,-6.58866,-6.63735,-4.49437,1.69983,-0.04986,4.00193
+2026-10-04T18:36:46,13000,-0.000,,,,,,,,1.2,-0.8,-6.58865,-6.63733,-4.49435,1.69983,-0.04993,4.00182
+2026-11-03T13:14:51,,,,,,,,,,,,-6.59169,-6.64329,-4.49439,1.69970,-0.04208,4.00270
+2026-11-03T13:18:48,12640,-0.000,,,,,,,,,,-6.59169,-6.64329,-4.49439,1.69971,-0.04208,4.00270
+2026-11-03T13:21:42,12640,,,,,,,,,,,-6.59169,-6.64329,-4.49439,1.69970,-0.04208,4.00269
+2026-11-03T13:24:04,13000,-0.000,,,,,,,,,,-6.59169,-6.64329,-4.49438,1.69971,-0.04208,4.00269
+2026-11-03T15:28:39,,,,,,,,,,,,-6.59168,-6.64327,-4.49437,1.69969,-0.04209,4.00277
+2026-11-03T15:30:40,,,,,,,,,,,,-6.59167,-6.64327,-4.49437,1.69970,-0.04209,4.00279
+2026-11-03T16:03:56,,,,,,,,,,,,-6.59168,-6.64327,-4.49440,1.69969,-0.04210,4.00281
diff --git a/pxiii_bec/macros/analyse_ge_edge.py b/pxiii_bec/macros/analyse_ge_edge.py
new file mode 100644
index 0000000..19a9e60
--- /dev/null
+++ b/pxiii_bec/macros/analyse_ge_edge.py
@@ -0,0 +1,351 @@
+"""Analyse LUT data to determine fits for DCM and undulator parameters."""
+
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+from scipy.signal import savgol_filter
+
+from pxiii_bec.scripts import beamline_context as bl
+
+
+
+def get_data(filename):
+ """Open the raw DCM calibration data file."""
+
+ filename = bl.env.lut_dir / f"{filename}"
+
+ return pd.read_csv(filename)
+
+
+def format_polynomial(fit):
+ """Return polynomial coefficients as a readable equation string."""
+
+ terms = []
+ order = len(fit) - 1
+
+ for i, coeff in enumerate(fit):
+ power = order - i
+
+ if power > 1:
+ term = f"{coeff:+.3e} x^{power}"
+ elif power == 1:
+ term = f"{coeff:+.3e} x"
+ else:
+ term = f"{coeff:+.4f}"
+
+ terms.append(term)
+
+ return " ".join(terms).lstrip("+")
+
+
+def plot_lut(
+ ax,
+ arr,
+ fit_order,
+ xname=None,
+ yname=None,
+ title=None,
+ show_equation=True,
+):
+ """
+ Fit LUT data and draw the data and fit onto an existing axes.
+
+ Parameters
+ ----------
+ ax : matplotlib.axes.Axes
+ Axes on which to draw the plot.
+ arr : numpy.ndarray
+ Two-column array containing x and y data.
+ fit_order : int
+ Polynomial order to fit.
+ xname : str, optional
+ X-axis label.
+ yname : str, optional
+ Y-axis label.
+ title : str, optional
+ Plot title.
+ show_equation : bool, optional
+ Display the fitted polynomial on the plot.
+
+ Returns
+ -------
+ numpy.ndarray
+ Polynomial coefficients.
+ """
+
+ x = arr[:, 0]
+ y = arr[:, 1]
+
+ fit = np.polyfit(x, y, fit_order)
+ p = np.poly1d(fit)
+
+ x_range = np.linspace(x.min(), x.max(), 100)
+
+ ax.scatter(
+ x,
+ y,
+ label="Data",
+ color="rebeccapurple",
+ )
+
+ ax.plot(
+ x_range,
+ p(x_range),
+ label="Polynomial fit",
+ color="lightcoral",
+ )
+
+ if xname is not None:
+ ax.set_xlabel(xname)
+
+ if yname is not None:
+ ax.set_ylabel(yname)
+
+ if title is not None:
+ ax.set_title(title)
+
+ if show_equation:
+ equation = format_polynomial(fit)
+
+ ax.text(
+ 0.02,
+ 0.02,
+ equation,
+ transform=ax.transAxes,
+ fontsize=9,
+ verticalalignment="bottom",
+ bbox=dict(
+ boxstyle="round",
+ facecolor="whitesmoke",
+ edgecolor="lightgray",
+ alpha=0.8,
+ ),
+ )
+
+ return fit
+
+
+def lut_plot(
+ arr,
+ xname,
+ yname,
+ title,
+ fit_order,
+ save=False,
+):
+ """
+ Create a standalone LUT plot.
+
+ This is useful for calibration plots such as DCM pitch where only
+ one fit is required.
+ """
+
+ savefile = bl.env.lut_dir / f"{title}.png"
+
+ fig, ax = plt.subplots()
+
+ fit = plot_lut(
+ ax,
+ arr,
+ fit_order,
+ xname=xname,
+ yname=yname,
+ title=title,
+ show_equation=True,
+ )
+
+ ax.legend(fontsize=9)
+
+ fig.tight_layout()
+
+ if save:
+ fig.savefig(savefile, bbox_inches="tight")
+ plt.close(fig)
+ else:
+ plt.show()
+
+ print(np.poly1d(fit))
+
+ return fit
+
+
+def ge_edge_analysis(filename, save=True, smooth=False):
+ """
+ Analyse a Ge K-edge scan.
+
+ Finds the approximate absorption edge from the largest negative
+ derivative of the BCU BPM sum signal.
+
+ Parameters
+ ----------
+ filename : str
+ CSV filename without the .csv extension.
+ save : bool, optional
+ Save the plots to the LUT directory instead of displaying them.
+
+ Returns
+ -------
+ dict
+ Measured edge energy, expected edge energy, energy offset,
+ and derivative data.
+ """
+
+ # Known Ge K absorption edge
+ expected_edge = 11103.1 # eV
+
+ df = get_data(filename)
+
+ energy = df["Energy"].to_numpy()
+ signal = df["i2"]
+ # signal1 = df["bcu_bpmsum"].to_numpy()
+ # signal = df["transmission"].to_numpy()
+
+ # ----------------------------------------------------------
+ # Calculate derivative with smoothing
+ # ----------------------------------------------------------
+ smooth_signal = savgol_filter(
+ signal,
+ window_length=11,
+ polyorder=2,
+ )
+
+ # ----------------------------------------------------------
+ # Choose whether or not to use smoothing
+ # ----------------------------------------------------------
+
+ if smooth:
+ derivative = np.gradient(smooth_signal, energy)
+ else:
+ derivative = np.gradient(signal, energy)
+
+ # Locate the strongest negative derivative.
+
+ edge_idx = np.argmin(derivative)
+
+ measured_edge = energy[edge_idx]
+ edge_derivative = derivative[edge_idx]
+
+ energy_offset = expected_edge - measured_edge
+
+ # ----------------------------------------------------------
+ # Print results
+ # ----------------------------------------------------------
+ def print_results():
+ print()
+ print("Ge K-edge analysis")
+ print("------------------")
+ print(f"Expected edge: {expected_edge:.2f} eV")
+ print(f"Measured edge: {measured_edge:.2f} eV")
+ print(f"Energy offset: {energy_offset:+.2f} eV")
+ print()
+
+ # ----------------------------------------------------------
+ # Plot BPM signal
+ # ----------------------------------------------------------
+
+ fig1, ax1 = plt.subplots()
+
+ ax1.plot(
+ energy,
+ signal,
+ "o-",
+ markersize=4,
+ label="Data",
+ )
+
+ # ax1.plot(
+ # energy,
+ # smooth_signal,
+ # "-",
+ # label="Smoothed",
+ # )
+
+ ax1.axvline(
+ measured_edge,
+ linestyle="--",
+ label=f"Measured edge: {measured_edge:.2f} eV",
+ )
+ if energy.min() <= expected_edge <= energy.max():
+ ax1.axvline(
+ expected_edge,
+ linestyle=":",
+ label=f"Expected edge: {expected_edge:.1f} eV",
+ )
+
+ ax1.set_xlabel("Energy (eV)")
+ ax1.set_ylabel("Transmission (BCU BPM / SS BPM)")
+ ax1.set_title("Ge K-edge scan")
+ ax1.legend()
+
+ fig1.tight_layout()
+
+ # ----------------------------------------------------------
+ # Plot derivative
+ # ----------------------------------------------------------
+
+ fig2, ax2 = plt.subplots()
+
+ ax2.plot(
+ energy,
+ derivative,
+ "o-",
+ markersize=4,
+ )
+
+ ax2.plot(
+ measured_edge,
+ edge_derivative,
+ "o",
+ markersize=8,
+ label=f"Edge: {measured_edge:.2f} eV",
+ )
+
+ ax2.axvline(
+ measured_edge,
+ linestyle="--",
+ )
+
+ ax2.set_xlabel("Energy (eV)")
+ ax2.set_ylabel("d(Transmission) / dE")
+ ax2.set_title("Ge K-edge derivative")
+ ax2.legend()
+
+ fig2.tight_layout()
+
+ # ----------------------------------------------------------
+ # Save or display
+ # ----------------------------------------------------------
+
+ if save:
+ signal_file = bl.env.daily_setup_dir / "Ge_edge_signal.png"
+ derivative_file = bl.env.daily_setup_dir / "Ge_edge_derivative.png"
+
+ fig1.savefig(signal_file, bbox_inches="tight", dpi=150)
+ fig2.savefig(derivative_file, bbox_inches="tight", dpi=150)
+
+ plt.close(fig1)
+ plt.close(fig2)
+
+ print_results()
+
+ print(f"Saved: {signal_file}")
+ print(f"Saved: {derivative_file}")
+
+ return {
+ "expected_edge": expected_edge,
+ "measured_edge": measured_edge,
+ "energy_offset": energy_offset,
+ "signal_png": signal_file,
+ "derivative_png": derivative_file,
+ }
+
+ else:
+ plt.show()
+ print_results()
+
+ return {
+ "expected_edge": expected_edge,
+ "measured_edge": measured_edge,
+ "energy_offset": energy_offset,
+ }
+
diff --git a/pxiii_bec/macros/luts/20261104_ge_edge_coarse.csv b/pxiii_bec/macros/luts/20261104_ge_edge_coarse.csv
new file mode 100644
index 0000000..1b6ac48
--- /dev/null
+++ b/pxiii_bec/macros/luts/20261104_ge_edge_coarse.csv
@@ -0,0 +1,51 @@
+Energy,Bragg,bcu_bpmsum,i2,transmission
+11003.10,10.35,124.50,1.197e-05,9.6130e-08
+11007.18,10.35,128.92,1.309e-05,1.0150e-07
+11011.26,10.35,130.14,1.427e-05,1.0961e-07
+11015.34,10.34,133.24,1.280e-05,9.6040e-08
+11019.43,10.34,129.37,1.322e-05,1.0216e-07
+11023.51,10.33,136.42,1.330e-05,9.7464e-08
+11027.59,10.33,129.46,1.322e-05,1.0213e-07
+11031.67,10.33,131.41,1.243e-05,9.4619e-08
+11035.75,10.32,132.49,1.305e-05,9.8472e-08
+11039.83,10.32,133.81,1.481e-05,1.1069e-07
+11043.92,10.32,134.85,1.237e-05,9.1768e-08
+11048.00,10.31,132.94,1.234e-05,9.2808e-08
+11052.08,10.31,136.15,1.252e-05,9.1962e-08
+11056.16,10.30,142.94,1.379e-05,9.6473e-08
+11060.24,10.30,136.62,1.716e-05,1.2561e-07
+11064.32,10.30,141.68,1.448e-05,1.0218e-07
+11068.41,10.29,135.37,1.448e-05,1.0694e-07
+11072.49,10.29,139.52,1.598e-05,1.1452e-07
+11076.57,10.28,140.70,1.302e-05,9.2566e-08
+11080.65,10.28,137.13,1.373e-05,1.0014e-07
+11084.73,10.28,141.89,1.346e-05,9.4886e-08
+11088.81,10.27,145.36,1.579e-05,1.0861e-07
+11092.90,10.27,142.66,1.751e-05,1.2275e-07
+11096.98,10.27,147.96,1.702e-05,1.1503e-07
+11101.06,10.26,160.54,1.556e-05,9.6909e-08
+11105.14,10.26,148.16,1.529e-05,1.0318e-07
+11109.22,10.25,144.66,1.415e-05,9.7828e-08
+11113.30,10.25,148.70,1.364e-05,9.1754e-08
+11117.39,10.25,165.99,1.039e-05,6.2605e-08
+11121.47,10.24,148.95,2.452e-06,1.6461e-08
+11125.55,10.24,150.46,2.669e-06,1.7740e-08
+11129.63,10.23,148.16,2.743e-06,1.8512e-08
+11133.71,10.23,148.39,2.815e-06,1.8971e-08
+11137.79,10.23,148.77,3.307e-06,2.2230e-08
+11141.88,10.22,149.71,4.117e-06,2.7502e-08
+11145.96,10.22,149.19,2.813e-06,1.8853e-08
+11150.04,10.22,147.49,3.900e-06,2.6444e-08
+11154.12,10.21,149.81,2.873e-06,1.9177e-08
+11158.20,10.21,156.86,3.692e-06,2.3538e-08
+11162.28,10.20,150.64,3.813e-06,2.5314e-08
+11166.37,10.20,155.09,3.720e-06,2.3984e-08
+11170.45,10.20,149.35,3.814e-06,2.5539e-08
+11174.53,10.19,152.96,4.496e-06,2.9392e-08
+11178.61,10.19,157.67,3.439e-06,2.1811e-08
+11182.69,10.19,155.30,3.918e-06,2.5229e-08
+11186.77,10.18,156.90,3.487e-06,2.2228e-08
+11190.86,10.18,169.74,3.619e-06,2.1321e-08
+11194.94,10.17,158.48,3.852e-06,2.4306e-08
+11199.02,10.17,162.15,3.757e-06,2.3168e-08
+11203.10,10.17,165.00,3.757e-06,2.2766e-08
diff --git a/pxiii_bec/macros/luts/20261104_ge_edge_medium.csv b/pxiii_bec/macros/luts/20261104_ge_edge_medium.csv
new file mode 100644
index 0000000..5e6e1f6
--- /dev/null
+++ b/pxiii_bec/macros/luts/20261104_ge_edge_medium.csv
@@ -0,0 +1 @@
+Energy,Bragg,bcu_bpmsum,i2,transmission
diff --git a/pxiii_bec/macros/luts/DCCM_theta2_Calibration.png b/pxiii_bec/macros/luts/DCCM_theta2_Calibration.png
new file mode 100644
index 0000000..4b88fe7
Binary files /dev/null and b/pxiii_bec/macros/luts/DCCM_theta2_Calibration.png differ
diff --git a/pxiii_bec/macros/luts/dccm_20261004.csv b/pxiii_bec/macros/luts/dccm_20261004.csv
new file mode 100644
index 0000000..95b9201
--- /dev/null
+++ b/pxiii_bec/macros/luts/dccm_20261004.csv
@@ -0,0 +1,9 @@
+energy,theta1,theta2
+6000,-19.24393,19.2421
+7000,-16.40975,16.41021
+8000,-14.31139,14.31331
+9000,-12.69293,12.69598
+10000,-11.4056,11.40978
+12000,-9.48528,9.49078
+14000,-8.12031,8.12688
+15000,-7.57566,7.58258
diff --git a/pxiii_bec/macros/luts/dccm_20261104.csv b/pxiii_bec/macros/luts/dccm_20261104.csv
new file mode 100644
index 0000000..5f19140
--- /dev/null
+++ b/pxiii_bec/macros/luts/dccm_20261104.csv
@@ -0,0 +1,12 @@
+energy,theta1,theta2,diff
+6000,-19.24392,19.24201,-0.00191
+7000,-16.40975,16.41028,0.00053
+8000,-14.31139,14.31331,0.00192
+9000,-12.69293,12.69602,0.00309
+10000,-11.40560,11.40961,0.00401
+11000,-10.35669,10.36160,0.00491
+12000,-9.48528,9.49088,0.00560
+13000,-8.74968,8.75588,0.00620
+14000,-8.12031,8.12689,0.00658
+15000,-7.57565,7.58260,0.00695
+16000,-7.09967,7.10700,0.00733