This PR cleans up the code of the event actions, eliminating obsolete code and the SaveAllEventAction class. To save all the events in a run one should simply use the Geant4 default event action, which is achieved by removing any event action command from the configuration file.
In addition, the persistency manager has been modified so that the number of interacting events is saved only if DefaultEventAction is used, because it's the only case where the variable used to store the number of interacting events is meaningful. In any other case, that field will not appear in the output file.
This PR cleans up the code of the event actions, eliminating obsolete code and the
SaveAllEventAction
class. To save all the events in a run one should simply use the Geant4 default event action, which is achieved by removing any event action command from the configuration file. In addition, the persistency manager has been modified so that the number of interacting events is saved only ifDefaultEventAction
is used, because it's the only case where the variable used to store the number of interacting events is meaningful. In any other case, that field will not appear in the output file.