Mostly a copy-and-paste of AnaAlgorithm, with cleanup and updates to inherit from AthReentrantAlgorithm.