<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Emilie, thank you for taking time to help me. First, you are right, I will end up using phantom detectors and dose actors, but I just wanted to make the most simple macro I could to start with.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I added commands to attach the SDs to the system. Full code attached, but here is what I added:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">####################<o:p></o:p></p>
<p class="MsoNormal"># Attach System<o:p></o:p></p>
<p class="MsoNormal">####################<o:p></o:p></p>
<p class="MsoNormal">/gate/systems/BoxB1/level1/attach BoxB1<o:p></o:p></p>
<p class="MsoNormal">/gate/systems/BoxB1/level2/attach BoxB2a<o:p></o:p></p>
<p class="MsoNormal">/gate/systems/BoxB1/level3/attach BoxB2b<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am still getting all zero in the Volume ID columns of the singles file.<o:p></o:p></p>
<p class="MsoNormal">Maybe because I only have one volume attached to each level the volume IDs
<b>are </b>zero? <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I try to attach Both SDs to level2, I get the following error, but I still get singles reported for each SD!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>[systems/scanner/level2::IsValidAttachmentRequest]:<o:p></o:p></b></p>
<p class="MsoNormal"><b> A volume creator ('BoxB2a') is already attached to this system component<o:p></o:p></b></p>
<p class="MsoNormal"><b>[systems/scanner/level2::SetInserter]:<o:p></o:p></b></p>
<p class="MsoNormal"><b> Ignoring attachment request<o:p></o:p></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org>
<b>On Behalf Of </b>Emilie Gaudin<br>
<b>Sent:</b> Monday, October 28, 2019 10:24 AM<br>
<b>To:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Subject:</b> Re: [Gate-users] Volume IDs for Generic "Scanner" System<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">*This is a add-on of my previous message*<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Are you using your sensitive volume right ?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Looking at your code, and because you want to do dosimetry, it seems you need to attach your volume as phantomSD and not crystalSD.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The difference between the two sensitive volume are explained here:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://opengate.readthedocs.io/en/latest/sensitive_detector_concept.html">https://opengate.readthedocs.io/en/latest/sensitive_detector_concept.html</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Also, you don't need to re-forward your message. Let us some time to read/think about your problem ...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Emilie<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">De :</span></b><span style="color:black"> Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org">gate-users-bounces@lists.opengatecollaboration.org</a>> de la part de
<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a> <<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a>><br>
<b>Envoyé :</b> 28 octobre 2019 09:52<br>
<b>À :</b> <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a> <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
<b>Objet :</b> Gate-users Digest, Vol 161, Issue 29</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Send Gate-users mailing list submissions to<br>
<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gate-users-owner@lists.opengatecollaboration.org">gate-users-owner@lists.opengatecollaboration.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Gate-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Volume IDs for Generic "Scanner" System (Josh Knowland)<br>
2. Re: Volume IDs for Generic "Scanner" System (Emilie Gaudin)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 28 Oct 2019 13:04:04 +0000<br>
From: Josh Knowland <<a href="mailto:jknowland@lucernodynamics.com">jknowland@lucernodynamics.com</a>><br>
To: "<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>"<br>
<<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: Re: [Gate-users] Volume IDs for Generic "Scanner" System<br>
Message-ID:<br>
<<a href="mailto:BN8PR15MB2865954C82BB5CDDB6D784E5AF660@BN8PR15MB2865.namprd15.prod.outlook.com">BN8PR15MB2865954C82BB5CDDB6D784E5AF660@BN8PR15MB2865.namprd15.prod.outlook.com</a>><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello all,<br>
<br>
Does anyone have an idea about this? How to get volume IDs for singles when using a generic "scanner" system type?<br>
<br>
From: Josh Knowland<br>
Sent: Saturday, October 26, 2019 5:50 PM<br>
To: <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
Subject: Volume IDs for Generic "Scanner" System<br>
<br>
All - I am completely stuck.<br>
I'm using a generic "scanner" system type, and would like to have multiple sensitive detectors in a mother volume for internal dosimetry.<br>
<br>
If I have two SDs as daughters of the "world", all is OK - I get a singles output file with 0 or 1 in column 7 and 0 for columns 8 through 12 (easily telling me which SD registered the single).<br>
<br>
If, however, I have a volume in the world with the two SDs inside it (and daughters of it instead of being daughters of the "world"), I get 0 for all columns 7-12. The simulation does record singles to each SD (based on coordinates), but it just doesn't tell
me which volume ID each single is for!<br>
<br>
I have attached simple sample code below as well as the output from the singles file.<br>
<br>
Any help would be great! Thank you,<br>
Josh<br>
<br>
<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0001.html">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: test_Singles.dat<br>
Type: application/octet-stream<br>
Size: 4752 bytes<br>
Desc: test_Singles.dat<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0002.obj">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0002.obj</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: test.mac<br>
Type: application/octet-stream<br>
Size: 3704 bytes<br>
Desc: test.mac<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0003.obj">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0003.obj</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 28 Oct 2019 14:09:41 +0000<br>
From: Emilie Gaudin <<a href="mailto:Emilie.Odette.Gaudin@USherbrooke.ca">Emilie.Odette.Gaudin@USherbrooke.ca</a>><br>
To: "<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>"<br>
<<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: Re: [Gate-users] Volume IDs for Generic "Scanner" System<br>
Message-ID:<br>
<<a href="mailto:YQXPR01MB32405B33F62931CAF481EA67AB660@YQXPR01MB3240.CANPRD01.PROD.OUTLOOK.COM">YQXPR01MB32405B33F62931CAF481EA67AB660@YQXPR01MB3240.CANPRD01.PROD.OUTLOOK.COM</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Josh,<br>
<br>
You didn't attached your geometry in your system.<br>
Everything is explained here section 1.3 :<br>
<a href="https://opengate.readthedocs.io/en/latest/defining_a_system_scanner_ct_pet_spect_optical.html#different-types-of-systems">https://opengate.readthedocs.io/en/latest/defining_a_system_scanner_ct_pet_spect_optical.html#different-types-of-systems</a><br>
<br>
Basically your need to put this line at the end of your geometry definition (and before attaching your sensitive detector) for each levels of your system:<br>
<br>
systems/SystemName/Level/attach UserVolumeName<br>
<br>
for example in your system:<br>
<br>
systems/scanner/level1/attach Box1B<br>
<br>
systems/scanner/level2/attach BoxB2a<br>
<br>
systems/scanner/level3/attach BoxB2b<br>
<br>
Good luck,<br>
<br>
Emilie<br>
<br>
<br>
________________________________<br>
De : Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org">gate-users-bounces@lists.opengatecollaboration.org</a>> de la part de
<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a> <<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a>><br>
Envoyé : 27 octobre 2019 00:43<br>
À : <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a> <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Objet : Gate-users Digest, Vol 161, Issue 28<br>
<br>
Send Gate-users mailing list submissions to<br>
<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gate-users-owner@lists.opengatecollaboration.org">gate-users-owner@lists.opengatecollaboration.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Gate-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Volume IDs for Generic "Scanner" System (Josh Knowland)<br>
2. Secondary Particle Source (emission points) Locations (XYZ)<br>
(Atiq Ur Rahman)<br>
3. Time of Flight of the secondary particles (Atiq Ur Rahman)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 26 Oct 2019 21:50:29 +0000<br>
From: Josh Knowland <<a href="mailto:jknowland@lucernodynamics.com">jknowland@lucernodynamics.com</a>><br>
To: "<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>"<br>
<<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: [Gate-users] Volume IDs for Generic "Scanner" System<br>
Message-ID:<br>
<<a href="mailto:BN8PR15MB28657190C1DD68164871A083AF640@BN8PR15MB2865.namprd15.prod.outlook.com">BN8PR15MB28657190C1DD68164871A083AF640@BN8PR15MB2865.namprd15.prod.outlook.com</a>><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
All - I am completely stuck.<br>
I'm using a generic "scanner" system type, and would like to have multiple sensitive detectors in a mother volume for internal dosimetry.<br>
<br>
If I have two SDs as daughters of the "world", all is OK - I get a singles output file with 0 or 1 in column 7 and 0 for columns 8 through 12 (easily telling me which SD registered the single).<br>
<br>
If, however, I have a volume in the world with the two SDs inside it (and daughters of it instead of being daughters of the "world"), I get 0 for all columns 7-12. The simulation does record singles to each SD (based on coordinates), but it just doesn't tell
me which volume ID each single is for!<br>
<br>
I have attached simple sample code below as well as the output from the singles file.<br>
<br>
Any help would be great! Thank you,<br>
Josh<br>
<br>
<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0001.html">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: test.mac<br>
Type: application/octet-stream<br>
Size: 3704 bytes<br>
Desc: test.mac<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0002.obj">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0002.obj</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: test_Singles.dat<br>
Type: application/octet-stream<br>
Size: 4752 bytes<br>
Desc: test_Singles.dat<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0003.obj">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0003.obj</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 27 Oct 2019 12:57:30 +0800<br>
From: Atiq Ur Rahman <<a href="mailto:atiqchep@gmail.com">atiqchep@gmail.com</a>><br>
To: <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
Subject: [Gate-users] Secondary Particle Source (emission points)<br>
Locations (XYZ)<br>
Message-ID:<br>
<<a href="mailto:CAEQ5Bgcov=ktLmZtCvdN9fX=S8_g=2+vY-yE7MwqbF+zFP-cPg@mail.gmail.com">CAEQ5Bgcov=ktLmZtCvdN9fX=S8_g=2+vY-yE7MwqbF+zFP-cPg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear Users<br>
I use the Proton beam and PMMA target. I want to get the source locations<br>
of the secondary particles created inside the target with event number.<br>
I usually put a PET scanner connected with Sensitive detector, get the<br>
events detail coning inside the Pet detector but now I need the locations<br>
of the secondary Particles inside the target?<br>
Regards<br>
Atiq<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191027/c3e7c3b7/attachment-0001.html">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191027/c3e7c3b7/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 27 Oct 2019 13:00:21 +0800<br>
From: Atiq Ur Rahman <<a href="mailto:atiqchep@gmail.com">atiqchep@gmail.com</a>><br>
To: <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
Subject: [Gate-users] Time of Flight of the secondary particles<br>
Message-ID:<br>
<<a href="mailto:CAEQ5Bgcoui3jB=6QbqbSwejXpPw=jWhuuK0mhr5L--1FhFkKoA@mail.gmail.com">CAEQ5Bgcoui3jB=6QbqbSwejXpPw=jWhuuK0mhr5L--1FhFkKoA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear users,<br>
I am using the Proton beam to hit the PMMA target and get the secondary<br>
particles in LYSO detector placed 15 cm away. I have<br>
defined the scanner system. I want to calculate the time of Flight of the<br>
Neutrons, Protons and Gammas.<br>
Can you suggest me how I can get the time of flight of the secondary<br>
particles (proton neutrons and gammas)?<br>
Regards<br>
Atiq<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191027/01f24194/attachment.html">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191027/01f24194/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
------------------------------<br>
<br>
End of Gate-users Digest, Vol 161, Issue 28<br>
*******************************************<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/acec4d87/attachment.html">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/acec4d87/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
------------------------------<br>
<br>
End of Gate-users Digest, Vol 161, Issue 29<br>
*******************************************<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>