def make_table(func, title, prefix='# '):
    rows = [('x', 'fitted eff [%]', 'true eff [%]', 'delta [%]')]
    for p in points:
        e1 = (100 * func(p, error=True))
        e2 = ((100 * eff0(p)) / emax)
        d = (e1 - e2)
        row = (('%4.2f' % p), ('%s' % e1.toString('(%5.2f+-%4.2f)')), ('%.2f' % e2), ('%s' % d.toString('(%5.2f+-%4.2f)')))
        rows.append(row)
    from ostap.logger.table import table
    return table(rows, title=title, prefix=prefix)
def make_table(func, title, prefix='# '):
    rows = [('x', 'fitted eff [%]', 'true eff [%]', 'delta [%]')]
    for p in points:
        e1 = (100 * func(p, error=True))
        e2 = ((100 * eff0(p)) / emax)
        d = (e1 - e2)
        row = (('%4.2f' % p), ('%s' % e1.toString('(%5.2f+-%4.2f)')), ('%.2f' % e2), ('%s' % d.toString('(%5.2f+-%4.2f)')))
        rows.append(row)
    from ostap.logger.table import table
    return table(rows, title=title, prefix=prefix)