scippneutron.tof.unwrap.relation_between_time_of_arrival_and_tof#

scippneutron.tof.unwrap.relation_between_time_of_arrival_and_tof(frame, frame_start, ltotal)[source]#

Compute the slope and intercept of a linear relationship between time-of-arrival and tof, which can be used to create lookup tables which can give the time-of-flight from the time-of-arrival.

We take the polygons that define the subframes, given by the chopper cascade, and approximate them by straight lines.

Parameters:
Return type:

TimeOfArrivalToTimeOfFlight