Energy calibration of plastic scintillator detector