Calibration of a sampling total absorption detector designed for neutrino experiments