Modeling the Shape of Coherent THz Pulses Emitted by Short Bunches in an Electron Storage Ring