ess.bifrost.detector.arc_number#
- ess.bifrost.detector.arc_number(beamline)[source]#
Calculate BIFROST arc index number from pixel final energy
The BIFROST analyzers are each set to diffract an energy in the set (2.7, 3.2, 3.8, 4.4. 5.0) meV. This energy is only valid for the central point of the center tube of the associated detector triplet. All other pixels will have a final energy slightly higher or lower.
This function assigns the closest arc number indexing the ordered set above.
- Parameters:
beamline (
BeamlineWithSpectrometerCoords
[TypeVar
(RunType
,ess.reduce.nexus.types.SampleRun
(int
),ess.reduce.nexus.types.VanadiumRun
(int
))]) – A data array with a ‘final_energy’ coordinate which is the per-pixel (or event) final neutron energy.- Returns:
ArcNumber
[TypeVar
(RunType
,ess.reduce.nexus.types.SampleRun
(int
),ess.reduce.nexus.types.VanadiumRun
(int
))] – The arc index of the analyzer from which the neutron scattered