Wide field detector set up

8 views
Skip to first unread message

Xiuxiu Zhang

unread,
Nov 5, 2025, 10:12:02 AM (22 hours ago) Nov 5
to mmc-users

Dear Dr. Qianqian Fang and mmcusers,

Thank you for developing and continuously improving the MMC software suite. I was recently introduced to it and have been exploring the example codes.

While reviewing demo_wide_det.m, I noticed two sections related to the detector setup:

  1. detdef = struct('srctype', 'planar', 'srcpos', [10, 10, -1], 'srcdir', [0 0 1], ...

                'srcparam1', [40 0 0 40], 'srcparam2', [0 40 0 40]);

[cfg.node, cfg.elem] = mmcadddet(node, elem, detdef);

  1. cfg.detpos = [10.0, 10.0, -1.0, 0];

cfg.detparam1 = [40.0 0.0 0.0 40];

cfg.detparam2 = [0.0 40.0 0.0 40];

I was wondering what the difference is between these two definitions. I also noticed that cfg.saveexit is set to 2 in this demo, and when I tested it, the resulting detphoton size appeared to depend on the definition in section (2).

Lastly, could you please clarify what distinguishes a wide-field detector from a normal planar detector in this context?

Thank you very much for your time and for creating such a powerful and well-documented tool.

Best regards,

Xiuxiu

Reply all
Reply to author
Forward
0 new messages