[Gate-users] Setting accolinearity with back to back source

Maxime Toussaint Maxime.Toussaint at USherbrooke.ca
Tue Nov 10 17:57:01 CET 2020


Geetings,

First, my apologies Zhengzhi for the late response. The NssMic conference took most of my time!

Now about acolinearity. From my limited testing, my current conclusion is that the acolinearity feature of back-to-back source should not be used since its behavior seems wrong. Since the current Gate documentation does not describe how to use this feature, it is fair to suspect that it is not currently officialy supported. If this is confirmed by the Gate developers, I will suggest a modification to the current Gate documentation to highlight this since it was a feature described in the past.

About your results, I suspect that the non-zero angles are due to numerical error. Back-to-back source are not affected, by default, by acolinearity in Gate. The source of the error is due, I believe, to using the hits/coincidence file. If memory serves me right, some of the floats precision is lost when converted for these files. Also, it might be better to reconsider neglecting the effect of acolinearity due to the presence of scatter. While you might be right in a given system, I expect that it is not always the case.

Thank you Zhengzhi for taking the time to consider the problem I presented in my first mail.

Bests,
Maxime Toussaint


________________________________
De : Gate-users <gate-users-bounces at lists.opengatecollaboration.org> de la part de Albert Grace Lieu <albertnew2018 at gmail.com>
Envoyé : 27 octobre 2020 20:24
À : Gate-users at lists.opengatecollaboration.org <Gate-users at lists.opengatecollaboration.org>
Cc : Peter Olcott <polcott at reflexion.com>
Objet : Re: [Gate-users] Setting accolinearity with back to back source

Dear Gate users,

I apologize for my earlier false result regarding the accolinearity of the back-to-back gamma generator. Maxime's finding is correct that  back-to-back gamma source default is linear and accolinearity is not enabled by default.

The reason why I came to the wrong conclusion is that I used a real PET system in GATE to conduct the simulation which involving much scattering. Now I updated my simulation with an ideal PET system to repeat the simulation, the result is shown below:
[back-to-back angle distribution.PNG]

My understanding is that whether to simulate the accolinearity of annihilation gammas or not is not a big deal in simulation as it can easily be counteracted by scattering, which always happens in a real system. Just in case someone would be interested in this, I shared my personal finding and understanding here as well.

Thanks, Maxime.


Zhengzhi

On Mon, Oct 26, 2020 at 3:22 PM Albert Grace Lieu <albertnew2018 at gmail.com<mailto:albertnew2018 at gmail.com>> wrote:
Hi Maxime,

I did a simple simulation to verify whether a back-to-back gamma generator creates colinear or accolinear gamma pairs. I used a point source with a single emission direction to generate back to back gammas in a cylindrical PET system (in GATE 8.2). Then I collected hits file and coincidences file. I used valid coincidence event IDs to find its first hit position registered by the PET system (ideal resolution). Please note that I did not use any following commands:
    /gate/source/NAME/setAccolinearityFlag true
    /gate/source/NAME/setAccoValue 0.5 deg

Here is what I found:
It looks back-to-back gamma source has accolinearity enabled by default. The mean is 5.5 degrees with and a standard deviation of 4.2.
[Screenshot from 2020-10-26 14-58-32.png]

My question is whether back-to-back gamma source has accolinearity enabled by default? Maybe I shall have looked into GateBackToBack.cc, however, source code might have compiled with other flags which I don't know of.

Thanks for your precious time answering.

Zhengzhi


On Mon, Oct 26, 2020 at 10:59 AM Albert Grace Lieu <albertnew2018 at gmail.com<mailto:albertnew2018 at gmail.com>> wrote:
Hi Maxime,

Thanks for sharing your findings regarding this accolineraity feature associated with the back-to-back gamma source. I did not see "setAccolinearityFlag" command in the GATE 8 and 9 manual either and am skeptical about its validity. May I know your conclusion on the usage of  accolineraity feature in GATE? Is it still supported or dead? How can one still possibly use it correctly?

Thanks a lot.

Sincere wishes,

Zhengzhi

On Wed, Jul 1, 2020 at 11:39 AM Maxime Toussaint <Maxime.Toussaint at usherbrooke.ca<mailto:Maxime.Toussaint at usherbrooke.ca>> wrote:
Greetings,

If one looks into the mailing list or in the Gate code, one can find that there is an option to simulate accolinearity from back to back source. The commands to use are as follow:
    /gate/source/NAME/setAccolinearityFlag true
    /gate/source/NAME/setAccoValue 0.5 deg

In short, is this feature validated and still supported?

