Recalculate the cross section of process for each event

Dear experts,

Happy new year.
Recently I had a problem about the cross section of diffraction process, I write the calculation of the cross section in “computecrosssectionperatom” method, however, the cross section of the process is different as the incident angle of X-ray changes, which means the cross section need to be re-calculated for each events if the incident angle is random. I don’t know how to achieve the function because the cross section is initialized before running. Could you please give some suggestion?Thanks very much.


Happy New Year!

in Geant4 processes cross section is called for each step of a particle. How it is computed - is a responsibility of the class, it may be a const value in some cases but normally it depends on many factors and is different.