tools for reweighting histograms from parallel tempering computations