<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>If the layer volumes have different names, in principle, you
      should be able to apply "localTimeResolution" module.</p>
    <p>Below you can find the commands to set a different time
      resolution to two different SD detectors called layer1 and layer2.<br>
    </p>
    <p><br>
    </p>
    /gate/digitizer/Singles/insert localTimeResolution<br>
    <p>
      /gate/digitizer/Singles/localTimeResolution/chooseNewVolume layer1<br>
/gate/digitizer/Singles/localTimeResolution/layer1/setTimeResolution 10
      ns<br>
      /gate/digitizer/Singles/localTimeResolution/chooseNewVolume layer2<br>
/gate/digitizer/Singles/localTimeResolution/layer2/setTimeResolution 15
      ns</p>
    <p><br>
    </p>
    <p>Did it work? <br>
    </p>
    <p><br>
    </p>
    <p>Best regards,</p>
    <p>Ane<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 25/01/2021 06:04, Maxime Toussaint
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:YQBPR0101MB14437C7073E688FF8E15B86AF6BD0@YQBPR0101MB1443.CANPRD01.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Greetings,</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        I have never worked with the "Compton camera imaging" part of
        Gate. Read carefully that section to make sure it applies for
        your case of interest.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        About your second question, I believe that Gate user either set
        the same tof resolution for both layer or add the tof blur after
        the simulation. The concept of layer-dependent tof resolution is
        kinda new compared to Gate, after all.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        About your third question, I would, assuming that Gate can't
        define a layer-dependent tof resolution,
        <span style="color: rgb(0, 0, 0); background-color: rgb(255,
          255, 255); display: inline !important;">
          add the tof blur after the simulation</span>. </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Bests,</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Maxime Toussaint</div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>De :</b> 김수환
          <a class="moz-txt-link-rfc2396E" href="mailto:ksh2454178@naver.com"><ksh2454178@naver.com></a><br>
          <b>Envoyé :</b> 24 janvier 2021 23:40<br>
          <b>À :</b> Maxime Toussaint
          <a class="moz-txt-link-rfc2396E" href="mailto:Maxime.Toussaint@USherbrooke.ca"><Maxime.Toussaint@USherbrooke.ca></a>;
          <a class="moz-txt-link-abbreviated" href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:gate-users@lists.opengatecollaboration.org"><gate-users@lists.opengatecollaboration.org></a><br>
          <b>Objet :</b> Re: [Gate-users] How to set the timing
          resolution of Two-layer detector</font>
        <div> </div>
      </div>
      <style>p
        {margin-top:0px;
        margin-bottom:0px}</style>
      <div>
        <div style="font-size:10pt; font-family:Gulim,sans-serif">
          <p>Hi <span style="font-family:돋움,Dotum,Helvetica,"Apple
              SD Gothic Neo",sans-serif; font-size:12px">Maxime
              Toussaint.</span></p>
          <p><span style="font-family:돋움,Dotum,Helvetica,"Apple SD
              Gothic Neo",sans-serif; font-size:12px">Thank you
              very much for your reply</span></p>
          <p>I have seen '6.4.7.Local time resolution' in the GATE user
            guide.</p>
          <p>It looks possible, doesn't it?</p>
          <p><span style="font-size:10pt">If not, how do GATE users
              generally use?</span> </p>
          <p>Do you enter the average of the two time resolution values?</p>
          <p>Very difficult</p>
          <p> </p>
          <p>Thank you.</p>
          <p> </p>
          <p>Su Hwan Kim</p>
          <p style="font-size:10pt; font-family:sans-serif; padding:0 0
            0 10pt"><span>-----Original Message-----</span><br>
            <b>From:</b> "Maxime
            Toussaint"<a class="moz-txt-link-rfc2396E" href="mailto:Maxime.Toussaint@USherbrooke.ca"><Maxime.Toussaint@USherbrooke.ca></a> <br>
            <b>To:</b>
