Multiple scattering

I am always indebted.
Thanks to everyone’s help, we were able to reproduce the detector shown in the figure below.
Furthermore, it has become possible to create an energy distribution for each particle.
This time, I would like you to find the error on the program screen below. This is part of Trackingaction.cc. I improved it so that I can get data of proton, deuteron, triton, 3He, alpha.
I need your help again.

体系図

Hello,

I’m not sure what error you’re referring to. I can’t find an error indication on either of the pictures you attached. Maybe my eyes are deceiving me!

Best,

Charles

Thank you for your reply. Instead of finding the error, please check if the particles of L109 to L113 are written correctly. Thank you.