[Gate-users] Errors

Anes Mohammed anes.m.s.q at gmail.com
Sun Jan 2 20:37:11 CET 2022


Hellow  Gate user's
When I launched the attached mac, the error appears to me.
(
[image: image.png]
)
#==============================================================================================
# Visualization
#==============================================================================================
/vis/open                             OGLSQt
/vis/viewer/set/background black
/vis/drawVolume
/vis/viewer/flush
/vis/viewer/set/viewpointThetaPhi 60 30
/vis/viewer/zoom 10
/tracking/storeTrajectory             1
/vis/scene/add/trajectories
/vis/scene/endOfEventAction           accumulate -1
/vis/scene/add/axes
/gate/verbose Physic    0
/gate/verbose Cuts      0
/gate/verbose SD        0
/gate/verbose Actions   0
/gate/verbose Actor     0
/gate/verbose Step      0
/gate/verbose Error     1
/gate/verbose Warning   0
/gate/verbose Output    0
/gate/verbose Beam      0
/gate/verbose Volume    0
/gate/verbose Image     0
/gate/verbose Geometry  0
/gate/verbose Core      0

/run/verbose 0
/event/verbose 0
/tracking/verbose 0


#==============================================================================================
# Materials
#==============================================================================================

/gate/geometry/setMaterialDatabase    data/GateMaterials.db

#==============================================================================================
# Geometry (world)
#==============================================================================================
# G E O M E T R Y
#####

# World
# Define the world dimensions
##
/gate/world/geometry/setXLength 100 cm
/gate/world/geometry/setYLength 100 cm
/gate/world/geometry/setZLength 100 cm
/gate/world/vis/setColor red
/gate/world/vis/forceWireframe
/gate/world/describe
# Scanner Head
# Create a new box representing the main head-volume
# SPECThead is the name of the predefined SPECT system
# Create the SPECT system, which will yield an Interfile output of
projection data
##
/gate/world/daughters/name SPECThead
/gate/world/daughters/insert box
/gate/SPECThead/geometry/setXLength  7. cm
/gate/SPECThead/geometry/setYLength 21. cm
/gate/SPECThead/geometry/setZLength 30. cm
#Distance bettween SPECThead box##
/gate/SPECThead/placement/setTranslation  22.0 0. 0. cm
/gate/SPECThead/setMaterial Air

/gate/SPECThead/placement/setRotationAxis 0 0 1
/gate/SPECThead/placement/setRotationAngle 180 deg
/gate/SPECThead/vis/forceWireframe


# Shielding
# Create the shielding volume
##
/gate/SPECThead/daughters/name shielding
/gate/SPECThead/daughters/insert box
/gate/shielding/geometry/setXLength  7. cm
/gate/shielding/geometry/setYLength 21. cm
/gate/shielding/geometry/setZLength 30. cm
/gate/shielding/placement/setTranslation  0. 0. 0. cm
/gate/shielding/setMaterial Lead
/gate/shielding/vis/setColor grey
/gate/shielding/vis/forceSolid


# Collimator
# Create a full volume defining the shape of the collimator
##
/gate/SPECThead/daughters/name collimator
/gate/SPECThead/daughters/insert box
/gate/collimator/geometry/setXLength 3. cm
/gate/collimator/geometry/setYLength 19. cm
/gate/collimator/geometry/setZLength 28. cm
#the loction of collimator relative to y-axes##
/gate/collimator/placement/setTranslation  -2. 0. 0. cm
/gate/collimator/setMaterial Lead
/gate/collimator/vis/setColor red
/gate/collimator/vis/forceWireframe
/gate/collimator/describe
#
# Insert the first hole of air in the collimator
##
/gate/collimator/daughters/name hole
/gate/collimator/daughters/insert hexagone
/gate/hole/geometry/setHeight 3. cm
/gate/hole/geometry/setRadius .01 cm
/gate/hole/placement/setRotationAxis 0  0  1
/gate/hole/placement/setRotationAngle 90 deg
/gate/hole/setMaterial Air
#
# Repeat the hole in an array
##
/gate/hole/repeaters/insert cubicArray
/gate/hole/cubicArray/setRepeatNumberX 1
/gate/hole/cubicArray/setRepeatNumberY 52
/gate/hole/cubicArray/setRepeatNumberZ 44
/gate/hole/cubicArray/setRepeatVector 0. 0.36  0.624 cm
#
# Repeat these holes in a linear
##
/gate/hole/repeaters/insert linear
/gate/hole/linear/setRepeatNumber 2
/gate/hole/linear/setRepeatVector 0. 0.18 0.312 cm


# CRYSTAL
# Create the crystal volume
##
/gate/SPECThead/daughters/name crystal
/gate/SPECThead/daughters/insert box
/gate/crystal/geometry/setXLength 1. cm
/gate/crystal/geometry/setYLength  19. cm
/gate/crystal/geometry/setZLength  28. cm
/gate/crystal/placement/setTranslation  0. 0. 0. cm
/gate/crystal/setMaterial NaI
/gate/crystal/vis/setColor yellow

# BACK-COMPARTMENT
# Create the back-compartment volume
##
/gate/SPECThead/daughters/name compartment
/gate/SPECThead/daughters/insert box
/gate/compartment/geometry/setXLength 2.5 cm
/gate/compartment/geometry/setYLength 19. cm
/gate/compartment/geometry/setZLength 28. cm
/gate/compartment/placement/setTranslation   1.75 0. 0. cm
/gate/compartment/setMaterial Glass
/gate/compartment/vis/setColor grey

