<div dir="ltr"><div>Hi Ashok,</div><div><br></div><div>It is now working. Thank you for your help!</div><div><br></div><div>Howard<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 8, 2022 at 3:04 PM Ashok Tiwari <<a href="mailto:tiwarias@yahoo.com" target="_blank">tiwarias@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div></div>
<div></div><div dir="ltr"><div dir="ltr">Hello Howard, </div><div dir="ltr"><br></div><div dir="ltr">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"><br><table 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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L121" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC121" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L122" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC122" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L123" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC123" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L124" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC124" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L125" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC125" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L126" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC126" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L127" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC127" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L128" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC128" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L129" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC129" style="padding:0px 10px;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="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804L130" style="padding:0px 10px;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"></td><td id="gmail-m_8895028107259815466gmail-m_8944409847612988153ydp1b92b804LC130" style="padding:0px 10px;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"><br></div>Hope this helps.</div><div dir="ltr"><br></div><div dir="ltr">Thanks,</div><div dir="ltr">Ashok</div>
</div><div id="gmail-m_8895028107259815466gmail-m_8944409847612988153yahoo_quoted_2058707553">
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
On Sunday, 8 May 2022, 01:25:53 pm GMT-5, Howard <<a href="mailto:lomahu@gmail.com" target="_blank">lomahu@gmail.com</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="gmail-m_8895028107259815466gmail-m_8944409847612988153yiv1967208275"><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 href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">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></div></blockquote></div>