<div dir="ltr">Thank you Alessandro for your quick reply.<br>I created the sector following step by step the manual and I didn't miss any step of the hierarchy(I think so). I attach the code for my geometry construction.<br>#=====================================================<br>#                 CYLINDRICAL SYSTEM<br>#=====================================================<br><br>/gate/world/daughters/name                       cylindricalPET<br>/gate/world/daughters/insert                     cylinder<br>/gate/cylindricalPET/placement/setTranslation    0.0 0.0 0.0 cm<br>/gate/cylindricalPET/geometry/setRmax            73.   mm<br>/gate/cylindricalPET/geometry/setRmin            63.   mm<br>/gate/cylindricalPET/geometry/setHeight          100.  mm<br>/gate/cylindricalPET/setMaterial                 Air<br>/gate/cylindricalPET/vis/forceWireframe<br>/gate/cylindricalPET/vis/setColor                white<br>/vis/viewer/zoom                                 1<br><br>#=====================================================<br>#                    HEAD-Rsector<br>#=====================================================<br><br>/gate/cylindricalPET/daughters/name               rsector <br>/gate/cylindricalPET/daughters/insert             box <br>/gate/rsector/placement/setTranslation             71. 0. -25.64 mm <br>/gate/rsector/geometry/setXLength                  10.    mm <br>/gate/rsector/geometry/setYLength                  46.03  mm <br>/gate/rsector/geometry/setZLength                  46.03  mm <br>/gate/rsector/setMaterial                          Air <br>/gate/rsector/vis/forceWireframe<br>/gate/rsector/vis/setColor                         red<br><br>#=====================================================<br>#                     HEAD1-Rsector<br>#=====================================================<br><br>/gate/cylindricalPET/daughters/name               rsector1 <br>/gate/cylindricalPET/daughters/insert             box <br>/gate/rsector1/placement/setTranslation            71. 0. 25.5 mm <br>/gate/rsector1/geometry/setXLength                 10.    mm <br>/gate/rsector1/geometry/setYLength                 46.03  mm <br>/gate/rsector1/geometry/setZLength                 46.03  mm <br>/gate/rsector1/setMaterial                         Air <br>/gate/rsector1/vis/forceWireframe<br>/gate/rsector1/vis/setColor                        red<br><br>#=====================================================<br>#                       MODULE<br>#=====================================================<br><br>/gate/rsector/daughters/name                      module<br>/gate/rsector/daughters/insert                    box<br>/gate/module/geometry/setXLength                  10. mm<br>/gate/module/geometry/setYLength                  46.03 mm<br>/gate/module/geometry/setZLength                  46.03 mm<br>/gate/module/setMaterial                          Air<br>/gate/module/vis/forceWireframe<br>/gate/module/vis/setColor                         yellow<br><br>#=====================================================<br>#                       MODULE1<br>#=====================================================<br><br>/gate/rsector1/daughters/name                      module1<br>/gate/rsector1/daughters/insert                    box<br>/gate/module1/geometry/setXLength                  10. mm<br>/gate/module1/geometry/setYLength                  46.03 mm<br>/gate/module1/geometry/setZLength                  46.03 mm<br>/gate/module1/setMaterial                          Air<br>/gate/module1/vis/forceWireframe<br>/gate/module1/vis/setColor                         yellow<br><br>#=====================================================<br>#                    CRYSTAL<br>#=====================================================<br><br>/gate/module/daughters/name                       crystal<br>/gate/module/daughters/insert                     box <br>/gate/crystal/geometry/setXLength                 10. mm <br>/gate/crystal/geometry/setYLength                 1.51 mm<br>/gate/crystal/geometry/setZLength                 1.51  mm<br>/gate/crystal/setMaterial                         Air<br>/gate/crystal/vis/forceWireframe<br>/gate/crystal/vis/setColor                        magenta <br><br>#=====================================================<br>#                     CRYSTAL1<br>#=====================================================<br><br>/gate/module1/daughters/name                       crystal1<br>/gate/module1/daughters/insert                     box <br>/gate/crystal1/geometry/setXLength                 10. mm <br>/gate/crystal1/geometry/setYLength                 1.51 mm<br>/gate/crystal1/geometry/setZLength                 1.51  mm<br>/gate/crystal1/setMaterial                         Air<br>/gate/crystal1/vis/forceWireframe<br>/gate/crystal1/vis/setColor                        yellow<br><br>#=====================================================<br>#                       LAYER<br>#=====================================================<br><br>/gate/crystal/daughters/name                         LYSO<br>/gate/crystal/daughters/insert                       box<br>/gate/LYSO/geometry/setXLength                       10. mm<br>/gate/LYSO/geometry/setYLength                       1.51 mm<br>/gate/LYSO/geometry/setZLength                       1.51 mm<br>/gate/LYSO/setMaterial                               LYSO<br>/gate/LYSO/vis/setColor                              green<br><br>#=====================================================<br>#                       LAYER1<br>#=====================================================<br><br>/gate/crystal1/daughters/name                         LYSO1<br>/gate/crystal1/daughters/insert                       box<br>/gate/LYSO1/geometry/setXLength                       10. mm<br>/gate/LYSO1/geometry/setYLength                       1.51 mm<br>/gate/LYSO1/geometry/setZLength                       1.51 mm<br>/gate/LYSO1/setMaterial                               LYSO<br>/gate/LYSO1/vis/setColor                              magenta<br><br>#=====================================================<br>#                       PSPMT<br>#=====================================================<br><br>/gate/module/daughters/name                       PMT<br>/gate/module/daughters/insert                     box<br>/gate/PMT/placement/setTranslation                10. 0. 0. mm<br>/gate/PMT/geometry/setXLength                     10. mm<br>/gate/PMT/geometry/setYLength                     49. mm<br>/gate/PMT/geometry/setZLength                     49. mm<br>/gate/PMT/vis/forceSolid<br>#/gate/PMT/setMaterial<br>/gate/PMT/vis/setColor                            yellow<br><br>#=====================================================<br>#                       PSPMT1<br>#=====================================================<br><br>/gate/module1/daughters/name                      PMT1<br>/gate/module1/daughters/insert                    box<br>/gate/PMT1/placement/setTranslation               10. 0. 0. mm<br>/gate/PMT1/geometry/setXLength                    10. mm<br>/gate/PMT1/geometry/setYLength                    49. mm<br>/gate/PMT1/geometry/setZLength                    49. mm<br>/gate/PMT1/vis/forceSolid<br>#/gate/PMT1/setMaterial<br>/gate/PMT1/vis/setColor                           yellow<br><br>#=====================================================<br>#                 REPEAT CRYSTAL<br>#=====================================================<br><br>/gate/crystal/repeaters/insert                     cubicArray<br>/gate/crystal/cubicArray/setRepeatNumberX          1<br>/gate/crystal/cubicArray/setRepeatNumberY          29<br>/gate/crystal/cubicArray/setRepeatNumberZ          29<br>/gate/crystal/cubicArray/setRepeatVector           0. 1.6 1.6 mm<br><br>#=====================================================<br>#                 REPEAT CRYSTAL1<br>#=====================================================<br><br>/gate/crystal1/repeaters/insert                     cubicArray<br>/gate/crystal1/cubicArray/setRepeatNumberX          1<br>/gate/crystal1/cubicArray/setRepeatNumberY          29<br>/gate/crystal1/cubicArray/setRepeatNumberZ          29<br>/gate/crystal1/cubicArray/setRepeatVector           0. 1.6 1.6 mm <br><br>#=====================================================<br>#                 REPEAT PMT TUBE<br>#=====================================================<br><br>/gate/PMT/repeaters/insert                     cubicArray<br>/gate/PMT/cubicArray/setRepeatNumberX          1<br>/gate/PMT/cubicArray/setRepeatNumberY          1<br>/gate/PMT/cubicArray/setRepeatNumberZ          1<br>/gate/PMT/cubicArray/setRepeatVector           0. 1.6 1.6 mm<br><br>#=====================================================<br>#                  REPEAT PMT1 TUBE<br>#=====================================================<br><br>/gate/PMT1/repeaters/insert                     cubicArray<br>/gate/PMT1/cubicArray/setRepeatNumberX          1<br>/gate/PMT1/cubicArray/setRepeatNumberY          1<br>/gate/PMT1/cubicArray/setRepeatNumberZ          1<br>/gate/PMT1/cubicArray/setRepeatVector           0. 1.6 1.6 mm<br><br>#=====================================================<br>#                     REPEAT MODULE<br>#=====================================================<br><br>/gate/module/repeaters/insert                      cubicArray <br>/gate/module/cubicArray/setRepeatNumberZ           1<br>/gate/module/cubicArray/setRepeatVector            0. 0. 46.1 mm<br>                  <br>#=====================================================<br>#                     REPEAT MODULE1<br>#=====================================================<br><br>/gate/module1/repeaters/insert                      cubicArray <br>/gate/module1/cubicArray/setRepeatNumberZ           1<br>/gate/module1/cubicArray/setRepeatVector            0. 0. 46.1 mm<br>                           <br>#=====================================================<br>#                     REPEAT RSECTOR<br>#=====================================================<br>/gate/rsector/repeaters/insert           linear<br>/gate/rsector/linear/setRepeatNumber     1<br>/gate/rsector/linear/setRepeatVector     0. 0. 46.3 mm<br>/gate/rsector/repeaters/insert                      ring <br>/gate/rsector/ring/enableAutoRotation <br>/gate/rsector/ring/setFirstAngle                    0 deg<br>/gate/rsector/ring/setRepeatNumber                  8<br><br>/gate/rsector1/repeaters/insert           linear<br>/gate/rsector1/linear/setRepeatNumber     1<br>/gate/rsector1/linear/setRepeatVector     0. 0. 46.3 mm<br>/gate/rsector1/repeaters/insert                      ring <br>/gate/rsector1/ring/enableAutoRotation <br>/gate/rsector1/ring/setFirstAngle                    0 deg<br>/gate/rsector1/ring/setRepeatNumber                  8<br><br>#=====================================================<br>#                   ATTACH SYSTEM<br>#=====================================================<br><br>/gate/systems/cylindricalPET/rsector/attach          rsector<br>/gate/systems/cylindricalPET/rsector/attach          rsector1<br>/gate/systems/cylindricalPET/module/attach           module<br>/gate/systems/cylindricalPET/module/attach           module1<br>/gate/systems/cylindricalPET/crystal/attach          crystal<br>/gate/systems/cylindricalPET/crystal/attach          crystal1<br>/gate/systems/cylindricalPET/layer1/attach           LYSO<br>/gate/systems/cylindricalPET/layer1/attach           LYSO1<br><br>#=====================================================<br>#              DEFINITION OF YOUR PHANTOM<br>#=====================================================<br><br>/gate/world/daughters/name                    phantom<br>/gate/world/daughters/insert                  cylinder<br>/gate/phantom/geometry/setRmin                0.  mm<br>/gate/phantom/geometry/setRmax                20. mm<br>/gate/phantom/geometry/setHeight              20. mm<br>/gate/phantom/placement/setTranslation        0. 0. 0. mm<br>/gate/phantom/setMaterial                     Water<br>/gate/phantom/vis/forceSolid<br>/gate/phantom/vis/setColor                    blue <br><br>#=====================================================<br>#                   ATTACH PHANTOM SD &<br>#                     ATTACH LAYER SD<br>#===================================================== <br><br>/gate/phantom/attachPhantomSD<br>/gate/PMT/attachPhantomSD<br>/gate/PMT1/attachPhantomSD<br>/gate/LYSO/attachCrystalSD<br>/gate/LYSO1/attachCrystalSD<br><br><br><br><br></div>