next-exp / nexus

Geant4 simulation framework of the NEXT Collaboration
5 stars 55 forks source link

Clean up actions #160

Closed paolafer closed 2 years ago

paolafer commented 2 years ago

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.