Number of events to be processed for each thread

numberOfEventToBeProcessed is the number of events to be processed for all the threads in a run.

How can we get the number of events to be processed for each worker thread in a run?

Thanks,

FG

I don’t think you can. Each thread gets a new event dispatched when it finishes it’s current one. On average, it’s total-events/nthreads, but that won’t be true exactly for each thread.

Thank you so much, Michael.
Yes, I also found that numberOfEvent in G4Run can be updated for each thread, not for all threads.
Only after the run is done, we can know the final numberOfEvent for a thread. As you said, it is about equal to (not exactly) the numberOfEventToBeProcessed/# of threads.