<html><head></head><body><div class="ydp5660b77yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div></div><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false">Hello Howard, </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">It looks like you are missing <i>gps</i> command in your source definition. See below for the working example (but using a point source, change that for your need):</div><div dir="ltr" data-setdir="false"><br><table class="ydp1b92b804highlight ydp1b92b804tab-size ydp1b92b804js-file-line-container ydp1b92b804js-code-nav-container ydp1b92b804js-tagsearch-file" data-tab-size="8" data-paste-markdown-skip="" data-tagsearch-lang="" data-tagsearch-path="Dose_point_kernels_of_monoenergetic_electrons/50keV/water/main.mac" style="border-collapse: collapse; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji; font-size: 14px;"><tbody><tr><td id="ydp1b92b804L121" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="121" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC121" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/addSource monoenergetic_xray gps</td></tr><tr style="background-color: transparent;"><td id="ydp1b92b804L122" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="122" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC122" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/gps/particle gamma</td></tr><tr><td id="ydp1b92b804L123" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="123" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC123" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/gps/energytype Mono</td></tr><tr style="background-color: transparent;"><td id="ydp1b92b804L124" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="124" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC124" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/gps/ene/mono 30. keV</td></tr><tr><td id="ydp1b92b804L125" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="125" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC125" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/gps/angtype iso</td></tr><tr style="background-color: transparent;"><td id="ydp1b92b804L126" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="126" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC126" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/gps/centre 0. 0. -80. mm</td></tr><tr><td id="ydp1b92b804L127" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="127" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC127" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/gps/type Point</td></tr><tr style="background-color: transparent;"><td id="ydp1b92b804L128" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="128" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC128" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">xray</span></span>/attachTo my_phantom</td></tr><tr><td id="ydp1b92b804L129" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="129" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC129" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/monoenergetic_x<span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">ray</span></span>/visualize 100 yellow 2</td></tr><tr style="background-color: transparent;"><td id="ydp1b92b804L130" class="ydp1b92b804blob-num ydp1b92b804js-line-number ydp1b92b804js-code-nav-line-number ydp1b92b804js-blob-rnum" data-line-number="130" style="padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer;"></td><td id="ydp1b92b804LC130" class="ydp1b92b804blob-code ydp1b92b804blob-code-inner ydp1b92b804js-file-line" style="padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; white-space: pre-wrap;">/gate/source/list</td></tr></tbody></table></div><div dir="ltr" data-setdir="false"><br></div>Hope this helps.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks,</div><div dir="ltr" data-setdir="false">Ashok</div>
</div><div id="yahoo_quoted_2058707553" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Sunday, 8 May 2022, 01:25:53 pm GMT-5, Howard <lomahu@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv1967208275"><div dir="ltr"><div>Hi,</div><div><br></div><div>I would like to simulate CBCT with a monoenergy X-ray source, say 30keV. Is there an easy way to implement this? I tried to set the following in the source macro but did not work. Do I have to set up the fluorescent X-ray for the monochromatic source? Any feedback would be appreciated.</div><div><br></div><div>Howard</div><div><br></div><div>/gate/source/addSource xraygun<br>/gate/source/verbose 0<br>/gate/source/xraygun/gps/verbose 0<br># Particle type<br>/gate/source/xraygun/gps/particle gamma<br># Source geometry<br>/gate/source/xraygun/gps/type Plane<br>/gate/source/xraygun/gps/shape Rectangle<br>/gate/source/xraygun/gps/halfx 0.025 mm<br>/gate/source/xraygun/gps/halfy 0.025 mm<br># Source position<br>/gate/source/xraygun/gps/centre 0. 0. -80. mm<br># Emission direction<br>/gate/source/xraygun/gps/mintheta 0. deg<br>/gate/source/xraygun/gps/maxtheta 15. deg<br>/gate/source/xraygun/gps/angtype iso<br># Energy distribution<br>/gate/source/xraygun/gps/energytype Mono<br>/gate/source/xraygun/gps/monoenergy 30.0 keV<br>/gate/source/list</div></div>
</div>_______________________________________________<br>Gate-users mailing list<br><a ymailto="mailto:Gate-users@lists.opengatecollaboration.org" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
</div>
</div></body></html>