Segmentation fault on more than 3 events

Hi,

I have created my own sensitive detector and hit classes. The application compiles normally and works when a single or two particles are fired. However debugging output suggests my hit collection remain empty with zero entries even though I am scoring interaction locations suggesting perhaps some coordinates should be recorded but also on the third particle the application seg faults.

Any ideas why this may be? Why would the application run on 2 particles but not 3 or more?

Correction, it seems the number of particles are immaterial rather whether an interaction occurs and as such hits generated in the volume. Lower energy particles always interact and whenever hits are generated the application segfaults.

Any help would be much appreciated.

Solved.

I made several adjustments. Including removing some incomplete references to inexistent touchables. It would be nice if there was a discussion on guidance for debugging on this kind of topic.

Cheers!