Trouble getting both edep and angular distribution together

Hi! I’m trying to find the energy deposited and the angular distributions of incident particles on my detector. However when do both edep and angular distribution, the run doesn’t complete. when i do either the edep or the angular distribution, my code works just fine and takes in the input entries.

you can see that i only got three entries but i have taken 10k events