Design, status and test of the Mu2e crystal calorimeter