Hello Mr Fang
I hope this message finds you well. I am currently using pmcx Python binding for MCX and 've got a question concerning the detector. I want to modify the detector only to accept photons in an certain opening angle. My plan is using the information: detphoton.p or .v: exit position and direction [1] to calculate the incidence angle, so that i can decide, if the photon is accepted or not. cfg.issaveexit = 1 should save the position (x,y,z) and (vx,vy,vz) for a detected photon and therefore the required information for the comparison with the acceptance angle.
Is this a valid approach? I am a little bit confused of the output. How can I access detphoton.p or .v in pmcx
If you need further source code, let me know. Thanks for the help.
all references according the source:
https://mcx.space/wiki/index.cgi?Doc/MCXLAB#Installation[1]
detphoton.p or .v: exit position and direction, when cfg.issaveexit=1
[2]
cfg.issaveexit: [0]-save the position (x,y,z) and (vx,vy,vz) for a detected photon