updated geant4 simulation code of shms. This is an upgrade from shms_sim.