Add functions to convert between Detector system and Lab system.