Code written in preparation for a beamtime at J-PARC