Hello !<br><br>in Ascii Coincidenc.dat file certain columns <br>like 4-6,9-11,27-29,32-34 represents XYZ position of the annihilation in world referential ? what does it mean? <br>which are the columns one should consider to see the image of the simulation, <br>
thanks <br><br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 10:32 PM,  <span dir="ltr"><<a href="mailto:gate-users-request@lists.opengatecollaboration.org" target="_blank">gate-users-request@lists.opengatecollaboration.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" target="_blank">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: about "Forbid" command in GATE simulation (?? ?)<br>
   2. Re: Voxelized source orientation (J?r?me Suhard)<br>
   3. Gate command menu (dme627b)<br>
   4. Re: Gate command menu (Carlos Uribe)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 13 Dec 2012 23:30:34 +0900<br>
From: ?? ?      <<a href="mailto:takuyama@med.hokudai.ac.jp">takuyama@med.hokudai.ac.jp</a>><br>
To: Kaiyang Li <<a href="mailto:kl780@uowmail.edu.au">kl780@uowmail.edu.au</a>>,  gate-users<br>
        <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: Re: [Gate-users] about "Forbid" command in GATE simulation<br>
Message-ID:<br>
        <CADb2yx9Vjttz8=<a href="mailto:NhQSVh%2BEJABf_2UWL5wdCOncqi2z2BKxnNOQ@mail.gmail.com">NhQSVh+EJABf_2UWL5wdCOncqi2z2BKxnNOQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-2022-jp"<br>
<br>
Hello Kaiyang Li,<br>
<br>
I'm still struggling with "forbid".<br>
<br>
I tried the simple geometry, too, but my simulation stops with "***Break***<br>
segmentation violation" and I cannot proceed to even see the reconstructed<br>
image... this didn't happen before...<br>
<br>
Anyway, it seems the command is working somehow.<br>
When I tried to forbid the whole source by surrounding with the<br>
"forbidding" volume and start simulation, GATE gave me the message of<br>
"primaries were always generated in forbidden volumes!" and the simulation<br>
was shut down.<br>
<br>
Also, you can visualize the source by<br>
/gate/source/FictiveSource/visualize "count" "color" "size"<br>
This command should reflect the "forbid" as well, so we are supposed to be<br>
able to see the "forbidden" source... but...<br>
<br>
You can check how the "forbid" command works in GATE in<br>
GateSPSPosDistribution.cc line:150<br>
<br>
After all, I cannot give you any solution to this problem.<br>
I'll still work on with this, so if you find anything new, please let me<br>
know.<br>
<br>
Taku<br>
<br>
2012/12/10 Kaiyang Li <<a href="mailto:kl780@uowmail.edu.au">kl780@uowmail.edu.au</a>><br>
<br>
>  Hi Taku,<br>
><br>
> My name is Kaiyang Li, a GATE user.<br>
> I have the problem of using "forbid" in my simulation. It seems that the<br>
> forbid area is simply<br>
> not forbidden at all.<br>
><br>
> I have read all other questions, including yours. Have you figure it out<br>
> yet?<br>
> I have used GATE for half a year and run some other complex simulations<br>
> successfully but for this forbid one, it seems something is wrong.<br>
><br>
> Here is my simple code followed by the GATE instruction:<br>
><br>
> /gate/world/daughters/name cold_area<br>
> /gate/world/daughters/insert cylinder<br>
> /gate/cold_area/vis/forceWireframe<br>
> /gate/cold_area/vis/setColor green<br>
> /gate/cold_area/geometry/setRmax 2.0 mm<br>
> /gate/cold_area/geometry/setHeight 0.3 mm<br>
> /gate/cold_area/setMaterial Water<br>
><br>
> /gate/run/initialize<br>
><br>
> /gate/source/addSource number1<br>
> /gate/source/number1/setActivity 37000000. becquerel<br>
> /gate/source/number1/gps/particle gamma<br>
> /gate/source/number1/setType backtoback<br>
> /gate/source/number1/gps/monoenergy 511. keV<br>
> /gate/source/number1/setForcedUnstableFlag                     true<br>
> /gate/source/number1/setForcedHalfLife                6586 s<br>
> /gate/source/number1/gps/type Volume<br>
> /gate/source/number1/gps/shape Cylinder<br>
> /gate/source/number1/gps/radius 4. mm<br>
> /gate/source/number1/gps/halfz 0.15 mm<br>
> /gate/source/number1/gps/centre 0. 0. 0. mm<br>
> /gate/source/number1/gps/angtype iso<br>
> /gate/source/number1/gps/Forbid cold_area<br>
> /gate/source/number1/dump 1<br>
> /gate/source/list<br>
><br>
> The reconstructed image shows that there is no forbidden area.<br>
> Probably the forbidden command is not working, what do you think?<br>
><br>
><br>
> Kind Regards,<br>
> Kaiyang Li<br>
><br>
<br>
<br>
<br>
--<br>
Hokkaido University,  Graduate school of medicine, medical physics and<br>
engineering D1<br>
????? ??? ????? ???????? D1<br>
Taku Yamanaka<br>
?? ?<br>
<br>
<a href="mailto:takuyama@med.hokudai.ac.jp">takuyama@med.hokudai.ac.jp</a><br>
--<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/b6e4d5a9/attachment-0001.html" target="_blank">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/b6e4d5a9/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 13 Dec 2012 17:19:25 +0100<br>
From: J?r?me Suhard <<a href="mailto:jerome@suhard.fr">jerome@suhard.fr</a>><br>
To: Tom Buitenhuis <<a href="mailto:hjt.buitenhuis@gmail.com">hjt.buitenhuis@gmail.com</a>><br>
Cc: <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
Subject: Re: [Gate-users] Voxelized source orientation<br>
Message-ID:<br>
        <CANCPmRcWPWs2Fvj_GBXUp+4D_nNmg_Q15=<a href="mailto:Khj%2BFauYPqOPK3Cw@mail.gmail.com">Khj+FauYPqOPK3Cw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
