Definition of gps energy spectrum

Hello, I am a newbie, please help.
According to the attached files, I have defined the energy spectrum, but I get the error COMMAND NOT FOUND </gps/particle gamma>, can anyone help?
Thanks (2.8 KB)
PrimaryGeneratorAction.hh (2.5 KB) (7.8 KB) (3.9 KB)



I see you deleted post consist hard words. Is your state of mind OK?

BTW, Is your problem solved?

with the information you provided [not appropriate], I suggest you to double check initialize condition before creating a particle. You can do it in macro or in main.CC.