[Gate-users] Volume IDs for Generic "Scanner" System

Josh Knowland jknowland at lucernodynamics.com
Mon Oct 28 15:39:01 CET 2019


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.

I added commands to attach the SDs to the system. Full code attached, but here is what I added:

####################
# Attach System
####################
/gate/systems/BoxB1/level1/attach BoxB1
/gate/systems/BoxB1/level2/attach BoxB2a
/gate/systems/BoxB1/level3/attach BoxB2b


I am still getting all zero in the Volume ID columns of the singles file.
Maybe because I only have one volume attached to each level the volume IDs are zero?

When I try to attach Both SDs to level2, I get the following error, but I still get singles reported for each SD!

[systems/scanner/level2::IsValidAttachmentRequest]:
        A volume creator ('BoxB2a') is already attached to this system component
[systems/scanner/level2::SetInserter]:
        Ignoring attachment request








From: Gate-users <gate-users-bounces at lists.opengatecollaboration.org> On Behalf Of Emilie Gaudin
Sent: Monday, October 28, 2019 10:24 AM
To: gate-users at lists.opengatecollaboration.org
Subject: Re: [Gate-users] Volume IDs for Generic "Scanner" System

*This is a add-on of my previous message*

Are you using your sensitive volume right ?
Looking at your code, and because you want to do dosimetry, it seems you need to attach your volume as phantomSD and not crystalSD.

The difference between the two sensitive volume are explained here:
https://opengate.readthedocs.io/en/latest/sensitive_detector_concept.html

Also, you don't need to re-forward your message. Let us some time to read/think about your problem ...

Emilie

________________________________
De : Gate-users <gate-users-bounces at lists.opengatecollaboration.org<mailto:gate-users-bounces at lists.opengatecollaboration.org>> de la part de gate-users-request at lists.opengatecollaboration.org<mailto:gate-users-request at lists.opengatecollaboration.org> <gate-users-request at lists.opengatecollaboration.org<mailto:gate-users-request at lists.opengatecollaboration.org>>
Envoyé : 28 octobre 2019 09:52
À : gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org> <gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>>
Objet : Gate-users Digest, Vol 161, Issue 29

Send Gate-users mailing list submissions to
        gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
or, via email, send a message with subject or body 'help' to
        gate-users-request at lists.opengatecollaboration.org<mailto:gate-users-request at lists.opengatecollaboration.org>

You can reach the person managing the list at
        gate-users-owner at lists.opengatecollaboration.org<mailto:gate-users-owner at lists.opengatecollaboration.org>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gate-users digest..."


Today's Topics:

   1. Re: Volume IDs for Generic "Scanner" System (Josh Knowland)
   2. Re: Volume IDs for Generic "Scanner" System (Emilie Gaudin)


----------------------------------------------------------------------

Message: 1
Date: Mon, 28 Oct 2019 13:04:04 +0000
From: Josh Knowland <jknowland at lucernodynamics.com<mailto:jknowland at lucernodynamics.com>>
To: "gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>"
        <gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>>
Subject: Re: [Gate-users] Volume IDs for Generic "Scanner" System
Message-ID:
        <BN8PR15MB2865954C82BB5CDDB6D784E5AF660 at BN8PR15MB2865.namprd15.prod.outlook.com<mailto:BN8PR15MB2865954C82BB5CDDB6D784E5AF660 at BN8PR15MB2865.namprd15.prod.outlook.com>>

Content-Type: text/plain; charset="utf-8"

Hello all,

Does anyone have an idea about this? How to get volume IDs for singles when using a generic "scanner" system type?

From: Josh Knowland
Sent: Saturday, October 26, 2019 5:50 PM
To: gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>
Subject: Volume IDs for Generic "Scanner" System

All - I am completely stuck.
I'm using a generic "scanner" system type, and would like to have multiple sensitive detectors in a mother volume for internal dosimetry.

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).

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!

I have attached simple sample code below as well as the output from the singles file.

Any help would be great! Thank you,
Josh






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_Singles.dat
Type: application/octet-stream
Size: 4752 bytes
Desc: test_Singles.dat
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.mac
Type: application/octet-stream
Size: 3704 bytes
Desc: test.mac
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/448c126d/attachment-0003.obj>

------------------------------

Message: 2
Date: Mon, 28 Oct 2019 14:09:41 +0000
From: Emilie Gaudin <Emilie.Odette.Gaudin at USherbrooke.ca<mailto:Emilie.Odette.Gaudin at USherbrooke.ca>>
To: "gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>"
        <gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>>
Subject: Re: [Gate-users] Volume IDs for Generic "Scanner" System
Message-ID:
        <YQXPR01MB32405B33F62931CAF481EA67AB660 at YQXPR01MB3240.CANPRD01.PROD.OUTLOOK.COM<mailto:YQXPR01MB32405B33F62931CAF481EA67AB660 at YQXPR01MB3240.CANPRD01.PROD.OUTLOOK.COM>>

Content-Type: text/plain; charset="iso-8859-1"

Hi Josh,

