[Gate-users] RE: Visualize Source

Simon Stute gate.stute at gmail.com
Wed Oct 8 17:55:59 CEST 2008


Hi Marcin,

Now RAW output (in Gate_v4.0.0) could do the same thing, is less boring, and
could be as precise as you want.
This output directly stores in a raw matrix (float 32 bits format) the
sourcePosX, Y and Z position of each detected events (Singles and/or
Coincidences).
Then you can visualize it with any imaging tool (ImageJ for example).

Cheers,
Simon

On Wed, Oct 8, 2008 at 11:49 AM, Marcin Balcerzyk
<m.balcerzyk at pluri.ucm.es>wrote:

>  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
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20081008/3a8d6a09/attachment.htm>


More information about the Gate-users mailing list