analysis code for aHHH reweighting