Fixed memory leak issues in EventAction.
Modified event filtering to correct errors in read-out energies.