<br>
2012/12/13 Tom Buitenhuis <<a href="mailto:hjt.buitenhuis@gmail.com">hjt.buitenhuis@gmail.com</a>><br>
<br>
> According to the documentation of these file formats, data is stored in<br>
> row-major order. For example, for the InterFile 3.3 format, the specs can<br>
> be found here:<br>
> <a href="http://www.nucmed.si.mahidol.ac.th/nucmed1/pip/interfil1.html" target="_blank">http://www.nucmed.si.mahidol.ac.th/nucmed1/pip/interfil1.html</a><br>
><br>
> Relevant section:<br>
> "I.5. IMAGE DATA<br>
><br>
> A. Image arrays are to be arranged with the first value (in the binary<br>
> data) corresponding to the pixel in the top left corner and with the value<br>
> corresponding to the pixel in the bottom right corner occurring last. Image<br>
> arrays in V3.3 remain 2-D. The order of the pixel data shall increment by<br>
> column from left to right, and then (for each such row) by row, from top to<br>
> bottom. This is also known as row major order."<br>
><br>
> more info on row-major order: <a href="http://en.wikipedia.org/wiki/Row-major_order" target="_blank">http://en.wikipedia.org/wiki/Row-major_order</a><br>
><br>
> However, when I simulate a voxelized source, the activity seems to have<br>
> the y-axis inverted, i.e. it seems that GATE ignores this row-major part of<br>
> the InterFile specification. An example of this can be seen in the attached<br>
> image. On the left, there is a window where I display the InterFile source<br>
> in AMIDE, which correctly interprets the specs. The top, white, part of the<br>
> source has an activity of 10 Bq, where the bottom, green, part has an<br>
> activity of 500 Bq. On the right of the image, I display the root output of<br>
> the source-position of simulated coincidences, where we can see that the<br>
> top-part now has the higher activity, instead of the bottom part.<br>
><br>
> The same seems to hold for the Analyze 7.5 voxelized phantom. When we<br>
> center both the source and the phantom, this shouldn't be a problem in a<br>
> cylindrical symmetric PET-scanner, but when we translate one with respect<br>
> to the other, this could be problematic. The fix is ofcourse easy, i.e.<br>
> translate in the -y instead of the +y direction, but when this is<br>
> undocumented, incorrect simulations will be performed.<br>
><br>
> Does anyone else have any experience with this? Am I making a mistake, or<br>
> is this a bug in the implementation of the file specs in GATE?<br>
><br>
<br>
GATE doesn't conform to InterFile specs. It just parses some keys according<br>
to the function GateSourceVoxelInterfileReader::ReadKey(FILE* fp) in<br>
source/physics/src/GateSourceVoxelInterfileReader.cc .<br>
<br>
Here are the relevant portions:<br>
<br>
if ( key ==  "matrix size [1]" ) {<br>
    sscanf(value,"%d",m_dim);<br>
  } else if ( key ==  "matrix size [2]" ) {<br>
    sscanf(value,"%d",m_dim+1);<br>
  } else if ( ( key ==  "number of slices" ) || (key ==  "number of<br>
images") ) {<br>
    sscanf(value,"%d",&m_numPlanes);<br>
  } else if ( key ==  "scaling factor (mm/pixel) [1]" ) {<br>
    sscanf(value,"%f",m_pixelSize);<br>
  } else if ( key ==  "scaling factor (mm/pixel) [2]" ) {<br>
    sscanf(value,"%f",m_pixelSize+1);<br>
  } else if ( key ==  "slice thickness (pixels)" ) {<br>
    sscanf(value,"%f",&m_planeThickness);<br>
  } else if ( key ==  "name of data file" ) {<br>
    m_dataFileName = std::string(value);<br>
  } else if ( key ==  "number format" ) {<br>
    if ( (strcmp(value,"float")==0) || (strcmp(value,"FLOAT")==0) )<br>
      m_dataTypeName = "FLOAT";<br>
    else if ( (strcmp(value,"unsigned integer")==0) ||<br>
(strcmp(value,"UNSIGNED INTEGER")==0) )<br>
      m_dataTypeName = "UNSIGNED INTEGER";<br>
    else<br>
      G4cout << "Unrecognised type name '" << value << "'" << G4endl;<br>
  } else if (key == "imagedata byte order") {<br>
        if ( strcmp(value,"BIGENDIAN") == 0 )<br>
                m_dataByteOrder = "BIGENDIAN";<br>
        else if ( strcmp(value,"LITTLEENDIAN") == 0)<br>
                m_dataByteOrder = "LITTLEENDIAN";<br>
        else<br>
                G4cerr << "Unrecognized data byte order '" +<br>
G4String(value) + "', assuming default BIGENDIAN\n" << G4endl;<br>
  } else {<br>
    // G4cout << "Key not processed: '" << key << "'" << G4endl;<br>
  }<br>
<br>
<br>
Best regards,<br>
--<br>
J?r?me Suhard<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/01ad17f6/attachment-0001.html" target="_blank">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/01ad17f6/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 13 Dec 2012 13:32:54 -0800<br>
From: dme627b <<a href="mailto:dme627b@gmail.com">dme627b@gmail.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] Gate command menu<br>
Message-ID: <<a href="mailto:201212131332533900771@gmail.com">201212131332533900771@gmail.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi everyone,<br>
<br>
I am a new gate user. I do not know if there is a Gate command menu which includes all the gate command, because I think it will be very helpful. Any other document of Gate command is also appreciate.<br>
<br>
Can anyone help me? Thank you in advance.<br>
<br>
Best Regards,<br>
<br>
Jeremy<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/7b6bd3a5/attachment-0001.html" target="_blank">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/7b6bd3a5/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 13 Dec 2012 13:37:44 -0800<br>
From: Carlos Uribe <<a href="mailto:carluri@phas.ubc.ca">carluri@phas.ubc.ca</a>><br>
To: dme627b <<a href="mailto:dme627b@gmail.com">dme627b@gmail.com</a>><br>
Cc: "<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] Gate command menu<br>
Message-ID:<br>
        <<a href="mailto:CAPJy_1TQZ-9D1kVAretM%2B%2B14bnKnY%2B4AiYvbKrQHYPaNYXT03g@mail.gmail.com">CAPJy_1TQZ-9D1kVAretM++14bnKnY+4AiYvbKrQHYPaNYXT03g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Jeremy,<br>
<br>
you can try typing  "Gate" in your terminal   then   "help".<br>
<br>
does that work?<br>
<br>
<br>
<br>
<br>
On Thu, Dec 13, 2012 at 1:32 PM, dme627b <<a href="mailto:dme627b@gmail.com">dme627b@gmail.com</a>> wrote:<br>
<br>
> **<br>
> Hi everyone,<br>
><br>
> I am a new gate user. I do not know if there is a Gate command menu which<br>
> includes all the gate command, because I think it will be very helpful. Any<br>
> other document of Gate command is also appreciate.<br>
><br>
> Can anyone help me? Thank you in advance.<br>
><br>
> Best Regards,<br>
><br>
> Jeremy<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" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
><br>
> --<br>
> Carlos F Uribe<br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/c7de1876/attachment.html" target="_blank">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121213/c7de1876/attachment.html</a>><br>

<br>
------------------------------<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" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
End of Gate-users Digest, Vol 79, Issue 17<br>
******************************************<br>
</blockquote></div><br>