Optical photon in scintillation detector

I try to get Optical photon in scintillator detector, i write the Detector construction and other file but still i cant get any optical photons, i want someone to check if there is mistake in this file.

DetectorConstruction.cc (11.1 KB)


this is the window of the process done in the simulation .