We introduce a hybrid technique based on the discontinuous Galerkin time domain (DGTD) and the particle in cell (PIC) simulation methods for the analysis of interaction between light and charged particles. The DGTD algorithm is a three-dimensional, dual-field and fully explicit method for efficiently solving Maxwell equations in the time domain on unstructured grids. On the other hand, the PIC algorithm is a versatile technique for the simulation of charged particles in an electromagnetic field. This paper introduces a novel strategy for combining both methods to solve for the electron motion and field distribution when an optical beam interacts with an electron bunch in a very general geometry. The developed software offers a complete and stable numerical solution of the problem for arbitrary charge and field distributions in the time domain on unstructured grids. For this purpose, an advanced search algorithm is developed for fast calculation of field data at charge points and for later importing to the PIC simulations. In addition, we propose a field-based coupling between the two methods resulting in a stable and precise time marching scheme for both fields and charged particle motion. To benchmark the solver, some examples are numerically solved and compared with analytical solutions. Eventually, the developed software is utilized to simulate the field emission from a flat metal plate and a silicon nano-tip. In the future, we will use this technique for the simulation and design of ultrafast compact x-ray sources.