Cout EventAction information in the EndOfRunAction()

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

Geant4 Version: 11.3.2
Operating System: Ubuntu 24.00
Compiler/Version: gcc 13.3.0
CMake Version: 3.28.3


Information in SteppingAction could be displayed in RunAction via SteppingAction::Instance()->. Is it possible by analogous way display EventAction information ?

Yes, though that is up to the user to implement the necessary couplings. Example B3a gives an example here.

Generally, concrete user actions shouldn’t be implemented as singletons though. That’s likely going to introduce all sorts of unnecessary complexity.