<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Zahra,</p>
    <p>Regarding coincidences with a system made of two heads, this
      command could solve your problem <br>
    </p>
    <p>/gate/digitizer/Coincidences/minSectorDifference 1</p>
    <p><br>
    </p>
    <p>For the configuration you  can try these options  <br>
    </p>
    <p>/gate/head/repeaters/insert                  ring<br>
      /gate/head/ring/setFirstAngle         <br>
      /gate/head/ring/setAngularSpan        <br>
      /gate/head/ring/setRepeatNumber    <br>
    </p>
    <p>You can find more details in
<a class="moz-txt-link-freetext" href="https://opengate.readthedocs.io/en/latest/defining_a_geometry.html?highlight=angularspan#ring-repeater">https://opengate.readthedocs.io/en/latest/defining_a_geometry.html?highlight=angularspan#ring-repeater</a>.</p>
    <p>I hope it helps,</p>
    <p>Ane        </p>
    <div class="moz-cite-prefix">On 16/02/2022 11:38, zahra ahmadi
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:895155141.3367773.1645007938005@mail.yahoo.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="yahoo-style-wrap" style="font-family:Helvetica Neue,
        Helvetica, Arial, sans-serif;font-size:13px;">
        <div dir="ltr" data-setdir="false">Dear all</div>
        <div dir="ltr" data-setdir="false">I used PET_Cylindryal program
          and changed the dimensions. In the full PET ring I have 12
          head. I only need two head facing each other.</div>
        <div dir="ltr" data-setdir="false"><br>
        </div>
        <div dir="ltr" data-setdir="false"> <span>/gate/head/ring/setRepeatNumber 
                          2</span></div>
        <div dir="ltr" data-setdir="false"><span><br>
          </span></div>
        <div dir="ltr" data-setdir="false"><span>For full ring I have
            hits, singles and <span><span style="color: rgb(0, 0, 0);
                font-family: "Helvetica Neue", Helvetica,
                Arial, sans-serif;">Coincidences. </span></span>The
            problem for this partial ring  is I haven't any  <span>Coincidences
              in output. I have <span>Hits and <span>Singles but the <span>Coincidences
                    file is empty.</span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false">Another question is, If I
          want to make these two heads closer to each other, Is there
          any way for that. </div>
        <div dir="ltr" data-setdir="false"><span><span><span><span><span><br>
                  </span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span><span> Please
                    let me know if you have any idea to solve that. The
                    program attached with this email.</span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span>
                  <div>
                    <div dir="ltr" data-setdir="false" style="color:
                      rgb(0, 0, 0); font-family: "Helvetica
                      Neue", Helvetica, Arial, sans-serif;">Best
                      wishes </div>
                    <div dir="ltr" data-setdir="false" style="color:
                      rgb(0, 0, 0); font-family: "Helvetica
                      Neue", Helvetica, Arial, sans-serif;">Zahra   </div>
                  </div>
                </span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span><span><br>
                  </span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span><span><br>
                  </span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span><span><br>
                  </span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span>
                  <div>=====================================================</div>
                  <div># VISUALISATION</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>##/vis/disable</div>
                  <div><br>
                  </div>
                  <div>/vis/open                           OGLSQt</div>
                  <div>/vis/viewer/set/viewpointThetaPhi   60 60</div>
                  <div>/vis/viewer/zoom                    3.0</div>
                  <div>/vis/drawVolume</div>
                  <div>/tracking/storeTrajectory           1</div>
                  <div>/vis/scene/add/trajectories</div>
                  <div>/vis/scene/add/axes<span style="white-space: pre-wrap;">           </span> 
                       </div>
                  <div>/vis/scene/endOfEventAction         accumulate</div>
                  <div><br>
                  </div>
                  <div>#/control/execute                    Verbose.mac</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div># GEOMETRY</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>/gate/geometry/setMaterialDatabase     
                     /home/gate/Desktop/GateMaterials.db</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#</div>
                  <div>#     W O R L D</div>
                  <div>#</div>
                  <div>/gate/world/geometry/setXLength       400. cm</div>
                  <div>/gate/world/geometry/setYLength       400. cm</div>
                  <div>/gate/world/geometry/setZLength       400. cm</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#-------------------oooooOOOOO00000OOOOOooooo---------------------#</div>
                  <div>#                                               
                                     #</div>
                  <div>#     D E F I N I T I O N   A N D   D E S C R I T
                    I O N           #</div>
                  <div>#                   O F  TWO LSO PANELS         
                                     #</div>
                  <div>#                                               
                                     #</div>
                  <div>#-------------------oooooOOOOO00000OOOOOooooo---------------------#</div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>CYLINDRICAL</div>
                  <div>/gate/world/daughters/name                   
                    cylindricalPET</div>
                  <div>/gate/world/daughters/insert                 
                    cylinder</div>
                  <div>/gate/cylindricalPET/placement/setTranslation 0
                    0.0 0.0 cm</div>
                  <div>/gate/cylindricalPET/geometry/setRmax       
                     444.97 mm</div>
                  <div>/gate/cylindricalPET/geometry/setRmin       
                     424.97 mm</div>
                  <div>/gate/cylindricalPET/geometry/setHeight     
                     222.4 mm</div>
                  <div>/gate/cylindricalPET/setMaterial              Air</div>
                  <div>/gate/cylindricalPET/vis/forceWireframe</div>
                  <div>/gate/cylindricalPET/vis/setColor           
                     white</div>
                  <div>#/gate/cylindricalPET/vis/setVisible         
                     True</div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>HEAD</div>
                  <div>/gate/cylindricalPET/daughters/name          head</div>
                  <div>/gate/cylindricalPET/daughters/insert        box</div>
                  <div>/gate/head/placement/setTranslation         
                     434.97 0.0 0.0 mm</div>
                  <div>/gate/head/geometry/setXLength               
                    2.0  cm</div>
                  <div>/gate/head/geometry/setYLength               
                    222.4 mm</div>
                  <div>/gate/head/geometry/setZLength               
                    222.4 mm</div>
                  <div>/gate/head/setMaterial                        Air</div>
                  <div>/gate/head/vis/setColor             <span style="white-space: pre-wrap;">   </span> 
                        white</div>
                  <div>/gate/head/vis/setVisible                     0</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>BLOCK</div>
                  <div>/gate/head/daughters/name                   
                     block</div>
                  <div>/gate/head/daughters/insert                   box</div>
                  <div>/gate/block/placement/setTranslation          0.0
                    0.0 0.0 cm</div>
                  <div>/gate/block/geometry/setXLength             
                     20.0 mm</div>
                  <div>/gate/block/geometry/setYLength             
                     55.6 mm</div>
                  <div>/gate/block/geometry/setZLength             
                     55.6 mm</div>
                  <div>/gate/block/setMaterial                       Air</div>
                  <div>/gate/block/vis/setVisible                    0</div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>C R
                    Y S T A L</div>
                  <div>/gate/block/daughters/name                   
                    crystal</div>
                  <div>/gate/block/daughters/insert                  box</div>
                  <div>/gate/crystal/placement/setTranslation        0.0
                    0.0 0.0 cm</div>
                  <div>/gate/crystal/geometry/setXLength             20
                    mm</div>
                  <div>/gate/crystal/geometry/setYLength             4.0
                    mm</div>
                  <div>/gate/crystal/geometry/setZLength             4.0
                    mm</div>
                  <div>/gate/crystal/setMaterial                     Air</div>
                  <div>/gate/crystal/vis/setVisible                  0</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>LSO
                    layer</div>
                  <div>/gate/crystal/daughters/name                  LSO</div>
                  <div>/gate/crystal/daughters/insert                box</div>
                  <div>/gate/LSO/placement/setTranslation            0.0
                    0.0 0.0 cm</div>
                  <div>/gate/LSO/geometry/setXLength               
                     20.0 mm</div>
                  <div>/gate/LSO/geometry/setYLength                 4.0
                    mm</div>
                  <div>/gate/LSO/geometry/setZLength                 4.0
                    mm</div>
                  <div>/gate/LSO/setMaterial                         LSO</div>
                  <div>/gate/LSO/vis/setColor                       
                    yellow</div>
                  <div>/gate/LSO/vis/forceSolid</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>R E
                    P E A T    C R Y S T A L</div>
                  <div>/gate/crystal/repeaters/insert               
                    cubicArray</div>
                  <div>/gate/crystal/cubicArray/setRepeatNumberX     1</div>
                  <div>/gate/crystal/cubicArray/setRepeatNumberY     13</div>
                  <div>/gate/crystal/cubicArray/setRepeatNumberZ     13</div>
                  <div>/gate/crystal/cubicArray/setRepeatVector      0.0
                    4.0 4.0 mm</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>R E
                    P E A T    BLOCK</div>
                  <div>/gate/block/repeaters/insert                 
                    cubicArray</div>
                  <div>/gate/block/cubicArray/setRepeatNumberX       1</div>
                  <div>/gate/block/cubicArray/setRepeatNumberY       4</div>
                  <div>/gate/block/cubicArray/setRepeatNumberZ       4</div>
                  <div>/gate/block/cubicArray/setRepeatVector        0.0
                    55.6 55.6 mm</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>R E
                    P E A T HEAD</div>
                  <div>/gate/head/repeaters/insert                 
                     ring</div>
                  <div>/gate/head/ring/setRepeatNumber                2</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>A T
                    T A C H    S Y S T E M </div>
                  <div>/gate/systems/cylindricalPET/rsector/attach 
                     head</div>
                  <div>/gate/systems/cylindricalPET/module/attach   
                    block</div>
                  <div>/gate/systems/cylindricalPET/crystal/attach 
                     crystal</div>
                  <div>/gate/systems/cylindricalPET/layer0/attach    LSO</div>
                  <div><br>
                  </div>
                  <div>#<span style="white-space: pre-wrap;">     </span>A T
                    T A C H    C R Y S T A L  SD</div>
                  <div><br>
                  </div>
                  <div>/gate/LSO/attachCrystalSD</div>
                  <div><br>
                  </div>
                  <div>/gate/systems/cylindricalPET/describe</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div># PHYSICS</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess PhotoElectric</div>
                  <div>/gate/physics/processes/PhotoElectric/setModel
                    StandardModel</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess Compton</div>
                  <div>/gate/physics/processes/Compton/setModel
                    StandardModel</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess RayleighScattering</div>
                  <div>/gate/physics/processes/RayleighScattering/setModel
                    PenelopeModel</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess ElectronIonisation</div>
                  <div>/gate/physics/processes/ElectronIonisation/setModel
                    StandardModel e-</div>
                  <div>/gate/physics/processes/ElectronIonisation/setModel
                    StandardModel e+</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess Bremsstrahlung</div>
                  <div>/gate/physics/processes/Bremsstrahlung/setModel
                    StandardModel e-</div>
                  <div>/gate/physics/processes/Bremsstrahlung/setModel
                    StandardModel e+</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess PositronAnnihilation</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/addProcess MultipleScattering e+</div>
                  <div>/gate/physics/addProcess MultipleScattering e-</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/processList Enabled</div>
                  <div>/gate/physics/processList Initialized</div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div># CUTS</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>/gate/physics/Gamma/SetCutInRegion      LSO 1.0
                    cm</div>
                  <div>/gate/physics/Electron/SetCutInRegion   LSO 1.0
                    cm</div>
                  <div>/gate/physics/Positron/SetCutInRegion   LSO 1.0
                    cm</div>
                  <div><br>
                  </div>
                  <div>#/gate/physics/Gamma/SetCutInRegion      BGO 1.0
                    cm</div>
                  <div>#/gate/physics/Electron/SetCutInRegion   BGO 1.0
                    cm</div>
                  <div>#/gate/physics/Positron/SetCutInRegion   BGO 1.0
                    cm</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#/gate/physics/Gamma/SetCutInRegion      phantom
                    0.1 mm</div>
                  <div>#/gate/physics/Electron/SetCutInRegion   phantom
                    0.1 mm</div>
                  <div>#/gate/physics/Positron/SetCutInRegion   phantom
                    0.1 mm</div>
                  <div><br>
                  </div>
                  <div>#/gate/physics/SetMaxStepSizeInRegion    phantom
                    0.01 mm</div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div># INITIALISATION</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>/gate/run/initialize</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div># Show how the geometry moves with time</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>#/control/execute                       
                    MoveVisu.mac</div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div>#   D I G I T I Z E R: DETECTOR ELECTRONIC
                    RESPONSE</div>
                  <div>#===================================================== </div>
                  <div><br>
                  </div>
                  <div>/gate/digitizer/Singles/insert                   
                        adder</div>
                  <div>/gate/digitizer/Singles/insert                   
                        readout</div>
                  <div>/gate/digitizer/Singles/readout/setDepth         
                        1</div>
                  <div><br>
                  </div>
                  <div>/gate/digitizer/Singles/insert                   
                        blurring</div>
                  <div>/gate/digitizer/Singles/blurring/setResolution   
                        0.26</div>
                  <div>/gate/digitizer/Singles/blurring/setEnergyOfReference
                    511. keV</div>
                  <div><br>
                  </div>
                  <div>/gate/digitizer/Singles/insert                   
                        thresholder</div>
                  <div>/gate/digitizer/Singles/thresholder/setThreshold 
                        350. keV</div>
                  <div>/gate/digitizer/Singles/insert                   
                        upholder</div>
                  <div>/gate/digitizer/Singles/upholder/setUphold       
                        650. keV</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div>#<span style="white-space: pre-wrap;">     </span>C O
                    I N C I D E N C E    S O R T E R</div>
                  <div>#===================================================== </div>
                  <div><br>
                  </div>
                  <div>/gate/digitizer/Coincidences/setWindow         
                    10. ns</div>
                  <div><br>
                  </div>
                  <div>/gate/digitizer/name                           
                    delay</div>
                  <div>/gate/digitizer/insert                         
                    coincidenceSorter</div>
                  <div>/gate/digitizer/delay/setWindow               
                     10. ns</div>
                  <div>/gate/digitizer/delay/setOffset               
                     500. ns</div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div>#  P A R T I C L E   S O U R C E</div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div> </div>
                  <div>/gate/source/addSource                           
                                 posiC11</div>
                  <div><br>
                  </div>
                  <div>#/gate/source/posiC11/gps/particle               
                                  e+</div>
                  <div>#/gate/source/posiC11/gps/energytype             
                                  Carbon11</div>
                  <div>/gate/source/posiC11/setType backtoback</div>
                  <div><br>
                  </div>
                  <div># The particles emitted by the source are gammas</div>
                  <div>/gate/source/posiC11/gps/particle gamma</div>
                  <div><br>
                  </div>
                  <div># The gammas have an energy of 511 keV</div>
                  <div>/gate/source/posiC11/gps/energytype Mono</div>
                  <div>/gate/source/posiC11/gps/monoenergy 0.511 MeV</div>
                  <div><br>
                  </div>
                  <div>/gate/source/posiC11/setActivity                 
                                 10000 becquerel</div>
                  <div><br>
                  </div>
                  <div>/gate/source/posiC11/setForcedUnstableFlag       
                                 true</div>
                  <div>/gate/source/posiC11/setForcedHalfLife           
                                 1223 s</div>
                  <div>/gate/source/posiC11/gps/angtype                 
                                 iso</div>
                  <div><br>
                  </div>
                  <div>/gate/source/posiC11/visualize red</div>
                  <div><br>
                  </div>
                  <div>/gate/source/list</div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div>#  D A T A   O U T P U T   </div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>/gate/output/root/enable</div>
                  <div>/gate/output/root/setFileName           
                     YourFile</div>
                  <div>/gate/output/root/setRootHitFlag          1</div>
                  <div>/gate/output/root/setRootSinglesFlag      1</div>
                  <div>/gate/output/root/setRootCoincidencesFlag 1</div>
                  <div>/gate/output/root/setRootdelayFlag        1</div>
                  <div><br>
                  </div>
                  <div>#====================================================</div>
                  <div>#  R A N D O M   E N G I N E  A N D  S E E D</div>
                  <div>#====================================================</div>
                  <div># JamesRandom Ranlux64 MersenneTwister</div>
                  <div>/gate/random/setEngineName JamesRandom</div>
                  <div>#/gate/random/setEngineSeed default</div>
                  <div>#/gate/random/setEngineSeed auto</div>
                  <div>#/gate/random/setEngineSeed 123456789</div>
                  <div>/gate/random/setEngineSeed default</div>
                  <div>#/gate/random/resetEngineFrom fileName</div>
                  <div>/gate/random/verbose 1</div>
                  <div><br>
                  </div>
                  <div>#=====================================================</div>
                  <div>#   M E A S U R E M E N T   S E T T I N G S   </div>
                  <div>#=====================================================</div>
                  <div><br>
                  </div>
                  <div>/gate/application/setTimeSlice   1 s</div>
                  <div>/gate/application/setTimeStart   0 s</div>
                  <div>/gate/application/setTimeStop    6 s</div>
                  <div><br>
                  </div>
                  <div>/gate/application/startDAQ</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                </span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><span><span><span><span><span><br>
                  </span></span></span></span></span></div>
        <div dir="ltr" data-setdir="false"><br>
        </div>
        <div dir="ltr" data-setdir="false"><span><span><span></span></span></span></div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></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>