Hi everyone… I’m back
Now that the simulation seems to be working, and I do seem to get reasonable induced currents, see figure below, I am wondering about the specifics about the storage of the data.
As far as I can understand, since I am firing xrays and have number_of_particles = 1
in [DepositionGeant4]
, every event contains one particle, which can interact several times within the sensor volume. What I am interested in is the following:
- the induced current curve (and subsequently the total induced charge to get the interaction energy)
- interaction position
- interaction type
for each interaction as well as for each event.
The part for each event is fairly simple and I can use the PixelCharge
object to get the total induced charge, induced current curve (given PropagatedCharge
is included in [ROOTObjectWriter]
), and pixel index. And for the interaction position (and interaction type?) I guess I should be able to use the MCTrack
object.
But is there any way to get the same data for each individual interaction within each event?
That is, if the xray first interacts with a Compton interaction and then gets absorbed in a photoelectric interaction, can I get the desired data above separated for the two interactions?
I should add that the pulse information is not necessary all the time, and the induced total charge, interaction position, and interaction type should suffice most of the time.
Again, thank you for any help!
Best,
Rickard