correct laser pulses, gaussian and cos2