How to define energy spectrum of input particle

Dear all,
I saw from the book for application that geant4 can define energy spetrum using built-in function or user defined one. But how to can make it ? There is any example for defining energy spectrum? For example, I want a energy spectrum in the form as exponential function plus gauss function.

Hello,
Hope you find this useful to define energy spectrum of input particles:

https://hurel.hanyang.ac.kr/Geant4/Geant4_GPS/reat.space.qinetiq.com/gps/examples/examples.html

Hello. thanks for your advice.I will refer to the example: examples/extended/eventgenerator/exgps.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.