You didn't attached your geometry in your system.
Everything is explained here section 1.3 :
https://opengate.readthedocs.io/en/latest/defining_a_system_scanner_ct_pet_spect_optical.html#different-types-of-systems

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:

systems/SystemName/Level/attach UserVolumeName

for example in your system:

systems/scanner/level1/attach Box1B

systems/scanner/level2/attach BoxB2a

systems/scanner/level3/attach BoxB2b

Good luck,

Emilie


________________________________
De : Gate-users <gate-users-bounces at lists.opengatecollaboration.org<mailto:gate-users-bounces at lists.opengatecollaboration.org>> de la part de gate-users-request at lists.opengatecollaboration.org<mailto:gate-users-request at lists.opengatecollaboration.org> <gate-users-request at lists.opengatecollaboration.org<mailto:gate-users-request at lists.opengatecollaboration.org>>
Envoyé : 27 octobre 2019 00:43
À : gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org> <gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>>
Objet : Gate-users Digest, Vol 161, Issue 28

Send Gate-users mailing list submissions to
        gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
or, via email, send a message with subject or body 'help' to
        gate-users-request at lists.opengatecollaboration.org<mailto:gate-users-request at lists.opengatecollaboration.org>

You can reach the person managing the list at
        gate-users-owner at lists.opengatecollaboration.org<mailto:gate-users-owner at lists.opengatecollaboration.org>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gate-users digest..."


Today's Topics:

   1. Volume IDs for Generic "Scanner" System (Josh Knowland)
   2. Secondary Particle Source (emission points) Locations     (XYZ)
      (Atiq Ur Rahman)
   3. Time of Flight of the secondary particles (Atiq Ur Rahman)


----------------------------------------------------------------------

Message: 1
Date: Sat, 26 Oct 2019 21:50:29 +0000
From: Josh Knowland <jknowland at lucernodynamics.com<mailto:jknowland at lucernodynamics.com>>
To: "gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>"
        <gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>>
Subject: [Gate-users] Volume IDs for Generic "Scanner" System
Message-ID:
        <BN8PR15MB28657190C1DD68164871A083AF640 at BN8PR15MB2865.namprd15.prod.outlook.com<mailto:BN8PR15MB28657190C1DD68164871A083AF640 at BN8PR15MB2865.namprd15.prod.outlook.com>>

Content-Type: text/plain; charset="utf-8"

All - I am completely stuck.
I'm using a generic "scanner" system type, and would like to have multiple sensitive detectors in a mother volume for internal dosimetry.

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).

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!

I have attached simple sample code below as well as the output from the singles file.

Any help would be great! Thank you,
Josh






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.mac
Type: application/octet-stream
Size: 3704 bytes
Desc: test.mac
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_Singles.dat
Type: application/octet-stream
Size: 4752 bytes
Desc: test_Singles.dat
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191026/b7f58740/attachment-0003.obj>

------------------------------

Message: 2
Date: Sun, 27 Oct 2019 12:57:30 +0800
From: Atiq Ur Rahman <atiqchep at gmail.com<mailto:atiqchep at gmail.com>>
To: gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>
Subject: [Gate-users] Secondary Particle Source (emission points)
        Locations       (XYZ)
Message-ID:
        <CAEQ5Bgcov=ktLmZtCvdN9fX=S8_g=2+vY-yE7MwqbF+zFP-cPg at mail.gmail.com<mailto:CAEQ5Bgcov=ktLmZtCvdN9fX=S8_g=2+vY-yE7MwqbF+zFP-cPg at mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Dear Users
I use the Proton beam and PMMA target. I want to get the source locations
of the  secondary particles created inside the target with event number.
I usually put a PET scanner connected with Sensitive detector, get the
events detail coning inside the Pet detector but now I need the locations
of the secondary Particles  inside the target?
Regards
Atiq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191027/c3e7c3b7/attachment-0001.html>

------------------------------

Message: 3
Date: Sun, 27 Oct 2019 13:00:21 +0800
From: Atiq Ur Rahman <atiqchep at gmail.com<mailto:atiqchep at gmail.com>>
To: gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>
Subject: [Gate-users] Time of Flight of the secondary particles
Message-ID:
        <CAEQ5Bgcoui3jB=6QbqbSwejXpPw=jWhuuK0mhr5L--1FhFkKoA at mail.gmail.com<mailto:CAEQ5Bgcoui3jB=6QbqbSwejXpPw=jWhuuK0mhr5L--1FhFkKoA at mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Dear users,
I am using the Proton beam to hit the PMMA target and get the secondary
particles  in  LYSO detector placed 15 cm away. I have
defined the scanner system. I want to calculate the time of Flight of the
Neutrons, Protons and Gammas.
Can you suggest me how I can get the time of flight of the secondary
particles (proton neutrons and gammas)?
Regards
Atiq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191027/01f24194/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
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

------------------------------

End of Gate-users Digest, Vol 161, Issue 28
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/acec4d87/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
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

------------------------------

End of Gate-users Digest, Vol 161, Issue 29
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/0a1e2883/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.mac
Type: application/octet-stream
Size: 3876 bytes
Desc: test.mac
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20191028/0a1e2883/attachment-0001.obj>


More information about the Gate-users mailing list