scippneutron.conversion.beamline.L2#

scippneutron.conversion.beamline.L2(*, scattered_beam)[source]#

Compute the length of the scattered beam.

The result is the secondary beam length

\[L_2 = | \mathtt{incident\_beam} |\]
Parameters:

scattered_beam (Variable | DataArray | Dataset | DataGroup[Any]) – Beam from sample to detector. Expects dtype=vector3.

Returns:

Variable | DataArray | Dataset | DataGroup[Any]\(L_2\)

See also

straight_scattered_beam

Compute the scattered beam for a straight beamline.