# Hit Collection Implementation

**URL:** <https://geant4-forum.web.cern.ch/t/hit-collection-implementation/10970>\
**Category:** Recording, Visualizing and Persisting Data\
**Created:** [August 17, 2023, 11:30am UTC](https://geant4-forum.web.cern.ch/t/hit-collection-implementation/10970 "2023-08-17T11:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LEley22](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/leley22/32/5772_2.png) [@LEley22](https://geant4-forum.web.cern.ch/u/LEley22)\
**Post date:** [August 17, 2023, 11:30am UTC](https://geant4-forum.web.cern.ch/t/hit-collection-implementation/10970/1 "2023-08-17T11:30:21Z")

</div>

Hi!

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!  
Lauryn
