Electron-beam or ion-beam tubes for localised treatment of objects for casting, melting, evaporating or etching