Total ionizing dose

Hello, please guide me so that I can calculate the total ionizing dose (TID) caused by the proton particles after passing through the aluminum shield in the silicon material. Thanks

You could define a sensitive volume and, after each event, read the deposited energy in that volume, add it, or save it in the table in case you wanted to analyze and correct the readings.

Thank you for your reply. Is there a ready example in Geant4 that I can take help from?!

B1 from the basic examples computes the deposited dose by means of the stepping manager. Take a look.

Otherwise, you can use the primitive scorers described here: Hits — Book For Application Developers 11.2 documentation
Finally, at the end of that page you’ll find as well the command-based scoring that can give you dose deposits by means of macro commands.

Hope it helps.