In the following, I detail what I found from my search on that feature.

This feature is not mentioned in the current openGate wiki (or at least, it was not found with the wiki search tool). I did a quick "cntrl+f" search of "setAccolinearityFlag" for the userguides available from v6.0 to the last available and I did not found a single mention of that keyword. However, if we look at the mailing list, we can find the following:

  *   A possible bug was found in 2011 for which the resulting thread does not provide a clear conclusion about if the bug was corrected or if it was a real bug [1].
  *   Around two years later, the feature was proposed to a user [4].
  *   This feature seems to be still used currently [2, 3]. In [3], the user asked for some tips on the feature which were not answered.
  *   From Gate v5.0 to v6.0, a bug was found and corrected [5, 6, 7].

I did try to look into the available release note of Gate and the Gate github but I did not find a mention about that feature.

Currently, the option to test Gate with accolinearity validation does not work out-of-the-box with that feature. When I tried to activate the accollinearity error graph creation, the resulting graph indicated pure back-to-back events. I have built some tests by hand[*] and it showed that a Gaussian angular error was indeed simulated which is good. However, when I compared the accolinearity error resulting from that feature to when using a positron source[**], the profile were clearly different. The latter being Gaussian-like, as expected. It would seems that something unexpected happens when the angular error is applied to the gamma pairs momentum with that feature. While I did try to make sense of the code in the method "GenerateVertex" of GateBacktoBack.cc, I must admit I fail to comprehend all the steps it does.

Thus, it seems that this feature might have some problems or that it is not completely supported. If it is indeed the case, I will propose a modification to the wiki such that it mention the existence of that feature but warns the users that it might not work as intended. If it should work, I will try to make a MWE of my tests and ask for validation.

Best,
Maxime Toussaint


[1] http://lists.opengatecollaboration.org/pipermail/gate-users/2011-February/004842.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2011-February%2F004842.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312830884%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BPXRSL%2FAd5VeEMEhFanBzwxkCYbhoezw1br7c96e9Ak%3D&reserved=0>
[2] http://lists.opengatecollaboration.org/pipermail/gate-users/2020-June/011680.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2020-June%2F011680.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312840878%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lzAV43Khy90NtfK1sbaKM%2FwX5clOBMYMKfoNGel6y%2B0%3D&reserved=0>
[3] http://lists.opengatecollaboration.org/pipermail/gate-users/2019-December/011222.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2019-December%2F011222.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312840878%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=n%2BeaLN8fw35217lSBXcPnHwfE7k%2F5syBKv9lB%2BG2ds4%3D&reserved=0>
[4] http://lists.opengatecollaboration.org/pipermail/gate-users/2012-November/006068.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2012-November%2F006068.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312850876%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=THWr5UT4WaSV2gu%2B76Z1psFOzZvEawuln%2B2mjHBNiLM%3D&reserved=0>
[5] http://lists.opengatecollaboration.org/pipermail/gate-users/2010-November/004684.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2010-November%2F004684.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312850876%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=j914Rj8W%2FZu8Cpqpsggmn%2BvVAa2gC06puuwXwDQDU9Y%3D&reserved=0>
[6] http://lists.opengatecollaboration.org/pipermail/gate-users/2010-November/004683.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2010-November%2F004683.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312860870%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MdgU3JTcfxRcrbVlRD1mBdKkyNmM4zJfrdArBnHb4v8%3D&reserved=0>
[7] http://lists.opengatecollaboration.org/pipermail/gate-users/2010-October/004599.html<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fpipermail%2Fgate-users%2F2010-October%2F004599.html&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312870860%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EC27VOQzN3dj5ELzF26QO2XMlvHPcCAtDQjebZa%2BWiQ%3D&reserved=0>

[*] Outputting the "dev" variable from the file GateBacktoBack.cc
[**] Outputting the momentum from the file GateBacktoBack.cc and GatePositronAnnihilation.cc, and extracting the photon pairs accolinearity.

_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C601c25b9ff6f45dc134908d87ad7f8f9%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637394415312870860%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bDsDxLUTAMCYdlPgZuFDckpS6xeZ%2F2xuBe07v3OpHKo%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201110/8b22b8c4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-10-26 14-58-32.png
Type: image/png
Size: 35163 bytes
Desc: Screenshot from 2020-10-26 14-58-32.png
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201110/8b22b8c4/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: back-to-back angle distribution.PNG
Type: image/png
Size: 22002 bytes
Desc: back-to-back angle distribution.PNG
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201110/8b22b8c4/attachment-0003.png>


More information about the Gate-users mailing list