Skip to main content

broadened_cross_sections_on_working_grid

Function broadened_cross_sections_on_working_grid 

Source
pub fn broadened_cross_sections_on_working_grid(
    energies: &[f64],
    resonance_data: &[ResonanceData],
    temperature_k: f64,
    instrument: Option<&InstrumentParams>,
    cancel: Option<&AtomicBool>,
) -> Result<WorkingGridXs, TransmissionError>
Expand description

Like broadened_cross_sections but returns the Doppler-broadened σ on the working grid (auxiliary extended grid when Gaussian resolution is active, else the data grid) together with the WorkingGridLayout.

The spatial production pipeline (spatial_map_typed) uses this to pre-store σ on the working grid so each per-pixel PrecomputedTransmissionModel applies Beer-Lambert + resolution on the working grid and extracts the data points last — matching forward_model (issue #608). Resolution is NOT applied (issue #442).