Gravar-mail: Simulation of FEL pulse length calculation with THz streaking method