Cannot simulate 1E10 histories

@faca87 could you please help me to generate event with multiple /run/beamOn and store data in a single root file , means the single root file must get updated for each run .

I followed your post " Set double for number of primary particles" but couldn’t succeed .