The function AnalTerm() is the place to do any end-of-run operations, e.g. filling summary histograms.