def analytical_pulse_energy(q, ekev):
    """
    Estimate of analytical_pulse_energy from electron bunch charge and radiation energy

    :param q: electron bunch charge [nC]
    :param ekev: radiation energy [keV]

    :return P: pulse energy [J]
    """

    P = 19*q/ekev
    return P/1e3