[Gate-users] RE: Visualize Source

Marcin Balcerzyk m.balcerzyk at pluri.ucm.es
Wed Oct 8 11:49:25 CEST 2008


Message: 2

Date: Fri, 3 Oct 2008 12:53:55 +0100

From: "Liliana Caldeira" <llcaldeira at gmail.com>

Subject: [Gate-users] Visualize Source

To: "Users Gate" <gate-users at lists.healthgrid.org>

Message-ID:

      <d5669d5a0810030453q12f59aa9hbf69f1aad44ad62e at mail.gmail.com>

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

 

Hello everyone!

 

How can I visualize a source? I can see everything except the source.

I just want to be sure I locate it right.

I am trying to simulate according to NEMA-NU 2001. It is a cylinder with a
line source inside (both 70 cm length ).

 

Thank you,

Liliana Caldeira

 

Hi Liliana.

 

Depending on what you want to do:

 

1.       To visualize the VOLUME where the source is located, there is no
command for visualize the source, as far as I know. Instead create a
daughter object to the world which has the same shape and location that your
source (remember HalfZ trick for a source), visualize it normally, but do
not attach any sensitive detector  to it.

2.       To see the ACTIVITY in the source is a bit more tricky: 

a.       Run your simulation for some reasonable time, that you for example
have a few thousands of decay events, specifying a root output and what type
of events of the source you want to see:

                                                               i.
Enable root output /gate/output/root/setFileName myFile

                                                             ii.
/gate/output/root/setRootSinglesFlag 1  if you wish to see source events
which lead to detected singles

                                                            iii.
/gate/output/root/setRootCoincidencesFlag 1 if you wish to see source events
which lead to detected coincidences

                                                           iv.      I
discourage you to view source events from Hits tree, as the events would be
doubled, and very large, but it can be done.

b.      Start root, enter TBrowser t command, and browse for your root file
myFile.root, open it that you see in the right pane trees (folders), for
example Singles and Coincidences as minimum.

c.       RIGHT-click, the tree you want to visualize, for example Singles.
Choose StartViewer command, just before the second horizontal line. This
opens a TreeViewer.

d.      In right pane you will see x:empty, y:empty, z:empty . Drag onto
respective ones leaves: sourcePosX, sourcePosY, sourcePosZ.

e.      In the left lower corner the first button, next to STOP is  Draw
current selection. Press it. This opens a 3D mouse rotable XYZ view of the
events. 

f.        If there is too many of them (like Singles), try to draw
Coincidences.

g.       With this method you can view detected events,  using globalPosX,
Y, Z variables. You cannot view the scanner geometry with this.

h.      What I wrote, applies to Gate 3.0.0 and related root 5.12. It looks,
that Gate 4.0.0 does not provide the ability to visualize the source either.

 

I hope that helps.

 

Marcin Balcerzyk

Universidad Compultense de Madrid

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20081008/5eea7fb8/attachment.htm>


More information about the Gate-users mailing list