<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Nikta,<br>
    <br>
    I attache my iDataFilePET.hh.<br>
    I see that there are other modification to in the version v2.0, so
    you need to copy to the new file the part related to the TOF
    modification (you can see it with diff). If not, I will try to merge
    my modification with the v2.0 version this week.    <br>
    <br>
    I also see that  iDataFilePET::PROJ_WriteHeader() method is absent
    now in v.2.0. You will probably need to replace
    Out_data_file->PROJ_WriteEvent with Out_data_file->WriteEvent 
    in toolkits/castor-GATERootToCastor.cc<br>
    <br>
    Slava<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 27/04/18 18:08, nikta zarif wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAG8Pjn6=9cSd1N54Gh-zBHq9KuRV91wHZHij8webtbUVyt5i0g@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Dear Slava,
        <div><br>
        </div>
        <div>Thanks for your immediate response.</div>
        <div><br>
        </div>
        <div>Did you modify the iDataFilePET.cc as well? I tried to
          recompile and I am having these errors:</div>
        <div><br>
        </div>
        <div>
          <div>toolkits/castor-GATERootToCastor.cc: In function ‘int
            main(int, char**)’:</div>
          <div>toolkits/castor-GATERootToCastor.cc:825:39: error: ‘class
            iDataFilePET’ has no member named ‘SetTOFInfoFlag’</div>
          <div>     
             ((iDataFilePET*)Out_data_file)->SetTOFInfoFlag(true);</div>
          <div>                                       ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:827:34: error: ‘class
            iDataFilePET’ has no member named ‘SetTOFResolution’</div>
          <div> 
            ((iDataFilePET*)Out_data_file)->SetTOFResolution(tof_reso);</div>
          <div>                                  ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:829:34: error: ‘class
            iDataFilePET’ has no member named ‘SetTOFRange’</div>
          <div> 
            ((iDataFilePET*)Out_data_file)->SetTOFRange(tof_range);</div>
          <div>                                  ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1602:28: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteEvent’</div>
          <div>             Out_data_file->PROJ_WriteEvent(Event, 0);</div>
          <div>                            ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1631:27: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteEvent’</div>
          <div>            Out_data_file->PROJ_WriteEvent(Event, 0);</div>
          <div>                           ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1706:26: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteEvent’</div>
          <div>           Out_data_file->PROJ_WriteEvent(Event, 0);</div>
          <div>                          ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1777:20: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteHeader’</div>
          <div>     Out_data_file->PROJ_WriteHeader();</div>
          <div>                    ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1819:26: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteEvent’</div>
          <div>           Out_data_file->PROJ_WriteEvent(Event, 0);</div>
          <div>                          ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1835:22: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteHeader’</div>
          <div>       Out_data_file->PROJ_WriteHeader(); </div>
          <div>                      ^</div>
          <div>toolkits/castor-GATERootToCastor.cc:1848:22: error:
            ‘class vDataFile’ has no member named ‘PROJ_WriteHeader’</div>
          <div>       Out_data_file->PROJ_WriteHeader();</div>
          <div>                      ^</div>
          <div>Makefile:223: recipe for target
            'build/__tool_castor-GATERootToCastor.o' failed</div>
          <div>make: *** [build/__tool_castor-GATERootToCastor.o] Error
            1</div>
        </div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>Nikta</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Apr 27, 2018 at 10:40 AM,
          Viatcheslav Sharyy <span dir="ltr"><<a
              href="mailto:Viatcheslav.Sharyy@cea.fr" target="_blank"
              moz-do-not-send="true">Viatcheslav.Sharyy@cea.fr</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> These is a modified
              version of  castor-GATERootToCastor i made myself.<br>
              I don't remember if there is anything to modify other than
              this file.<br>
              Try to compile it and tell me if something is missing. <br>
              <br>
              The simplest way  to add it is to copy the file instead of
              GATERootToCastor.<br>
              If you want to have both, this file and GATERootToCastor,
              than you need to change the CMakeLists.txt file and add <br>
              lines  similar to those containing GATERootToCastor.<br>
              <br>
              Slava
              <div>
                <div class="h5"><br>
                  <br>
                  <div class="m_8103018067666361143moz-cite-prefix">On
                    27/04/18 16:33, nikta zarif wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"> <span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hello
                        Slava,</span>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
                      </div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Thanks
                        for your answer and for sharing the file.</div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
                      </div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">How
                        do you have access to this file? In the version
                        I have downloaded from website the file you
                        shared does not exist. I was not able to find it
                        on doxygen either. </div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
                      </div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">If
                        I replace the file you shared with
                        castor-GATERootToCastor and recompile, does
                        castor-recon also need modification?</div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
                      </div>
                      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Regards</div>
                      <br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Fri, Apr 27, 2018 at
                        4:27 AM, Viatcheslav Sharyy <span dir="ltr"><<a
                            href="mailto:Viatcheslav.Sharyy@cea.fr"
                            target="_blank" moz-do-not-send="true">Viatcheslav.Sharyy@cea.fr</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Hello
                            Nikta, <br>
                            See example in the attached file (search for
                            "SetTOFInfoFlag)<br>
                            <br>
                            Slava
                            <div>
                              <div class="m_8103018067666361143h5"><br>
                                <br>
                                <div
                                  class="m_8103018067666361143m_7367914838346861361moz-cite-prefix">On
                                  26/04/18 15:17, nikta zarif wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div class="m_8103018067666361143h5">
                                  <div dir="ltr"><br>
                                    <div>Hello,</div>
                                    <div><br>
                                    </div>
                                    <div>I have a question regarding the
                                      conversion of TOF information. How
                                      do we set the TOF information flag
                                      to "on"  when we use
                                      "castor-GATERootToCastor" or
                                      "castor-datafileConversionEx"
                                      tools to convert GATE root output
                                      to castor data file? Is there a
                                      specific command for that?</div>
                                    <div><br>
                                    </div>
                                    <div>Best Regards</div>
                                    <div>Nikta Zarif Yussefian</div>
                                    <div><br>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset
                                    class="m_8103018067666361143m_7367914838346861361mimeAttachmentHeader"></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>______________________________<wbr>_________________
Castor-users mailing list
<a class="m_8103018067666361143m_7367914838346861361moz-txt-link-abbreviated" href="mailto:Castor-users@lists.castor-project.org" target="_blank" moz-do-not-send="true">Castor-users@lists.castor-proj<wbr>ect.org</a>
<a class="m_8103018067666361143m_7367914838346861361moz-txt-link-freetext" href="http://lists.castor-project.org/listinfo/castor-users" target="_blank" moz-do-not-send="true">http://lists.castor-project.or<wbr>g/listinfo/castor-users</a><span class="m_8103018067666361143HOEnZb"><font color="#888888">
</font></span></pre>
                              <span class="m_8103018067666361143HOEnZb"><font
                                  color="#888888"> </font></span></blockquote>
                            <span class="m_8103018067666361143HOEnZb"><font
                                color="#888888"> <br>
                                <pre class="m_8103018067666361143m_7367914838346861361moz-signature" cols="72">-- 
Viatcheslav Sharyy

------------------------------<wbr>--------
Departement de Physique des Particules
IRFU, CEA-Saclay
e-mail: <a class="m_8103018067666361143m_7367914838346861361moz-txt-link-abbreviated" href="mailto:Viatcheslav.Sharyy@cea.fr" target="_blank" moz-do-not-send="true">Viatcheslav.Sharyy@cea.fr</a>
tel.:   +33 1 69 08 61 29
------------------------------<wbr>-------- 
</pre>
                              </font></span></div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <pre class="m_8103018067666361143moz-signature" cols="72">-- 
Viatcheslav Sharyy

------------------------------<wbr>--------
Departement de Physique des Particules
IRFU, CEA-Saclay
e-mail: <a class="m_8103018067666361143moz-txt-link-abbreviated" href="mailto:Viatcheslav.Sharyy@cea.fr" target="_blank" moz-do-not-send="true">Viatcheslav.Sharyy@cea.fr</a>
tel.:   +33 1 69 08 61 29
------------------------------<wbr>-------- 
</pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Viatcheslav Sharyy

--------------------------------------
Departement de Physique des Particules
IRFU, CEA-Saclay
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:Viatcheslav.Sharyy@cea.fr">Viatcheslav.Sharyy@cea.fr</a>
tel.:   +33 1 69 08 61 29
-------------------------------------- 
</pre>
  </body>
</html>