Resolution function (non-prompt J/$\psi$~fraction calculation)