make pushToPersistent public (?)
The AnalysisHandler
has a bunch of public member functions to query cross-section and sum of weights mid-run, but if queried after an event has been processed, the event group hasn't collapsed yet, so the values are not quite up to date. The only (public) method to ensure that the last event group is collapsed and pushed to persistent is currently finalize()
as far as I can tell, which by itself is an expensive operation (e.g. if the user just wants to check the cross-section/sumW before actually intending to finalize).
Shouldn't we make pushToPersistent
public to allow the user to force the last event to persistent from the outside?