HAMMER: Reweighting tool for simulated data samples