Integration of Opticks1 and Geant4 (an advanced example: CaTS)