# TABLE
# Create the table volume
##
/gate/world/daughters/name table
/gate/world/daughters/insert box
/gate/table/geometry/setXLength 40 cm
/gate/table/geometry/setYLength 4. cm
/gate/table/geometry/setZLength 40. cm
/gate/table/placement/setRotationAxis 0 1 0
/gate/table/placement/setRotationAngle 90 deg
/gate/table/placement/setTranslation  0. -14.9 0. cm
/gate/table/setMaterial  Polystyrene
/gate/table/vis/setColor white
/gate/table/vis/forceSolid

# PHANTOM
# Create the phantom volume
##
/gate/world/daughters/name waterV
/gate/world/daughters/insert box
/gate/waterV/geometry/setXLength 30.  cm
/gate/waterV/geometry/setYLength 30. cm
/gate/waterV/geometry/setZLength 30. cm
/gate/waterV/placement/setTranslation 0. 0. 0. cm
/gate/waterV/setMaterial Water
/gate/waterV/vis/setColor blue
/gate/waterV/vis/forceWireframe
# S Y S T E M
######
# The system acts as an interpretor between the GATE geometry and data
outputs for reconstruction
# in our case, the Interfile writer
# A system must know which components of the geometry are parts of the
scanner, and what
# their role are.
# For the moment, there is only a system SPECThead, which was built when
the SPECThead volume
# was inserted.
# The SPECThead system is made of three levels: base (for the head),
crystal (for the crystal and crystal matrix)
# and pixel (for individual crystals for pixellated gamma camera)
# For now, only the base of the system is attached to a volume: the volume
SPECThead
# For the system to get information about your crystal, the level crystal
must be attached to the volume
# that has been defined for the scintillating crystal (crystal)
##

#/gate/systems/SPECThead/crystal/attach crystal
#/gate/systems/SPECThead/describe


# S E N S I T I V E   D E T E C T O R S
######
# GATE provides two sensitive detectors, which have two different functions
# Using them properly is very important for getting accurate results
##

# Crystal SD
#
# The crystal SD makes it possible to record hits in a sensitive volume
(e.g.,. in a scintillation crystal)
# It must be attached to any volume for which hit-data must be obtained
# For recording hits in the NaI volume only, the name of which is crystal,
this volume is attached
# to the crystal SD
##

#/gate/crystal/attachCrystalSD

# Phantom SD
#
# The phantom SD makes it possible to record Compton events in the volumes
within the field of view
# This can provide information for result analysis to discriminate between
# scattered and unscattered photons
# It must be attached to each and every volume for whom Compton
interactions have to be recorded
##

#/gate/waterV/attachwaterV SD
#/gate/source_Indium/attachwaterVSD
#/gate/table/attachwaterV SD
#/gate/compartment/attachwaterV SD
#/gate/shielding/attachWwaterV SD
#/gate/SPECThead/attachwaterV SD
#/gate/collimator/attachwaterV SD

#  P H Y S I C S
#####
/gate/physics/addProcess PhotoElectric
/gate/physics/processes/PhotoElectric/setModel StandardModel

/gate/physics/addProcess Compton
/gate/physics/processes/Compton/setModel PenelopeModel

/gate/physics/addProcess RayleighScattering
/gate/physics/processes/RayleighScattering/setModel PenelopeModel

/gate/physics/addProcess ElectronIonisation
/gate/physics/processes/ElectronIonisation/setModel StandardModel e-

/gate/physics/addProcess Bremsstrahlung
/gate/physics/processes/Bremsstrahlung/setModel StandardModel e-

/gate/physics/addProcess MultipleScattering e-

/gate/physics/processList Enabled
/gate/physics/processList Initialized

#  C U T S
#####
# Cuts for particle in WORLD
##
/gate/physics/displayCuts
#/gate/physics/Gamma/SetCutInRegion      SPECThead 0.1 cm
#/gate/physics/Electron/SetCutInRegion  SPECThead 1.0 cm
#==============================================================================================
# Initialisation
#==============================================================================================

/gate/run/initialize


# Indium 111
# Two peaks : 171 keV and 245 keV with weights 0.9061 and 0.9412
# In order to take into account the correct nb of particle, the
# activity is multiplied by the sum of peak intensity.
# Activity -> 1 MBq x (0.9061+0.9412) = 1.8473
/gate/source/addSource technetium gps
/gate/source/technetium/gps/particle gamma
/gate/source/technetium/gps/ang/type iso
/gate/source/technetium/gps/pos/type Volume
/gate/source/technetium/gps/pos/shape Cylinder
/gate/source/technetium/gps/pos/radius 1. cm
/gate/source/technetium/gps/pos/halfz 1. cm
/gate/source/technetium/gps/ene/type Mono
/gate/source/technetium/gps/ene/mono 140 keV
/gate/source/technetium/setActivity 1000. becquerel
/gate/source/technetium/gps/direction 0 1 0
/gate/source/technetium/visualize 1000 yellow 2
#====================================================
#DATA OUTPU
#===================================================
/gate/output/allowNoOutput


#=====================================================
# START BEAMS
#=====================================================


/gate/random/setEngineName MersenneTwister
/gate/random/setEngineSeed auto
#/gate/application/setTotalNumberOfPrimaries 100000
/gate/application/start





#==============================================================================================
# Main program
#==============================================================================================

#/gate/output/allowNoOutput

/gate/application/setTotalNumberOfPrimaries 1
/gate/application/start
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220102/470cc300/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 410452 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220102/470cc300/attachment-0001.png>


More information about the Gate-users mailing list