<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you very much for your response, the problem seems to be
    exactly as you describe it. It looks like it ignores any time
    settings I define and takes the time of the simulation to be that
    which makes the source run out of activity. <br>
    <br>
    I have encountered this problem when simulating a Na22 source with
    GATE 7.1 and geant4.10.01.p02, and a colleague of mine has the same
    problem with GATE 6.1 and Geant4 9.4 (she wanted to simulate 176
    Lutetium).  <br>
    <br>
    I tried to read through the Geant4 code and I can't figure out why
    the function SetPDGLifeTime() would ignore the attempt to modify the
    lifetime of an ion, but my programming knowledge isn't that deep. <br>
    <br>
    Thanks again. <br>
    <br>
    Enrique Muñoz<br>
    <br>
    <div class="moz-cite-prefix">On 04/01/16 09:37, STRYDHORST Jared
      wrote:<br>
    </div>
    <blockquote
      cite="mid:9AB82962C0EE2E49AA2CC04530A29587A4CAF2@EXDAG0-B0.intra.cea.fr"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">What version of GATE and Geant4 are
        you using and what ion?<br>
        GATE schedules the decay of ions itself according to the
        activity set by the user. To do so, it calls a function that
        sets the lifetime of the ion in Geant4 to zero so it decays
        immediately when it's created. However, in version 10 (.1?, .2?
        I don't know exactly when the change was made.) of Geant4, the
        function (SetPDGLifeTime()) now ignores any attempts to modify
        the lifetime of an ion. So the ion is created by GATE, but then
        Geant4 calculates the decay time according to the real half-life
        of the ion.<br>
        <div><br>
          <div style="font-family:Tahoma; font-size:13px">
            <div style="font-family:Tahoma; font-size:13px">
              <div class="BodyFragment"><font size="2"><span
                    style="font-size:10pt">
                    <div class="PlainText">Jared STRYDHORST<br>
                      <br>
                      <span lang="fr">
                        <div style="margin:0"><font
                            face="Calibri,sans-serif" size="2"><span
                              style="font-size:11pt"><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt">Laboratoire
                                  Imagerie Moléculaire In Vivo (IMIV)</span></font><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt"><br>
                                  UMR 1023 Inserm/CEA/Université Paris
                                  Sud - ERL 9218 CNRS</span></font></span></font></div>
                        <div style="margin:0"><font
                            face="Calibri,sans-serif" size="2"><span
                              style="font-size:11pt"><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt">CEA/I2BM/Service
                                  Hospitalier Frédéric Joliot</span></font></span></font></div>
                        <div style="margin:0"><font
                            face="Calibri,sans-serif" size="2"><span
                              style="font-size:11pt"><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt">4, place du
                                  Général Leclerc</span></font><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt"><br>
                                  91401 ORSAY Cedex</span></font><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt"><br>
                                </span></font><font face="Cambria,serif"
                                size="2"><span style="font-size:10pt"></span></font><font
                                face="Cambria,serif" size="2"><span
                                  style="font-size:10pt"><br>
                                </span></font><a moz-do-not-send="true"
                                href="mailto:karima.ait-aissa@cea.fr"
                                target="_blank"><font
                                  face="Cambria,serif" size="2"><span
                                    style="font-size:10pt"></span></font></a></span></font></div>
                        <div style="margin:0"><font
                            face="Calibri,sans-serif" size="2"><span
                              style="font-size:11pt"><a
                                moz-do-not-send="true"
                                href="http://i2bm.cea.fr/dsv/i2bm/shfj/imiv"
                                target="_blank"><font
                                  face="Cambria,serif" size="2"><span
                                    style="font-size:10pt"><a class="moz-txt-link-freetext" href="http://i2bm.cea.fr/dsv/i2bm/shfj/imiv">http://i2bm.cea.fr/dsv/i2bm/shfj/imiv</a></span></font></a></span></font></div>
                      </span></div>
                  </span></font></div>
            </div>
          </div>
        </div>
        <div style="font-family: Times New Roman; color: #000000;
          font-size: 16px">
          <hr tabindex="-1">
          <div style="direction: ltr;" id="divRpF827642"><font
              color="#000000" face="Tahoma" size="2"><b>De :</b>
              <a class="moz-txt-link-abbreviated" href="mailto:gate-users-bounces@lists.opengatecollaboration.org">gate-users-bounces@lists.opengatecollaboration.org</a>
              [<a class="moz-txt-link-abbreviated" href="mailto:gate-users-bounces@lists.opengatecollaboration.org">gate-users-bounces@lists.opengatecollaboration.org</a>] de la
              part de Enrique Muñoz Albaladejo
              [<a class="moz-txt-link-abbreviated" href="mailto:Enrique.Munoz@ific.uv.es">Enrique.Munoz@ific.uv.es</a>]<br>
              <b>Envoyé :</b> lundi 21 décembre 2015 12:32<br>
              <b>À :</b> <a class="moz-txt-link-abbreviated" href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
              <b>Objet :</b> [Gate-users] Ion source - timestamp problem
              GATE 6.1<br>
            </font><br>
          </div>
          <div>
            <p class="MsoNormal" style="margin:0px; color:rgb(34,34,34);
              font-size:12.8px; font-style:normal; font-variant:normal;
              font-weight:normal; letter-spacing:normal;
              line-height:normal; text-align:start; text-indent:0px;
              text-transform:none; white-space:normal; widows:1;
              word-spacing:0px; background-color:rgb(255,255,255)">
              <span style="font-size:10pt; color:black" lang="EN-GB">Dear
                all,<br>
              </span></p>
            <p class="MsoNormal" style="margin:0px; color:rgb(34,34,34);
              font-size:12.8px; font-style:normal; font-variant:normal;
              font-weight:normal; letter-spacing:normal;
              line-height:normal; text-align:start; text-indent:0px;
              text-transform:none; white-space:normal; widows:1;
              word-spacing:0px; background-color:rgb(255,255,255)">
              <br>
              <span style="font-size:10pt; color:black" lang="EN-GB"></span><span
                style="font-size:10pt; color:black" lang="EN-GB"></span></p>
            <p class="MsoNormal" style="margin:0px; color:rgb(34,34,34);
              font-size:12.8px; font-style:normal; font-variant:normal;
              font-weight:normal; letter-spacing:normal;
              line-height:normal; text-align:start; text-indent:0px;
              text-transform:none; white-space:normal; widows:1;
              word-spacing:0px; background-color:rgb(255,255,255)">
              <span style="font-size:10pt; color:black" lang="EN-GB">I
                am trying to use an ion source for a PETscanner.</span><span
                style="font-size:10pt; color:black" lang="EN-GB"></span></p>
            <p class="MsoNormal" style="margin:0px; color:rgb(34,34,34);
              font-size:12.8px; font-style:normal; font-variant:normal;
              font-weight:normal; letter-spacing:normal;
              line-height:normal; text-align:start; text-indent:0px;
              text-transform:none; white-space:normal; widows:1;
              word-spacing:0px; background-color:rgb(255,255,255)">
              <span style="font-size:10pt; color:black" lang="EN-GB">The
                simulation provides strange values for the time stamp of
                the singles. 
                <br>
                The parameter  "setTimeStop"  was set to 50s, but the
                timestamp of the first detected single was 3.4x10^17 s.</span><span
                style="font-size:10pt; color:black" lang="EN-GB"></span></p>
            <p class="MsoNormal" style="margin:0px; color:rgb(34,34,34);
              font-size:12.8px; font-style:normal; font-variant:normal;
              font-weight:normal; letter-spacing:normal;
              line-height:normal; text-align:start; text-indent:0px;
              text-transform:none; white-space:normal; widows:1;
              word-spacing:0px; background-color:rgb(255,255,255)">
              <span style="font-size:10pt; color:black" lang="EN-GB">I
                would like to know if there is any solution to this
                problem.</span><span style="font-size:10pt; color:black"
                lang="EN-GB"></span></p>
            <span style="font-size:10pt; color:black" lang="EN-GB">Best
              regards</span><span style="font-size:10pt;
              font-family:Arial; color:black"><font face="sans-serif">,<br>
                <br>
                Enrique</font><br>
            </span></div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>