Getting the processes involved in an event

Hi there, I am trying to get the processes involved in an event. So far I am able to get those involved in a step, in my SteppingAction. The idea is to retrieve all the processes at the end of the event in the EventAction.

To do this can I define an accumulable like in the example B1 but instead of resetting it in the BeginOfRunAction() doing so in the BeginOfEventAction()?

Thank you in advance for your time.

Dear Diego,

I think you can do it, analogously to what is done in the RunAction class.

Cheers

Dear @guatelli,

I have been trying to use G4Accumulable<T> with T = G4String but I canĀ“t get it to work. Does the G4Accumulable<T> class support G4String as template?

Thank you