<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_data_for_notifications(self, contact, notif, host_ref):
 """Get data for a notification :param contact: The contact to return :type contact: :param notif: the notification to return :type notif: :return: list containing the service, the host and the given parameters :rtype: list """

        if not host_ref:
            return [self, contact, notif]
        return [host_ref, self, contact, notif]