How to use gamma cascades generated by the NuDEX model in PrimaryGeneratorAction

Hi,

It’s nice to see NuDEX in the new Geant4-11.3, but how do you use the gamma cascades as incident particles in a PrimaryGenerator? I want to study the detector response to the gamma cascade in neutron capture reactions.

Thanks in advance!