Optical Photon can not observed

Geant4 Version: v11.3.2
Operating System: Windows 10
Compiler/Version: Visual Studio 2022
CMake Version: 4.0.1

Hello All ,
I have this example, i try to use EJ212 material as detector crystal (Scintillation detector). The problem is the optical photons are not generated however, I check many time the optical process is turn on. I do not understand where the issues.

ActionInitialization.cc (1.2 KB)

PrimaryGeneratorAction.cc (1.6 KB)

PhysicsList.cc (5.8 KB)

DetectorConstruction.cc (11.8 KB)

Have you tried doing a DumpTable on the scintillator material properties table to see if you are setting the optical properties to what you think they should be?

is like this ?

  1. Please don’t post screenshots of code. Follow the link at the top of a new post (which you deleted) for guidelines on posting blocks of text as text so we can read it clearly.

  2. That dump shows your function calls, but it doesn’t show the values contained in the arrays that you are passing to the MPT. It If you add a line mpt→DumpTable() it should show all of the numeric values, so you can verify that it’s doing what you want it to do.