Geant4 simulations of the lead fluoride calorimeter