We present here some results concerning the optimization of the amplitude or of the band pass (namely the Full Width at Half Maximum -FWHM) of the THz pulse generated by an InGaAs photoconductive (PC) switch inserted in a coplanar waveguide by using 3D modeling. The impedance of the waveguides, the static bias conditions, the optical pulse intensity and the relative dimension of the laser pulse in comparison with the active PC gap are discussed.