The LYSO crystal calorimeter for the Mu2e experiment