Expand description
Active-bin masking for fit-energy-range restriction.
SAMMY EMIN/EMAX equivalent (INPut-file card set 2, manual Table VI A.1).
When a user restricts the fit to [E_min, E_max], the GUI extends
the energy grid by ~5×FWHM beyond each boundary so resonances near
the boundaries are correctly broadened, and the cost-function paths
(LM transmission, joint-Poisson PBD) consult the mask returned here
to skip residual contributions outside [E_min, E_max].
Returns None when no range is set; callers treat that as
“all bins active” (default behaviour).
Functions§
- active_
count - Active-bin count for a mask.
None= all bins active. - build_
active_ mask - Build a per-bin active mask from the energy grid and an optional
user-specified
[E_min, E_max]range. Biniis active iffE_min ≤ energies[i] ≤ E_max.