<a class="moz-txt-link-rfc2396E" href="mailto:gate-users@lists.opengatecollaboration.org">"gate-users@lists.opengatecollaboration.org"</a><a class="moz-txt-link-rfc2396E" href="mailto:gate-users@lists.opengatecollaboration.org"><gate-users@lists.opengatecollaboration.org></a>;<br>
            <b>Cc:</b> <br>
            <b>Sent:</b> 2021-01-25 (월) 12:16:16 (GMT+09:00)<br>
            <b>Subject:</b> Re: [Gate-users] How to set the timing
            resolution of Two-layer detector<br>
             </p>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0);
            background-color:rgb(255,255,255)">
            Greetings,</div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0);
            background-color:rgb(255,255,255)">
              </div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0);
            background-color:rgb(255,255,255)">
            To the best of my knowledge, the Single digitizer treat
            every crystal equal. Thus, you cannot use Gate as-is to set
            multiple values of timing resolution. You must either modify
            Gate to enable this feature or add the timing blur after the
            simulation.</div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0);
            background-color:rgb(255,255,255)">
              </div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0);
            background-color:rgb(255,255,255)">
            Bests,</div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0);
            background-color:rgb(255,255,255)">
            Maxime Toussaint</div>
          <hr tabindex="-1" style="display:inline-block; width:98%">
          <div dir="ltr"><font style="font-size:11pt" face="Calibri,
              sans-serif" color="#000000"><b>De :</b> Gate-users
              <a class="moz-txt-link-rfc2396E" href="mailto:gate-users-bounces@lists.opengatecollaboration.org"><gate-users-bounces@lists.opengatecollaboration.org></a>
              de la part de 김수환 <a class="moz-txt-link-rfc2396E" href="mailto:ksh2454178@naver.com"><ksh2454178@naver.com></a><br>
              <b>Envoyé :</b> 24 janvier 2021 21:16<br>
              <b>À :</b> <a class="moz-txt-link-abbreviated" href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:gate-users@lists.opengatecollaboration.org"><gate-users@lists.opengatecollaboration.org></a><br>
              <b>Objet :</b> [Gate-users] How to set the timing
              resolution of Two-layer detector</font>
            <div> </div>
          </div>
          <div>
            <div style="font-size:10pt; font-family:Gulim,sans-serif">
              <p><span style="font-family:gulimche,sans-serif;
                  font-size:11pt; background-color:rgb(255,255,255)">Dear
                  GATE users</span> </p>
              <p><span style="font-family:돋움,Dotum,Helvetica,Apple SD
                  Gothic Neo,sans-serif; font-size:12px"> </span></p>
              <p><span style="background:rgb(255,255,255);
                  font-size:11pt; font-family:gulimche,sans-serif"
                  lang="EN-US">I'm designing a two-layer PET detector.</span></p>
              <p><span style="background-color:rgb(255,255,255);
                  font-size:11pt; font-family:gulimche,sans-serif">I
                  know the time resolution for each crystal.</span> </p>
              <p><span style="background-color:rgb(255,255,255);
                  font-size:11pt; font-family:gulimche,sans-serif">The
                  time resolution of the crystal at the bottom is 140.8
                  ps and the crystal at the top is 244.0 ps. </span> </p>
              <p><span style="background-color:rgb(255,255,255);
                  font-size:11pt; font-family:gulimche,sans-serif">How
                  do I set the digitizer?</span> </p>
              <p><span style="background-color:rgb(255,255,255)">Below
                  is the digitizer in my macro file.</span></p>
              <p><span style="background-color:rgb(255,255,255)"> </span></p>
              <p><span style="background-color:rgb(255,255,255);
                  font-size:10pt">----------------------------------------------------------------------</span></p>
              <p>#<span style="white-space:pre"> </span>D I G I T I Z E
                R </p>
              <p>/gate/digitizer/Singles/insert adder</p>
              <p>/gate/digitizer/Singles/insert readout</p>
              <p>/gate/digitizer/Singles/readout/setDepth 4</p>
              <p> </p>
              <p>/gate/digitizer/Singles/insert blurring</p>
              <p>/gate/digitizer/Singles/blurring/setLaw linear</p>
              <p>/gate/digitizer/Singles/blurring/linear/setResolution
                0.15</p>
              <p>/gate/digitizer/Singles/blurring/linear/setEnergyOfReference
                511. keV</p>
              <p> </p>
              <p>/gate/digitizer/Singles/insert thresholder</p>
              <p>/gate/digitizer/Singles/thresholder/setThreshold 450.
                keV</p>
              <p>/gate/digitizer/Singles/insert upholder</p>
              <p>/gate/digitizer/Singles/upholder/setUphold 650. keV</p>
              <p> </p>
              <p><span style="color:rgb(255,0,0)">/gate/digitizer/Singles/insert
                  timeResolution</span></p>
              <p><span style="color:rgb(255,0,0)">??????????????????????????????????????????? </span></p>
              <p>-----------------------------------------------------------------------</p>
              <p><span style="background-color:rgb(255,255,255);
                  font-size:10pt"> </span></p>
              <p><span style="font-family:gulimche,sans-serif; font-size:11pt; white-space:pre-wrap; background-color:rgb(255,255,255)">I need your help.</span></p>
              <p><span style="font-family:gulimche,sans-serif; font-size:11pt; white-space:pre-wrap; background-color:rgb(255,255,255)"> </span></p>
              <p><font face="gulimche, sans-serif"><span style="font-size:14.6667px; white-space:pre-wrap; background-color:rgb(255,255,255)">Thank you.</span></font></p>
              <p><font face="gulimche, sans-serif"><span style="font-size:14.6667px; white-space:pre-wrap; background-color:rgb(255,255,255)">

</span></font></p>
              <p><font face="gulimche, sans-serif"><span style="font-size:14.6667px; white-space:pre-wrap; background-color:rgb(255,255,255)">

</span></font></p>
              <p><font face="gulimche, sans-serif"><span style="font-size:14.6667px; white-space:pre-wrap; background-color:rgb(255,255,255)">

</span></font></p>
              <p><font face="gulimche, sans-serif"><span style="font-size:14.6667px; white-space:pre-wrap; background-color:rgb(255,255,255)">

</span></font></p>
              <p><font face="gulimche, sans-serif"><span style="font-size:14.6667px; white-space:pre-wrap; background-color:rgb(255,255,255)">

</span></font></p>
            </div>
            <table style="display:none">
              <tbody>
                <tr>
                  <td><br>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <table style="display:none">
          <tbody>
            <tr>
              <td><img
src="https://mail.naver.com/readReceipt/notify/?img=CQn9FAicbrRohAn%2FFqudMqvwFzkvp4iopot%2FFxbmaAtdFoJ4M6tZMq%2B4MxCCtzFXp6UmKx25W4d5W4pZMLlGWq%2Fsx6J%2F1690703T%2BBFqM605%2BuI9brC0b4iZWreOpLloMt%3D%3D.gif"
                  moz-do-not-send="true" border="0"></td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
    </blockquote>
  </body>
</html>