This issue is to convert the energy deposit sum to the number of photoelectrons (Npe) before the pulse generation.