<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div style="font-size:10pt; font-family:Gulim,sans-serif;"><div><p>Hi</p><p> </p><p>I am trying to make dual layer offset structure detector.</p><p>I tried to make it work by repeating the layers of LYSO. However there is an error saying</p><p> </p><p>-------- EEEE ------- G4Exception-START -------- EEEE -------</p><p>*** G4Exception : Cache001</p><p> issued by : G4CacheReference<V>::Destroy</p><p>Internal fatal error. Invalid G4Cache size (requested id: 8 but cache has size: 6 Possibly client created G4Cache object in a thread and tried to delete it from another thread!</p><p>*** Fatal Exception *** core dump ***</p><p>-------- EEEE -------- G4Exception-END --------- EEEE -------</p><p> </p><p>[G4-cerr] </p><p>[G4-cerr] *** G4Exception: Aborting execution ***</p><p> </p><p>I don't have any idea what it means.</p><p>Can any one help?</p><p> </p><p>Here is my code for dual offset layer </p><p> </p><p>/vis/disable</p><p> </p><p>#/vis/open OGLSX</p><p>#/vis/viewer/set/viewpointThetaPhi 90 90</p><p>#/vis/viewer/zoom 6.0</p><p>#/vis/drawVolume</p><p>#/tracking/storeTrajectory 1</p><p>#/vis/scene/add/trajectories </p><p>#/vis/scene/endOfEventAction accumulate</p><p> </p><p>#/vis/open OGLSQt</p><p>#/vis/viewer/set/viewpointThetaPhi 0 0</p><p>#/vis/viewer/zoom 1.5</p><p>#/vis/viewer/set/projection perspective</p><p>#/vis/viewer/set/lightsMove camera</p><p>#/vis/drawVolume</p><p>#/tracking/storeTrajectory 1</p><p>#/vis/scene/add/trajectories</p><p>#/vis/scene/endOfEventAction accumulate -1</p><p>#/vis/scene/add/axes </p><p> </p><p>/gate/verbose Physic 0</p><p>/gate/verbose Cuts 0</p><p>/gate/verbose SD 0</p><p>/gate/verbose Actions 0</p><p>/gate/verbose Actor 0</p><p>/gate/verbose Step 0</p><p>/gate/verbose Error 0</p><p>/gate/verbose Warning 0</p><p>/gate/verbose Output 0</p><p>/gate/verbose Beam 0</p><p>/gate/verbose Volume 0</p><p>/gate/verbose Image 0</p><p>/gate/verbose Geometry 0</p><p>/gate/verbose Core 0</p><p>/run/verbose 0</p><p>/event/verbose 0</p><p>/tracking/verbose 0</p><p> </p><p>/gate/geometry/setMaterialDatabase /GATE/GATE_v8.0/Gate_Work/GateMaterials.db</p><p> </p><p># W O R L D</p><p>/gate/world/geometry/setXLength 150. cm</p><p>/gate/world/geometry/setYLength 150. cm</p><p>/gate/world/geometry/setZLength 150. cm</p><p> </p><p>#<span style="white-space: pre;"> </span>CYLINDRICAL</p><p>/gate/world/daughters/name cylindricalPET</p><p>/gate/world/daughters/insert cylinder</p><p>/gate/cylindricalPET/placement/setTranslation 0.0 0.0 0.0 cm</p><p>/gate/cylindricalPET/geometry/setRmax 210 mm</p><p>/gate/cylindricalPET/geometry/setRmin 165 mm</p><p>/gate/cylindricalPET/geometry/setHeight 25.8 mm</p><p>/gate/cylindricalPET/setMaterial Air</p><p>/gate/cylindricalPET/vis/forceWireframe</p><p>/gate/cylindricalPET/vis/setColor white</p><p>#/gate/cylindricalPET/vis/setVisible 0</p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>HEAD</p><p>/gate/cylindricalPET/daughters/name rsector</p><p>/gate/cylindricalPET/daughters/insert box</p><p>/gate/rsector/placement/setTranslation 175 0.0 0 mm</p><p>/gate/rsector/geometry/setXLength 20.0 mm</p><p>/gate/rsector/geometry/setYLength 25.8 mm</p><p>/gate/rsector/geometry/setZLength 25.8 mm</p><p>/gate/rsector/setMaterial Air</p><p>#/gate/rsector/vis/setColor blue</p><p>#/gate/rsector/vis/setVisible 0</p><p> </p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>MODULE</p><p>/gate/rsector/daughters/name module</p><p>/gate/rsector/daughters/insert box</p><p>/gate/module/placement/setTranslation 0. 0.0 0.0 cm</p><p>/gate/module/geometry/setXLength 20.0 mm</p><p>/gate/module/geometry/setYLength 25.8 mm</p><p>/gate/module/geometry/setZLength 25.8 mm</p><p>/gate/module/setMaterial Air</p><p>/gate/module/vis/setVisible 0</p><p> </p><p>#<span style="white-space: pre;"> </span>BLOCK</p><p>/gate/module/daughters/name submodule</p><p>/gate/module/daughters/insert box</p><p>/gate/submodule/placement/setTranslation 0.0 0.0 0.0 cm</p><p>/gate/submodule/geometry/setXLength 20 mm</p><p>/gate/submodule/geometry/setYLength 25.8 mm</p><p>/gate/submodule/geometry/setZLength 25.8 mm</p><p>/gate/submodule/setMaterial Air</p><p>/gate/submodule/vis/setVisible 0</p><p> </p><p>#<span style="white-space: pre;"> </span>C R Y S T A L </p><p>/gate/module/daughters/name crystal</p><p>/gate/module/daughters/insert box</p><p>/gate/crystal/placement/setTranslation 0.0 0.0 0. cm</p><p>/gate/crystal/geometry/setXLength 20.0 mm</p><p>/gate/crystal/geometry/setYLength 25.8 mm</p><p>/gate/crystal/geometry/setZLength 25.8 mm</p><p>/gate/crystal/setMaterial Air</p><p>/gate/crystal/vis/setColor green</p><p>#/gate/crystal/vis/setVisible 0</p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>LSO layer0</p><p>/gate/crystal/daughters/name LYSO</p><p>/gate/crystal/daughters/insert box</p><p>/gate/LYSO/placement/setTranslation -0.6 0.0 0.0 cm</p><p>/gate/LYSO/geometry/setXLength 8. mm</p><p>/gate/LYSO/geometry/setYLength 1.75 mm</p><p>/gate/LYSO/geometry/setZLength 1.75 mm</p><p>/gate/LYSO/setMaterial LYSO</p><p>/gate/LYSO/vis/setColor green</p><p>#/gate/LYSO/vis/setVisible 0</p><p> </p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>LSO layer1</p><p>/gate/crystal/daughters/name LYSO2</p><p>/gate/crystal/daughters/insert box</p><p>/gate/LYSO2/placement/setTranslation 0.4 0.0 0.0 cm</p><p>/gate/LYSO2/geometry/setXLength 12. mm</p><p>/gate/LYSO2/geometry/setYLength 1.75 mm</p><p>/gate/LYSO2/geometry/setZLength 1.75 mm</p><p>/gate/LYSO2/setMaterial LYSO</p><p>/gate/LYSO2/vis/setColor red</p><p>#/gate/LYSO2/vis/setVisible 0</p><p> </p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>R E P E A T L A Y E R</p><p> </p><p>/gate/LYSO/repeaters/insert cubicArray</p><p>/gate/LYSO/cubicArray/setRepeatNumberX 1</p><p>/gate/LYSO/cubicArray/setRepeatNumberY 13</p><p>/gate/LYSO/cubicArray/setRepeatNumberZ 13</p><p>/gate/LYSO/cubicArray/setRepeatVector 0.0 1.83 1.83 mm</p><p> </p><p>/gate/LYSO2/repeaters/insert cubicArray</p><p>/gate/LYSO2/cubicArray/setRepeatNumberX 1</p><p>/gate/LYSO2/cubicArray/setRepeatNumberY 14</p><p>/gate/LYSO2/cubicArray/setRepeatNumberZ 14</p><p>/gate/LYSO2/cubicArray/setRepeatVector 0.0 1.83 1.83 mm</p><p> </p><p> </p><p>############################</p><p># R E P E A T M O D U L E </p><p>############################</p><p>/gate/module/repeaters/insert cubicArray</p><p>/gate/module/cubicArray/setRepeatNumberX 1</p><p>/gate/module/cubicArray/setRepeatNumberY 1</p><p>/gate/module/cubicArray/setRepeatNumberZ 1</p><p>/gate/module/cubicArray/setRepeatVector 0.0 25.8 25.8 mm</p><p> </p><p> </p><p> </p><p>/gate/rsector/repeaters/insert ring</p><p>/gate/rsector/ring/setRepeatNumber 40</p><p> </p><p> </p><p> </p><p>#/gate/rsector/repeaters/insert linear</p><p>#/gate/rsector/linear/setRepeatNumber 2</p><p>#/gate/rsector/linear/setRepeatVector 0. 0. 25.8 mm</p><p> </p><p> </p><p>/gate/systems/cylindricalPET/rsector/attach rsector</p><p>/gate/systems/cylindricalPET/module/attach module</p><p>/gate/systems/cylindricalPET/submodule/attach submodule</p><p>/gate/systems/cylindricalPET/crystal/attach crystal</p><p>/gate/systems/cylindricalPET/layer0/attach LYSO</p><p> </p><p> </p><p>/gate/LYSO/attachCrystalSD</p><p>/gate/LYSO2/attachCrystalSD</p><p>/gate/systems/cylindricalPET/describe</p><p> </p><p> </p><p> </p><p># P H Y S I C S</p><p>#</p><p>/gate/physics/addProcess PhotoElectric</p><p>/gate/physics/processes/PhotoElectric/setModel StandardModel</p><p> </p><p>/gate/physics/addProcess Compton</p><p>/gate/physics/processes/Compton/setModel StandardModel</p><p> </p><p>/gate/physics/addProcess RayleighScattering </p><p>/gate/physics/processes/RayleighScattering/setModel PenelopeModel</p><p> </p><p>/gate/physics/addProcess ElectronIonisation</p><p>/gate/physics/processes/ElectronIonisation/setModel StandardModel e-</p><p>/gate/physics/processes/ElectronIonisation/setModel StandardModel e+</p><p> </p><p>/gate/physics/addProcess Bremsstrahlung</p><p>/gate/physics/processes/Bremsstrahlung/setModel StandardModel e-</p><p>/gate/physics/processes/Bremsstrahlung/setModel StandardModel e+</p><p> </p><p>/gate/physics/addProcess PositronAnnihilation</p><p>#/gate/physics/addProcess G4PositronAnnihilation e+</p><p>#/gate/physics/processes/G4PositronAnnihilation/setModel StandardModel</p><p> </p><p>/gate/physics/addProcess MultipleScattering e+</p><p>/gate/physics/addProcess MultipleScattering e-</p><p> </p><p>/gate/physics/addProcess RadioactiveDecay</p><p> </p><p>/gate/physics/addAtomDeexcitation</p><p>#/process/em/fluo false</p><p>#/process/em/auger false</p><p>#/process/em/pixe false</p><p>#/gate/physics/addPhysicsList emstandard_opt3</p><p> </p><p>/gate/physics/processList Enabled</p><p>/gate/physics/processList Initialized</p><p> </p><p> </p><p>/gate/physics/Gamma/SetCutInRegion LYSO 1.0 cm</p><p>/gate/physics/Electron/SetCutInRegion LYSO 1.0 cm</p><p>/gate/physics/Positron/SetCutInRegion LYSO 1.0 cm</p><p> </p><p>/gate/physics/Gamma/SetCutInRegion LYSO2 1.0 cm</p><p>/gate/physics/Electron/SetCutInRegion LYSO2 1.0 cm</p><p>/gate/physics/Positron/SetCutInRegion LYSO2 1.0 cm</p><p> </p><p>#/gate/physics/Gamma/SetCutInRegion GAGG 1.0 cm</p><p>#/gate/physics/Electron/SetCutInRegion GAGG 1.0 cm</p><p>#/gate/physics/Positron/SetCutInRegion GAGG 1.0 cm</p><p> </p><p>#/gate/physics/displayCuts</p><p>/gate/run/initialize</p><p> </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> </p><p># D E A D T I M E</p><p>/gate/digitizer/Singles/insert deadtime</p><p>/gate/digitizer/Singles/deadtime/setDeadTime 150. ns</p><p>/gate/digitizer/Singles/deadtime/setMode nonparalysable</p><p>/gate/digitizer/Singles/deadtime/chooseDTVolume module</p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>C O I N C I S O R T E R </p><p>/gate/digitizer/Coincidences/setWindow 2000. ps</p><p>/gate/digitizer/Coincidences/minSectorDifference 2</p><p>/gate/digitizer/Coincidences/MultiplesPolicy takeWinnerOfGoods</p><p>/gate/digitizer/Coincidences/setOffset 0. ns</p><p>#/gate/digitizer/Coincidences/describe</p><p> </p><p> </p><p>/gate/digitizer/name delay</p><p>/gate/digitizer/insert coincidenceSorter </p><p>/gate/digitizer/delay/minSectorDifference 2</p><p>/gate/digitizer/delay/setOffset 100. ns </p><p>/gate/digitizer/delay/setWindow 8. ns </p><p>/gate/digitizer/delay/MultiplesPolicy takeWinnerOfGoods</p><p> </p><p>#<span style="white-space: pre;"> </span>S O U R C E</p><p>#################</p><p># #</p><p>/gate/source/addSource source1</p><p>/gate/source/source1/setActivity 1000000. Bq</p><p>/gate/source/source1/setType backtoback</p><p>/gate/source/source1/gps/particle gamma</p><p>/gate/source/source1/gps/energytype Mono</p><p>/gate/source/source1/gps/energy 511 keV</p><p>/gate/source/source1/gps/angtype iso</p><p>/gate/source/source1/gps/type Volume</p><p>/gate/source/source1/gps/shape Sphere</p><p>/gate/source/source1/gps/radius 0.5 mm</p><p>#/gate/source/source1/gps/halfz 25 mm</p><p>/gate/source/source1/gps/centre 0. 0. 0. mm</p><p>/gate/source/source1/visualize 100 red 1</p><p> </p><p>/gate/source/addSource source2</p><p>/gate/source/source1/setActivity 1000000. Bq</p><p>/gate/source/source1/setType backtoback</p><p>/gate/source/source1/gps/particle gamma</p><p>/gate/source/source1/gps/energytype Mono</p><p>/gate/source/source1/gps/energy 511 keV</p><p>/gate/source/source1/gps/angtype iso</p><p>/gate/source/source1/gps/type Volume</p><p>/gate/source/source1/gps/shape Sphere</p><p>/gate/source/source1/gps/radius 0.5 mm</p><p>#/gate/source/source1/gps/halfz 25 mm</p><p>/gate/source/source1/gps/centre 20. 0. 0. mm</p><p>/gate/source/source1/visualize 100 red 1</p><p> </p><p>/gate/source/addSource source3</p><p>/gate/source/source1/setActivity 1000000. Bq</p><p>/gate/source/source1/setType backtoback</p><p>/gate/source/source1/gps/particle gamma</p><p>/gate/source/source1/gps/energytype Mono</p><p>/gate/source/source1/gps/energy 511 keV</p><p>/gate/source/source1/gps/angtype iso</p><p>/gate/source/source1/gps/type Volume</p><p>/gate/source/source1/gps/shape Sphere</p><p>/gate/source/source1/gps/radius 0.5 mm</p><p>#/gate/source/source1/gps/halfz 25 mm</p><p>/gate/source/source1/gps/centre 40. 0. 0. mm</p><p>/gate/source/source1/visualize 100 red 1</p><p> </p><p>/gate/source/addSource source4</p><p>/gate/source/source1/setActivity 1000000. Bq</p><p>/gate/source/source1/setType backtoback</p><p>/gate/source/source1/gps/particle gamma</p><p>/gate/source/source1/gps/energytype Mono</p><p>/gate/source/source1/gps/energy 511 keV</p><p>/gate/source/source1/gps/angtype iso</p><p>/gate/source/source1/gps/type Volume</p><p>/gate/source/source1/gps/shape Sphere</p><p>/gate/source/source1/gps/radius 0.5 mm</p><p>#/gate/source/source1/gps/halfz 25 mm</p><p>/gate/source/source1/gps/centre 60. 0. 0. mm</p><p>/gate/source/source1/visualize 100 red 1</p><p> </p><p>/gate/source/addSource source5</p><p>/gate/source/source1/setActivity 1000000. Bq</p><p>/gate/source/source1/setType backtoback</p><p>/gate/source/source1/gps/particle gamma</p><p>/gate/source/source1/gps/energytype Mono</p><p>/gate/source/source1/gps/energy 511 keV</p><p>/gate/source/source1/gps/angtype iso</p><p>/gate/source/source1/gps/type Volume</p><p>/gate/source/source1/gps/shape Sphere</p><p>/gate/source/source1/gps/radius 0.5 mm</p><p>#/gate/source/source1/gps/halfz 25 mm</p><p>/gate/source/source1/gps/centre 80. 0. 0. mm</p><p>/gate/source/source1/visualize 100 red 1</p><p> </p><p>/gate/source/addSource source6</p><p>/gate/source/source1/setActivity 1000000. Bq</p><p>/gate/source/source1/setType backtoback</p><p>/gate/source/source1/gps/particle gamma</p><p>/gate/source/source1/gps/energytype Mono</p><p>/gate/source/source1/gps/energy 511 keV</p><p>/gate/source/source1/gps/angtype iso</p><p>/gate/source/source1/gps/type Volume</p><p>/gate/source/source1/gps/shape Sphere</p><p>/gate/source/source1/gps/radius 0.5 mm</p><p>#/gate/source/source1/gps/halfz 25 mm</p><p>/gate/source/source1/gps/centre 100. 0. 0. mm</p><p>/gate/source/source1/visualize 100 red 1</p><p> </p><p>/gate/source/list</p><p> </p><p> </p><p> </p><p>#<span style="white-space: pre;"> </span>O U T P U T </p><p> </p><p>/gate/output/root/enable</p><p>/gate/output/root/setFileName center_DOI_2layer_20mm_1.5mm</p><p>/gate/output/root/setRootHitFlag 0</p><p>/gate/output/root/setRootSinglesFlag 0</p><p>/gate/output/root/setRootCoincidencesFlag 1</p><p>/gate/output/root/setRootdelayFlag 1</p><p> </p><p> </p><p># R A N D O M</p><p># JamesRandom Ranlux64 MersenneTwister</p><p>/gate/random/setEngineName MersenneTwister</p><p>#/gate/random/setEngineSeed default</p><p>#/gate/random/setEngineSeed auto</p><p>/gate/random/setEngineSeed 123456789</p><p>#/gate/random/resetEngineFrom fileName</p><p>/gate/random/verbose 1</p><p> </p><p>#<span style="white-space: pre;"> </span>S T A R T </p><p>/gate/application/setTimeSlice 1. s</p><p>/gate/application/setTimeStart 0. s</p><p>/gate/application/setTimeStop 180 s</p><p> </p><p>/gate/application/startDAQ</p><p> </p><p> </p><p>Thank you </p><p>Lim Wonsuk</p></div><p> </p></div></body></html><table style='display:none'><tr><td><img src="https://mail.naver.com/readReceipt/notify/?img=lseRWrFnM6dmpomsW60nKrUXFokoaxtdKrElaAI4FzKmMxJ4p6urKoi4Fqb9tzFXp6UmKAu5W4d5W4pZMLlGWq%2FsprJdpL99brkZbdIn1BFdbZlTbzk5prJdp6FTWzwCM4eZMB3GWr%2F5WXiN.gif" border="0"/></td></tr></table>