Hit Collection Implementation


I want to adapt my code to use the sensitive detector + hit collection approach for creating output, but after consuming a lot of information sources on it I understand how it works structurally and theoretically, but I am struggling to successfully implement it in my code.

Does anybody know of any simple examples available to aid with this implementation? The existing Geant4 examples I have seen that utilise it feel quite complex and specific for their own purpose. Thank you!