<div dir="ltr"><div dir="ltr">Hello David,<div><br></div><div>Thank you for the answer. I re-check my calculation, and I found out that the units are well (I mean the EnergySpectrumActor and GateDoseSpectrumActor agree in the deposited energy calculations). </div><div><br></div><div>To check it, I attached both actors to the same logical volume and calculated the deposited energy for comparison. In the case of EnergySpectrumActor, I summed the energy spectrum, and for GateDoseSpectrumActor, it provides the total energy (sum) plus the uncertainty directly.</div><div><br></div><div>The GateDoseSpectrumActor has the advantage that it provides the total deposited energy with its uncertainty. This information is impossible to obtain with the EnergySpectrumActor, because it does not give the square of the sum of the energies. </div><div><br></div><div>I think the GateDoseSpectrumActor could be useful for the community. But, it is not documented in the <a href="http://opengate.readthedocs.io/" target="_blank">opengate.readthedocs.io</a>, and the C++ classes are probably incomplete (probably the goal was the absorbed dose calculation, but its development stops with the energy calculation). At this moment, the GateDoseSpectrumActor help me resolve my task straightforwardly. I think it is better to keep it. Hopefully, it will be a chance to improve it in the future.</div><div><br></div><div>I am finalizing some details of the simulation (blood irradiation with radionuclides); if it would interest you, I can share it for the GATE examples with some documentation.</div><div><br></div><div>Best regards,</div><div>Maikol</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 1 feb 2022 a las 8:05, David Sarrut (<<a href="mailto:david.sarrut@creatis.insa-lyon.fr">david.sarrut@creatis.insa-lyon.fr</a>>) escribió:<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 dir="ltr">Hello Maikol, <div><br></div><div>I don't know this actor and, looking at the history, it was started before we started the git version (2015), so the original author is lost. </div><div>As there is no doc and I don't really get what it means compared to the EnergySpectrumActor, I would suggest to remove it. </div><div><br></div><div>However, if you think it could be useful for you, please let us know. The idea would be to propose some docs and use case.</div><div><br></div><div>thanks,</div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 31, 2022 at 5:50 PM Maikol Salas Ramirez <<a href="mailto:mmsalas@gmail.com" target="_blank">mmsalas@gmail.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 dir="ltr"><div>Dear Gate users,</div><div><br></div><div>Recently I found the .cc and .hh files of a <b>GateDoseSpectrumActor</b>. This actor is not mentioned in <a href="http://opengate.readthedocs.io" target="_blank">opengate.readthedocs.io</a> or any webpage.</div><div>I would like to ask if someone is working on it. Is it a prototype?</div><div><br></div><div>I tested the energy calculation using the EnergySpectrumActor and the energy units differ:</div><div></div><div>I simulated a Ac-225 source using the Ion source definition. I scored the deposited energy with both actors (EnergySpectrumActor and GateDoseSpectrumActor). The deposited energy differs by a factor of 1000. <b>The only justification that I can find is that, in the GateDoseSpectrumActor, the deposited energy is expressed in keV/(1000 events) OR (eV/event) and there is a typo in the code (the units shoud be eV instead of keV):</b></div><div>#-------------------------------------------<br></div><div>/// Save data<br>void GateDoseSpectrumActor::SaveData()<br>{<br> GateVActor::SaveData();<br> std::ofstream DoseResponseFile;<br> OpenFileOutput(mSaveFilename, DoseResponseFile);<br> DoseResponseFile << "Incoming energy (<b>keV</b>)" << " "<br> << "Average energy deposit (<b>keV</b>)" << " "<br> << "Energy uncertainty (<b>keV</b>)" << Gateendl;<br> std::map< G4double, G4double>::iterator itermEnergy;<br> for( itermEnergy = mEnergy.begin(); itermEnergy != mEnergy.end(); itermEnergy++)<br> {<br> G4double energyIn = itermEnergy->first;<br> G4double totEnergyOut = mEnergy[energyIn];<br> G4double numPart = mNumParticPerEnergy[energyIn];<br> G4double avgEnergyOut = totEnergyOut / numPart;<br> G4double avgEnergySq = mEnergySquare[energyIn] / numPart;<br> G4double error = sqrt( (1.0 / ( numPart - 1)) * ( avgEnergySq - pow( avgEnergyOut, 2)));<br> DoseResponseFile << energyIn/<span style="color:rgb(255,0,0)"><b>keV</b> </span><< " "<br> << avgEnergyOut/<span style="color:rgb(255,0,0)"><b>keV</b> </span><< " "<br> << error/<span style="color:rgb(255,0,0)"><b>keV</b> </span> << Gateendl;<br> }</div><div>#-------------------------------------------</div><div><br></div><div>Is anyone working on this?</div><div></div><div><br></div><div><br></div><div>Best regards</div><div>Maikol<br></div><div><br></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" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0)">David Sarrut, Phd</span><br></div><div><font color="#000000">Directeur de recherche CNRS</font></div><div><font color="#000000">CREATIS, UMR CNRS 5220, Inserm U1294</font></div><div><font color="#000000">Centre de lutte contre le cancer Léon Bérard</font></div><div><font color="#000000">28 rue Laënnec, 69373 Lyon cedex 08</font></div><div><font color="#000000">Tel : 04 78 78 51 51 / 06 74 72 05 42</font></div><div><font color="#000000"><a href="http://dsarrut.github.io" target="_blank">http://dsarrut.github.io</a></font></div><div><font color="#000000">_________________________________</font></div><div><font color="#000000"> "2 + 2 = 5, for extremely large values of 2"</font></div><div><font color="#000000">_________________________________</font></div></div></div>
</blockquote></div></div>