def responsePeaks(peaks, sensor, energyScale):
    """ Augment the peak list based on the sensor response
    Args:
        peaks: List of found peaks.
        sensor: Sensor model used for responding the peaks.
        energyScale: Energy scale.

    Returns:
        List of responsed peaks.

    """

    for i in range(0, len(peaks)):
        p = peaks[i]
        p.response = sensor.getResponse(p.energy, 1, energyScale.getEdges())
    return peaks