invariant mass histo code ready to test