@staticmethod
def _fitParseData(x=None, y=None, livetime=None):
    """Parse the input data (MCA and livetime)
        """
    if y is None:
        raise RuntimeError('y keyword argument is mandatory!')
    if hasattr(y, 'info') and hasattr(y, 'data'):
        data = y.data
        mcaIndex = y.info.get('McaIndex', -1)
    else:
        data = y
        mcaIndex = -1
    if x is None:
        if hasattr(y, 'info') and hasattr(y, 'x'):
            x = y.x[0]
    if livetime is None:
        if hasattr(y, 'info'):
            if 'McaLiveTime' in y.info:
                livetime = y.info['McaLiveTime']
    ndim = data.ndim
    if ndim == 0:
        shape = 1, 1
    elif ndim == 1:
        shape = 1, data.size
    else:
        shape = None
    if shape is not None:
        data = data.reshape(shape)
        if livetime is not None:
            livetime = livetime.reshape(shape)
    return x, data, mcaIndex, livetime
