[Gate-users] How to make complicate phantom
윤창연
yudoldosa at hanmail.net
Tue Feb 17 04:05:08 CET 2015
Hello. Marc.
Thank you for your kind advice.
I made phantom and detector (for detect x-ray).
Here is part of my code.
# P H A N T O M
# Create the phantom volume (Plastic)
##
/gate/world/daughters/name Phantom
/gate/world/daughters/insert cylinder
/gate/Phantom/geometry/setRmax 2 cm
/gate/Phantom/geometry/setHeight 4 cm
/gate/Phantom/placement/setTranslation 0 0 0 cm
/gate/Phantom/placement/setRotationAxis 0 1 0
/gate/Phantom/placement/setRotationAngle 90 deg
/gate/Phantom/setMaterial Plastic
/gate/Phantom/vis/setColor blue
/gate/Phantom/vis/forceWireframe
(Made outer cylinder)
#
# Create the phantom volume (Air for Ce)
#
/gate/Phantom/daughters/name Phantom_Air_1
/gate/Phantom/daughters/insert cylinder
/gate/Phantom_Air_1/geometry/setRmax 0.5 cm
/gate/Phantom_Air_1/geometry/setHeight 3.9 cm
/gate/Phantom_Air_1/placement/setTranslation 0 1.05 0 cm
/gate/Phantom_Air_1/setMaterial Air
/gate/Phantom_Air_1/vis/setColor blue
/gate/Phantom_Air_1/vis/forceWireframe
(First hole in cylinder)
#
# Create the phantom volume (Air for Gd)
#
/gate/Phantom/daughters/name Phantom_Air_2
/gate/Phantom/daughters/insert cylinder
/gate/Phantom_Air_2/geometry/setRmax 0.5 cm
/gate/Phantom_Air_2/geometry/setHeight 3.9 cm
/gate/Phantom_Air_2/placement/setTranslation -0.909327 -0.525 0 cm
/gate/Phantom_Air_2/setMaterial Air
/gate/Phantom_Air_2/vis/setColor blue
/gate/Phantom_Air_2/vis/forceWireframe
(Second hole in cylinder)
#
# Create the phantom volume (Air for W)
#
/gate/Phantom/daughters/name Phantom_Air_3
/gate/Phantom/daughters/insert cylinder
/gate/Phantom_Air_3/geometry/setRmax 0.5 cm
/gate/Phantom_Air_3/geometry/setHeight 3.9 cm
/gate/Phantom_Air_3/placement/setTranslation 0.909327 -0.525 0 cm
/gate/Phantom_Air_3/setMaterial Air
/gate/Phantom_Air_3/vis/setColor blue
/gate/Phantom_Air_3/vis/forceWireframe
(Third hole in cylinder)
#
# Create the phantom (detector) volume (Ce)
##
/gate/world/daughters/name Inner_Phantom_1
/gate/world/daughters/systemType SPECThead
/gate/world/daughters/insert cylinder
/gate/Inner_Phantom_1/geometry/setRmax 0.5 cm
/gate/Inner_Phantom_1/geometry/setHeight 3.9 cm
/gate/Inner_Phantom_1/placement/setRotationAxis 0 1 0
/gate/Inner_Phantom_1/placement/setRotationAngle 90 deg
/gate/Inner_Phantom_1/placement/setTranslation 0 1.05 0 cm
/gate/Inner_Phantom_1/setMaterial Cerium
/gate/Inner_Phantom_1/vis/setColor grey
(First detector in cylinder hole)
#
# Create the phantom crystal (detector) volume (Ce)
##
/gate/Inner_Phantom_1/daughters/name Inner_Phantom_Crystal_1
/gate/Inner_Phantom_1/daughters/insert cylinder
/gate/Inner_Phantom_Crystal_1/geometry/setRmax 0.5 cm
/gate/Inner_Phantom_Crystal_1/geometry/setHeight 3.9 cm
/gate/Inner_Phantom_Crystal_1/placement/setTranslation 0. 0. 0. cm
/gate/Inner_Phantom_Crystal_1/setMaterial Cerium
/gate/Inner_Phantom_Crystal_1/vis/setColor yellow
(First detector crystal in cylinder hole)
#
# Create the phantom (detector) volume (Gd)
##
/gate/world/daughters/name Inner_Phantom_2
/gate/world/daughters/systemType SPECThead
/gate/world/daughters/insert cylinder
/gate/Inner_Phantom_2/geometry/setRmax 0.5 cm
/gate/Inner_Phantom_2/geometry/setHeight 3.9 cm
/gate/Inner_Phantom_2/placement/setRotationAxis 0 1 0
/gate/Inner_Phantom_2/placement/setRotationAngle 90 deg
/gate/Inner_Phantom_2/placement/setTranslation 0 -0.525 0.909327 cm
/gate/Inner_Phantom_2/setMaterial Gadolinium
/gate/Inner_Phantom_2/vis/setColor grey
(Second detector in cylinder hole)
#
# Create the phantom crystal (detector) volume (Gd)
##
/gate/Inner_Phantom_2/daughters/name Inner_Phantom_Crystal_2
/gate/Inner_Phantom_2/daughters/insert cylinder
/gate/Inner_Phantom_Crystal_2/geometry/setRmax 0.5 cm
/gate/Inner_Phantom_Crystal_2/geometry/setHeight 3.9 cm
/gate/Inner_Phantom_Crystal_2/placement/setTranslation 0. 0. 0. cm
/gate/Inner_Phantom_Crystal_2/setMaterial Gadolinium
/gate/Inner_Phantom_Crystal_2/vis/setColor yellow
(Second detector crystal in cylinder hole)
#
# Create the phantom (detector) volume (W)
##
/gate/world/daughters/name Inner_Phantom_3
/gate/world/daughters/systemType SPECThead
/gate/world/daughters/insert cylinder
/gate/Inner_Phantom_3/geometry/setRmax 0.5 cm
/gate/Inner_Phantom_3/geometry/setHeight 3.9 cm
/gate/Inner_Phantom_3/placement/setRotationAxis 0 1 0
/gate/Inner_Phantom_3/placement/setRotationAngle 90 deg
/gate/Inner_Phantom_3/placement/setTranslation 0 -0.525 -0.909327 cm
/gate/Inner_Phantom_3/setMaterial Tungsten
/gate/Inner_Phantom_3/vis/setColor grey
(Third detector in cylinder hole)
#
# Create the phantom crystal (detector) volume (W)
##
/gate/Inner_Phantom_3/daughters/name Inner_Phantom_Crystal_3
/gate/Inner_Phantom_3/daughters/insert cylinder
/gate/Inner_Phantom_Crystal_3/geometry/setRmax 0.5 cm
/gate/Inner_Phantom_Crystal_3/geometry/setHeight 3.9 cm
/gate/Inner_Phantom_Crystal_3/placement/setTranslation 0. 0. 0. cm
/gate/Inner_Phantom_Crystal_3/setMaterial Tungsten
/gate/Inner_Phantom_Crystal_3/vis/setColor yellow
(Thihrd detector crystal in cylinder hole)
# 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/SPECT_CdTe/crystal/attach Crystal_CdTe
##/gate/systems/SPECT_CdTe/describe
#/gate/systems/SPECT_CsI/crystal/attach Crystal_CsI
##/gate/systems/SPECT_CsI/describe
/gate/systems/Inner_Phantom_1/crystal/attach Inner_Phantom_Crystal_1
#/gate/systems/Inner_Phantom_1/describe
/gate/systems/Inner_Phantom_2/crystal/attach Inner_Phantom_Crystal_2
#/gate/systems/Inner_Phantom_2/describe
/gate/systems/Inner_Phantom_3/crystal/attach Inner_Phantom_Crystal_3
#/gate/systems/Inner_Phantom_3/describe
(Attach crystal to detector)
# 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_CdTe/attachCrystalSD
#/gate/Crystal_CsI/attachCrystalSD
/gate/Inner_Phantom_Crystal_1/attachCrystalSD
/gate/Inner_Phantom_Crystal_2/attachCrystalSD
/gate/Inner_Phantom_Crystal_3/attachCrystalSD
(Attach crystal to detector)
# 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/Phantom/attachPhantomSD
/gate/Phantom_Air_1/attachPhantomSD
/gate/Phantom_Air_2/attachPhantomSD
/gate/Phantom_Air_3/attachPhantomSD
/gate/SPECT_CdTe/attachPhantomSD
/gate/Collimator/attachPhantomSD
/gate/SPECT_CsI/attachPhantomSD
#/gate/Inner_Phantom_1/attachPhantomSD
#/gate/Inner_Phantom_2/attachPhantomSD
#/gate/Inner_Phantom_3/attachPhantomSD
(Attach phantom to detector)
When I simulate by using this code, empty single and hit data are obtained.
What is the problem ?? Could you tell me about that ??
Thank you.
From: Marc Chamberland [mailto:MarcChamberland at cmail.carleton.ca]
Sent: Monday, February 16, 2015 11:18 PM
To: 윤창연
Cc: Gate Users
Subject: Re: [Gate-users] How to make complicate phantom
Hi,
This can all be found in the User’s Guide: http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Defining_a_geometry#Creating_a_volume
For example, create a water cylinder (or whatever material you want), then three daughter cylinders (daughters of your main phantom cylinder) made of air.
As for detectors: I don’t know what you mean. Detect what? I’m assuming you’re not doing imaging applications (PET or SPECT), so you want to measure dose? Energy spectrum? In any case, you need Actors: http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Readout_parameters_for_Radiotherapy_applications:_Actors
Cheers,
Marc
__________________________
Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)
On Feb 16, 2015, at 03:26, 윤창연 <yudoldosa at hanmail.net <mailto:yudoldosa at hanmail.net> > wrote:
Hello, Gate users.
I want to make cylinder phantom with three hole like below figure.
<image002.png>
And three detectors are placed in each hole. What can I do ??
Thank you.
_______________________________________________
Gate-users mailing list
<mailto:Gate-users at lists.opengatecollaboration.org> Gate-users at lists.opengatecollaboration.org
<http://lists.opengatecollaboration.org/mailman/listinfo/gate-users> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150217/0ff67744/attachment-0001.html>
More information about the Gate-users
mailing list