Example B1 gives different results for gun and gps

Hi,

I am trying to simulate 60keV gamma rays as source in ExampleB1. I tried using both gun and gps in a simple macro.

  1. Macro file for example B1 - gps

/run/initialize
/gps/particle gamma
/gps/energy 60 keV
/run/printProgress 100
/run/beamOn 1000

  1. Macro file for example B1 - gun

/run/initialize
/gun/particle gamma
/gun/energy 60 keV
/run/printProgress 1000
/run/beamOn 1000

I have modified primarygenerator.cc and runaction.cc accordingly for gps. I am attaching the results here:
exampleB1-gps.txt (48.2 KB)
exampleB1-gun.txt (49.4 KB)

Irrespective of the energy value provided with gps in the macro, the output files are always displaying " gamma of 1 MeV". This problem is not there when gun based macro is used. However, the tracking shows the energy 60 keV in both cases. Can anyone help me understand this?
Also, why is there a difference in scoring between both the cases?

Regards
Charubala