<div dir="ltr">Hellow  Gate user's <div>When I launched  the attached mac, the error appears to me.</div><div>(</div><img src="cid:ii_kxxnkusa0" alt="image.png" width="180" height="134" style="margin-right: 0px;"><br><div>)</div>#==============================================================================================<br># Visualization<br>#==============================================================================================<br>/vis/open                             OGLSQt<br>/vis/viewer/set/background black<br>/vis/drawVolume<br>/vis/viewer/flush<br>/vis/viewer/set/viewpointThetaPhi 60 30<br>/vis/viewer/zoom 10<br>/tracking/storeTrajectory             1<br>/vis/scene/add/trajectories <br>/vis/scene/endOfEventAction           accumulate -1<br>/vis/scene/add/axes<br>/gate/verbose Physic    0<br>/gate/verbose Cuts      0<br>/gate/verbose SD        0<br>/gate/verbose Actions   0<br>/gate/verbose Actor     0<br>/gate/verbose Step      0<br>/gate/verbose Error     1<br>/gate/verbose Warning   0<br>/gate/verbose Output    0<br>/gate/verbose Beam      0<br>/gate/verbose Volume    0<br>/gate/verbose Image     0<br>/gate/verbose Geometry  0<br>/gate/verbose Core      0<br><br>/run/verbose 0<br>/event/verbose 0<br>/tracking/verbose 0     <br><br><br>#==============================================================================================<br># Materials<br>#==============================================================================================<br><br>/gate/geometry/setMaterialDatabase    data/GateMaterials.db<br><br>#==============================================================================================<br># Geometry (world)<br>#==============================================================================================<br># G E O M E T R Y<br>#####<br><br># World<br># Define the world dimensions<br>##<br>/gate/world/geometry/setXLength 100 cm<br>/gate/world/geometry/setYLength 100 cm<br>/gate/world/geometry/setZLength 100 cm<br>/gate/world/vis/setColor red<br>/gate/world/vis/forceWireframe<br>/gate/world/describe<br># Scanner Head<br># Create a new box representing the main head-volume<br># SPECThead is the name of the predefined SPECT system<br># Create the SPECT system, which will yield an Interfile output of projection data<br>##<br>/gate/world/daughters/name SPECThead<br>/gate/world/daughters/insert box<br>/gate/SPECThead/geometry/setXLength  7. cm<br>/gate/SPECThead/geometry/setYLength 21. cm<br>/gate/SPECThead/geometry/setZLength 30. cm<br>#Distance bettween SPECThead box##<br>/gate/SPECThead/placement/setTranslation  22.0 0. 0. cm<br>/gate/SPECThead/setMaterial Air<br><br>/gate/SPECThead/placement/setRotationAxis 0 0 1<br>/gate/SPECThead/placement/setRotationAngle 180 deg<br>/gate/SPECThead/vis/forceWireframe<br><br><br># Shielding<br># Create the shielding volume<br>##<br>/gate/SPECThead/daughters/name shielding<br>/gate/SPECThead/daughters/insert box<br>/gate/shielding/geometry/setXLength  7. cm<br>/gate/shielding/geometry/setYLength 21. cm<br>/gate/shielding/geometry/setZLength 30. cm<br>/gate/shielding/placement/setTranslation  0. 0. 0. cm<br>/gate/shielding/setMaterial Lead<br>/gate/shielding/vis/setColor grey<br>/gate/shielding/vis/forceSolid<br><br><br># Collimator<br># Create a full volume defining the shape of the collimator<br>##<br>/gate/SPECThead/daughters/name collimator<br>/gate/SPECThead/daughters/insert box<br>/gate/collimator/geometry/setXLength 3. cm<br>/gate/collimator/geometry/setYLength 19. cm<br>/gate/collimator/geometry/setZLength 28. cm<br>#the loction of collimator relative to y-axes##<br>/gate/collimator/placement/setTranslation  -2. 0. 0. cm<br>/gate/collimator/setMaterial Lead<br>/gate/collimator/vis/setColor red<br>/gate/collimator/vis/forceWireframe<br>/gate/collimator/describe <br>#<br># Insert the first hole of air in the collimator<br>##<br>/gate/collimator/daughters/name hole <br>/gate/collimator/daughters/insert hexagone<br>/gate/hole/geometry/setHeight 3. cm<br>/gate/hole/geometry/setRadius .01 cm<br>/gate/hole/placement/setRotationAxis 0  0  1<br>/gate/hole/placement/setRotationAngle 90 deg<br>/gate/hole/setMaterial Air<br>#<br># Repeat the hole in an array<br>##<br>/gate/hole/repeaters/insert cubicArray<br>/gate/hole/cubicArray/setRepeatNumberX 1<br>/gate/hole/cubicArray/setRepeatNumberY 52<br>/gate/hole/cubicArray/setRepeatNumberZ 44<br>/gate/hole/cubicArray/setRepeatVector 0. 0.36  0.624 cm<br>#<br># Repeat these holes in a linear<br>##<br>/gate/hole/repeaters/insert linear<br>/gate/hole/linear/setRepeatNumber 2<br>/gate/hole/linear/setRepeatVector 0. 0.18 0.312 cm<br><br><br># CRYSTAL<br># Create the crystal volume<br>##<br>/gate/SPECThead/daughters/name crystal<br>/gate/SPECThead/daughters/insert box<br>/gate/crystal/geometry/setXLength 1. cm<br>/gate/crystal/geometry/setYLength  19. cm<br>/gate/crystal/geometry/setZLength  28. cm<br>/gate/crystal/placement/setTranslation  0. 0. 0. cm<br>/gate/crystal/setMaterial NaI<br>/gate/crystal/vis/setColor yellow<br><br># BACK-COMPARTMENT<br># Create the back-compartment volume<br>##<br>/gate/SPECThead/daughters/name compartment<br>/gate/SPECThead/daughters/insert box<br>/gate/compartment/geometry/setXLength 2.5 cm<br>/gate/compartment/geometry/setYLength 19. cm<br>/gate/compartment/geometry/setZLength 28. cm<br>/gate/compartment/placement/setTranslation   1.75 0. 0. cm<br>/gate/compartment/setMaterial Glass<br>/gate/compartment/vis/setColor grey<br><br># TABLE<br># Create the table volume<br>##<br>/gate/world/daughters/name table<br>/gate/world/daughters/insert box<br>/gate/table/geometry/setXLength 40 cm<br>/gate/table/geometry/setYLength 4. cm<br>/gate/table/geometry/setZLength 40. cm<br>/gate/table/placement/setRotationAxis 0 1 0<br>/gate/table/placement/setRotationAngle 90 deg<br>/gate/table/placement/setTranslation  0. -14.9 0. cm<br>/gate/table/setMaterial  Polystyrene <br>/gate/table/vis/setColor white<br>/gate/table/vis/forceSolid<br><br># PHANTOM<br># Create the phantom volume<br>##<br>/gate/world/daughters/name waterV<br>/gate/world/daughters/insert box<br>/gate/waterV/geometry/setXLength 30.  cm<br>/gate/waterV/geometry/setYLength 30. cm<br>/gate/waterV/geometry/setZLength 30. cm<br>/gate/waterV/placement/setTranslation 0. 0. 0. cm<br>/gate/waterV/setMaterial Water<br>/gate/waterV/vis/setColor blue<br>/gate/waterV/vis/forceWireframe<br># S Y S T E M<br>######<br># The system acts as an interpretor between the GATE geometry and data outputs for reconstruction <br># in our case, the Interfile writer<br># A system must know which components of the geometry are parts of the scanner, and what <br># their role are.<br># For the moment, there is only a system SPECThead, which was built when the SPECThead volume<br># was inserted. <br># The SPECThead system is made of three levels: base (for the head), crystal (for the crystal and crystal matrix) <br># and pixel (for individual crystals for pixellated gamma camera)<br># For now, only the base of the system is attached to a volume: the volume SPECThead<br># For the system to get information about your crystal, the level crystal must be attached to the volume <br># that has been defined for the scintillating crystal (crystal)<br>##<br><br>#/gate/systems/SPECThead/crystal/attach crystal<br>#/gate/systems/SPECThead/describe<br><br><br># S E N S I T I V E   D E T E C T O R S<br>######<br># GATE provides two sensitive detectors, which have two different functions<br># Using them properly is very important for getting accurate results<br>##<br><br># Crystal SD<br>#<br># The crystal SD makes it possible to record hits in a sensitive volume (e.g.,. in a scintillation crystal)<br># It must be attached to any volume for which hit-data must be obtained<br># For recording hits in the NaI volume only, the name of which is crystal, this volume is attached <br># to the crystal SD<br>##<br><br>#/gate/crystal/attachCrystalSD<br><br># Phantom SD<br>#<br># The phantom SD makes it possible to record Compton events in the volumes within the field of view<br># This can provide information for result analysis to discriminate between <br># scattered and unscattered photons<br># It must be attached to each and every volume for whom Compton interactions have to be recorded<br>##<br><br>#/gate/waterV/attachwaterV SD<br>#/gate/source_Indium/attachwaterVSD<br>#/gate/table/attachwaterV SD<br>#/gate/compartment/attachwaterV SD<br>#/gate/shielding/attachWwaterV SD<br>#/gate/SPECThead/attachwaterV SD<br>#/gate/collimator/attachwaterV SD<br><br>#  P H Y S I C S<br>#####<br>/gate/physics/addProcess PhotoElectric<br>/gate/physics/processes/PhotoElectric/setModel StandardModel<br><br>/gate/physics/addProcess Compton<br>/gate/physics/processes/Compton/setModel PenelopeModel<br><br>/gate/physics/addProcess RayleighScattering<br>/gate/physics/processes/RayleighScattering/setModel PenelopeModel<br><br>/gate/physics/addProcess ElectronIonisation<br>/gate/physics/processes/ElectronIonisation/setModel StandardModel e-<br><br>/gate/physics/addProcess Bremsstrahlung<br>/gate/physics/processes/Bremsstrahlung/setModel StandardModel e-<br><br>/gate/physics/addProcess MultipleScattering e-<br><br>/gate/physics/processList Enabled<br>/gate/physics/processList Initialized<br><br>#  C U T S<br>#####<br># Cuts for particle in WORLD<br>##<br>/gate/physics/displayCuts<br>#/gate/physics/Gamma/SetCutInRegion      SPECThead 0.1 cm<br>#/gate/physics/Electron/SetCutInRegion  SPECThead 1.0 cm<br>#==============================================================================================<br># Initialisation<br>#==============================================================================================<br><br>/gate/run/initialize <br><br><br># Indium 111<br># Two peaks : 171 keV and 245 keV with weights 0.9061 and 0.9412<br># In order to take into account the correct nb of particle, the<br># activity is multiplied by the sum of peak intensity.<br># Activity -> 1 MBq x (0.9061+0.9412) = 1.8473<br>/gate/source/addSource technetium gps<br>/gate/source/technetium/gps/particle gamma<br>/gate/source/technetium/gps/ang/type iso<br>/gate/source/technetium/gps/pos/type Volume<br>/gate/source/technetium/gps/pos/shape Cylinder<br>/gate/source/technetium/gps/pos/radius 1. cm<br>/gate/source/technetium/gps/pos/halfz 1. cm<br>/gate/source/technetium/gps/ene/type Mono<br>/gate/source/technetium/gps/ene/mono 140 keV<br>/gate/source/technetium/setActivity 1000. becquerel<br>/gate/source/technetium/gps/direction 0 1 0<br>/gate/source/technetium/visualize 1000 yellow 2<br>#====================================================<br>#DATA OUTPU<br>#===================================================<br>/gate/output/allowNoOutput<br><br><br>#=====================================================<br># START BEAMS<br>#=====================================================<br><br><br>/gate/random/setEngineName MersenneTwister<br>/gate/random/setEngineSeed auto<br>#/gate/application/setTotalNumberOfPrimaries 100000<br>/gate/application/start<br><br><br><br><br><br>#==============================================================================================<br># Main program<br>#==============================================================================================<br><br>#/gate/output/allowNoOutput<br><br>/gate/application/setTotalNumberOfPrimaries 1<br>/gate/application/start<br><div> </div></div>