Expand description
The beam, in neutrons per µs of flight time, fitted to the open-beam counts it produces through the instrument pulse.
Structs§
- Calibration
- A neutron of flight time
uover the flight pathflight_path_m(m) arrives att0_us + u(µs) plus a delay drawn frompulse.fit_countsfitst0_us,flight_path_mand the pulse’s numbers unless they are known;fit_open_beamuses their starting values. - Open
Beam Fit - The fitted open beam.
- Pulse
- The Ikeda–Carpenter pulse with
α = α₀√E + α₁andβ = β₀√E + β₁in 1/µs,Ein eV, a storage fractionRoverenergy_span_ev, or linear in√EfromRat its low end toR_highat its high end, the proton pulse’s triangle of FWHMhin µs, given byh², in which the counts are smooth down toh = 0, and an optional detector tail.αandβmust be at least 1e-9 µs⁻¹ across the span,βeven where the storage fraction is 0.
Constants§
- BOUND
- Largest
Σ_k (μ_fine − μ_coarse)² / μ_fine, over bins predicted non-empty, by which halving the grid may change the predicted counts for the finer grid to be accepted.
Functions§
- fit_
open_ beam - Fit the beam to the raw open-beam counts
open_countsof the time binstime_edges_us(µs), each bin recording the fractionopen_liveof the counts arriving in it, or every one when that isNone.knowngives, per bin, the counts that arrive without the beam, before the live fraction, or none when that isNone.ln φ, the logarithm of the beam, is a cubic spline inln uwith knots from the first edge’s flight time to the last edge’s; outside them the beam is the spline’s continuation, which reaches the bins only through the pulse’s delay or, for a folded pulse, its early tail. Neutrons faster than the grid’s range, each reaching the bins with less thanNEGLIGIBLE_ARRIVAL_PROBABILITYchance, are left out.