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
PrimaryGeneratorAction.cc (2.8 KB)
PrimaryGeneratorAction.hh (2.5 KB)
Run.cc (7.8 KB)

RunAction.cc (3.9 KB)
Uploading: PhysicsList.cc…
Uploading: PhysicsListMessenger.cc…

example/extended/eventgenerator/exgps

@mohamadreza1997

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.

vrs