def METHOD_NAME(waveform, ramp=200, flat=100, fall=40, padAfter=False):
    """
    Computes an asymmetric trapezoidal filter
    """
    trap = np.zeros(len(waveform))
    for i in range(len(waveform) - 1000):
        w1 = ramp
        w2 = ramp + flat
        w3 = ramp + flat + fall
        r1 = np.sum(waveform[i:w1 + i]) / (ramp)
        r2 = np.sum(waveform[w2 + i:w3 + i]) / (fall)
        if not padAfter:
            trap[i + 1000] = r2 - r1
        else:
            trap[i] = r2 - r1
    return trap