Energy deposition is higher than the primary source energy!

Hey @AhmedAli363,
I have modified the exampleB1 to have an energy spectrum of my scoring volume that I set inside DetectorConsturction class. I have edited the RunAction, SteppingAction and EventAction classes accordingly. and It returns a root file. but it contains the spectrum:


It gives all 10^5 interactions as zero deposition of energy but the simulation shows me quite a lot of interactions. Can you please help me out with it?
I also raised the question in this forum in this link.
It would be very helpful if you can suggest me something progressive. Thank you.