Question about method to get number of events

Hello everyone.

  1. I have a question about the method to get the total number of simulated events. Is there any difference about the following two methods?

Method 1:

G4int event_numbers = runManager->GetCurrentRun()->GetNumberOfEventToBeProcessed();

Method 2:

G4int Total_Events_To_Be_Processed = runManager->GetNumberOfEventsToBeProcessed();
  1. How can I get the total number of threads set in main() function in any one class of the program?

Thank you in advance.