<div dir="ltr"><div><div>Hi,<br></div>The FluenceActor has been developed to record the particles entering a volume. To do this, it checks if you are at a geometric boundary</div><div><a href="https://github.com/OpenGATE/Gate/blob/develop/source/digits_hits/src/GateFluenceActor.cc#L255">step->GetPreStepPoint()->GetStepStatus() == fGeomBoundary</a></div><div>Here you set the size and the position so it might not be aligned with any boundary and therefore returns a zero image. I would suggest creating a daughter volume of the waterbox and attach the fluence actor to this daughter volume.<br></div><div>Note that setResolution does not take a unit, it's a number of voxels.<br></div>Simon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 16, 2017 at 5:07 PM, Kurt V <span dir="ltr"><<a href="mailto:kurtv1@hotmail.com" target="_blank">kurtv1@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="#954F72" lang="EN-CA">
<div class="m_4246643484197262125WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">How do you use the Fluence Actor and get meaningful results?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I want to generate data for two plots:
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">1) A 2D graph of fluence vs energy
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">2) A fluence image in 2D (Slice of 3D).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I cannot seem to use the Fluence actor in .mhd/.raw to get meaningful data.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">My script for the FluenceActor is simplified and I will attach the macro. All other doseactors run fine but, I am putting them in root/.txt output.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">What happens is I run the FluenceActor macro, I open up the .mhd file with vV to visualize and I just get full black/white or full color images and no meaningful data. The same thing for ImageJ.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Is there some catch to using vV to view this image type or something I am missing?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">(Any help on how to interpret the FluenceActor in .mhd/.raw format is greatly appreciated.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thank you, Kurt W. Van Delinder<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt"># Fluence Tumor #<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/addActor FluenceActor FluTumor<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/save <wbr> output/FluTumor.hdr<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/attachTo <wbr> waterbox<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/<wbr>stepHitType pre<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/<wbr>setPosition 0 0 0 cm<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/setSize <wbr> 2 2 2 cm<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/<wbr>setResolution 10 10 10 mm<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">/gate/actor/FluTumor/<wbr>enableScatter true<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">
Mail</a> for Windows 10</p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br></blockquote></div><br></div>