pub fn parse_resonance_covariance(
endf_text: &str,
data: &ResonanceData,
window_ev: RangeInclusive<f64>,
) -> Result<Option<ResonanceCovariance>, EndfParseError>Expand description
The covariance, from File 32 (MT=151), of the energy, neutron width and
capture width of each resonance of data with an energy in window_ev
that File 32 lists with the same spin and an energy and widths that agree
to a relative 1e-5. A resonance listed in several short-range
sections has their contributions summed; resonances outside the window,
or that File 32 does not list, are left out. None when the text has no
File 32 or it lists no resonance in the window.
§Errors
EndfParseError::InvalidNumber for an empty window or one with a NaN
bound. EndfParseError::UnsupportedFormat for a File 32 that is not
of the isotope data holds, or not of its resolved Reich–Moore ranges in
the general form (LCOMP=1) over each resonance’s energy, neutron width and
capture width (MPAR=3), or that gives a scattering-radius covariance
(NRO≠0 or ISR≠0) or long-range sections, or an unresolved range other
than a last one of LRF=1, holds a number that is not finite or records
past its last range, or lists a resonance in the window
that matches no Reich–Moore resonance of data, more than one, or one its
block already lists. The record errors of parse_endf_file2.
Reference: ENDF-6 Formats Manual (ENDF-102, 2023), §32.2.2.2 for the layout and §32.3 for the correspondence with File 2 and the summing of a resonance listed in several blocks.