Ions confinement in electron beam ion trap