Creating a pixelated detector

Hello everyone,
I want to create a pixelated detector and calculate the energy deposition in each pixel, is there any suggestions to achieve that.
many regards

There are multiple ways to do that depending on the specifics of your detector. Maybe you can use a Geant4 Parameterised Volume.