Preshower calorimeter simulation for geant4