Hello, I’ve been getting comfortable with G4 for a couple of months now but have been unable to come up with an elegant solution to my problem. I would like to gather information about photons that have been scattered and pass through various regions of my simulated world. Specifically, I’d like to know how long it took a photon to get from the gamma source to a particular region of space and how much energy it had when it passed through. Ideally, I’d use a mesh to gather maximum spatial data as well and not have to create multiple detectors.
Imagine an X-ray pointed toward the sky. Some of those photons will scatter and eventually return to earth (skyshine). I want to simulate where and when they will arrive and with how much energy.
To recap, I’m trying to figure out the best way the capture spectral, temporal and spatial distributions for scattered gamma rays near a source. I imagine I need to use GetGlobalTime and GetKineticEnergy to obtain these quantities. I have looked at extended/runAndEvent/RE03 for mesh scoring and extend/electromagnetic/TestEM14 for visualization of distributions using ROOT.
I think I’m having the must trouble capturing the correct quantities for particles passing through a particular plane. Has anyone written a similar simulation? Are there other examples that might help me understand better how to structure this?
Thank you everyone!