Beam test results from the SPAKEBAB electromagnetic calorimeter