I am currently trying to find a way to set the maximum number of steps a process will take. Specifically I am interested in seeing if some optical photons are stopping in a volume because a maximum number of steps is being exceeded during a beamOn.
I have looked at the literature at it appears as though this may be achieved through the use of “SetMaxAllowedStep” function in G4UserLimits class. Is this correct?
Any and all help is greatly appreciated.