Study of the magnetic spectrometer CLAMSUD focal plane by a simulation code