Modification Detector

18 views
Skip to first unread message

m wellnhofer

unread,
Dec 4, 2025, 12:08:34 AM (8 days ago) Dec 4
to mcx-users
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

Qianqian Fang

unread,
Dec 4, 2025, 12:24:38 AM (8 days ago) Dec 4
to mcx-...@googlegroups.com, m wellnhofer

hi Michael,

yes, this is a valid approach - at this moment, it is also the only approach to simulate a detector with an NA.

Qianqian

--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/2b877732-13dd-45d8-a145-fa0f6e0a04efn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages