Electromagnetic and hadron calorimeters in the MIPP experiment