The Variable Energy Gamma (VEGA) System, currently under
construction at Extreme Light Infrastructure-Nuclear Physics
(ELI-NP), is a storage ring-based gamma beam source that aims to
provide gamma-ray beams with a variable energy range from 1 MeV to
19.5 MeV to the users. The electron beam transport line has been
designed to connect the linear accelerator and the storage ring in
the VEGA electron beam system. Considering the geometrical
constraints in the accelerator halls and the location of the
injection point at the storage ring, the trajectory of the electron
beam in the transport line has to first ascend by a 36-degree
dog-leg elevation to align with a plane parallel to the storage
ring, undergo a 180-degree horizontal turn, and then descend by 36
degrees vertically to reach the injection point at the storage
ring. In this paper, we introduce a beam optics tool implemented for
the beam optics design and fine-matching in the electron beam
transport line. The design of the VEGA transport line including the
layout and lattice design, is also described. The tool has been
applied to the beam optics design and optimization, utilizing
tracking simulations and beam matching for the VEGA transport line
lattice. Furthermore, the tool's potential application to similar
lattice designs is also discussed.