[Gate-users] internal dosimetry

Eng. M Pharaon pharaon_m at hotmail.com
Thu Mar 5 16:46:45 CET 2020



[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/formatpainter-5c44e4b205a95150efd25f0d565146ea.svg]
[cid:758d0c7e-a71d-4dd7-9f28-0d243059be99]
[cid:bb7fd258-7240-48d4-84b4-6ead358b8fa5]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/bold-3d0c5eac4ea3d22c35b4019e4d3cfaac.svg]
[cid:1c9829b5-823b-4abf-af9d-d7aa583c36f6]
[cid:e11840e7-27f4-4c41-83d5-0f5ad293f328]
[cid:918d7e31-f66e-40bf-a89f-5247ee35f62b]
[cid:f14006ef-0c38-43a8-a7b6-7447dcedcf22]
[cid:3d52aa3e-b4e3-449d-ad20-ed895d01c75c]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/numbering-bce46fa5f2be658a6e4f36b0f4475e36.svg]
[cid:3fa043a0-6af3-4d6f-bce4-209b26856e35]
[cid:fe55d7aa-c9c3-483b-9e02-d384dc013f5f]
[cid:adae1db6-c753-41b0-b6f4-a136600e9a3a]
[cid:3436dee0-f672-4cdf-b0e3-27ff5cb16fdb]
[cid:bf7118e0-d5b0-42d8-85d8-d60c5e0ed0f3]
[cid:98324129-5a93-457c-9031-45d6f58fedfe]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/createlink-17d7b9207a0195851fd0ce3a0c1cdf08.svg]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/unlink-0252afe04a804dc65e1d737569bb953d.svg]
[cid:d73ac2f6-f3af-4e60-b520-3eb4f65de751]
[cid:036632fe-a76f-4693-8d82-861fe9be17f8]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/strikethrough-9549f019f8e3ecfdabd7e11ac4fd7c9b.svg]
[cid:fdc95a52-f6d6-46c0-bd19-7c1fb0da3c6a]
[cid:65330f9f-5170-401c-acbf-ccf0acf389a0]
[cid:72693ce0-3fb3-4ccf-a836-977433f4e5f5]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/more-d8014709ff80244c8fea9988a8b54616.svg]
SendDiscard
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/surfaceActions/attach.svg]

[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/surfaceActions/inlineimage.svg]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/surfaceActions/emoji.svg]
[https://ow2.res.office365.com/owamail/2020022303.15/resources/images/surfaceActions/showribbon.svg]

EP



Forward

Eng. M Pharaon
Wed 3/4/2020 6:19 PM

  *   Gate Email


ATT00001.txt
483 bytes
dear gate users;
i am trying to simulate internal dosimetry in human organs using DICOM CT images and i am facing difficulties with using the correct sources and how i could located them in specific organ.
please have a look on the input file and advise .
please note that the input file i used a TPSPencilBeam because as i mention before i didn't know the correct way to locate the source in organ


#ALIAS

#Voxelized geometry
/control/alias type "complex"

## DENSITY TOLERANCE
/control/alias dt "0.01"


#================================================================

  # VISUALISATION
#/control/execute ../mac/visu.mac
#/vis/disable

#================================================================

  # MATERIALS
/gate/geometry/setMaterialDatabase    ../data/HFMaterials.db

#================================================================

# WORLD
/gate/world/setMaterial                 Air
/gate/world/geometry/setXLength         3 m
/gate/world/geometry/setYLength         3 m
/gate/world/geometry/setZLength         3 m
/gate/world/vis/setVisible              0

/control/execute ../data/MAN_phantom.mac

#================================================================

  # PHYSICS

/gate/physics/addPhysicsList QBBC_EMZ

#================================================================

  # PARAMETERS
/control/alias cut "0.1"
/control/alias step "0.1"

  #Cut
/gate/physics/Gamma/SetCutInRegion      patient 0.1 mm
/gate/physics/Electron/SetCutInRegion   patient 0.1 mm
/gate/physics/Positron/SetCutInRegion   patient 0.1 mm


  #Tracking cut
/gate/physics/SetMinRemainingRangeInRegion patient 0.1 mm
/gate/physics/ActivateSpecialCuts e-
/gate/physics/ActivateSpecialCuts proton

  #stepLimiter
/gate/physics/SetMaxStepSizeInRegion world 100 mm
/gate/physics/SetMaxStepSizeInRegion patient 0.1 mm
/gate/physics/ActivateStepLimiter proton
/gate/physics/ActivateStepLimiter deuteron
/gate/physics/ActivateStepLimiter triton
/gate/physics/ActivateStepLimiter alpha
/gate/physics/ActivateStepLimiter GenericIon

#================================================================

  # OUTPUTS

/control/execute ../data/actor.mac
/gate/actor/addActor                                              DoseActor  dose3D
/gate/actor/dose3D/attachTo                                       patient
/gate/actor/dose3D/stepHitType                                    random
/gate/actor/dose3D/setResolution                                  512 512 8
/gate/actor/dose3D/enableDose                                     true
/gate/actor/dose3D/save                                           ../output/output.mhd
/gate/actor/dose3D/inputDoseByRegions                             ../data/SYRPhantom.mhd
/gate/actor/dose3D/outputDoseByRegions                            ../output/DoseByRegions.txt
#/gate/actor/dose3D/addRegion                                      1000: 89, 90, 91
#/gate/actor/dose3D/addRegion                                      1001: 92, 93, 94

#================================================================

  # INITIALISATION

/gate/run/initialize

#================================================================

  # SOURCE

# TPSPencilBeam SOURCE

#/gate/source/addSource                          TPS     TPSPencilBeam
#/gate/source/TPS/setTestFlag                    false
#/gate/source/TPS/setFlatGenerationFlag          false
##/gate/source/TPS/setPlan                        ../data/PlanDescriptionffcenter.txt
#/gate/source/TPS/setPlan                       ../data/PlanDescriptionFilspots.txt
#/gate/source/TPS/setParticleType                proton
#/gate/source/TPS/setSpotIntensityAsNbIons       true
#/gate/source/TPS/setSourceDescriptionFile       ../data/SourceDescriptionFile.txt
#/gate/source/TPS/setBeamConvergence             true
/gate/source/addSource mybeam gps
/gate/source/mybeam/gps/particle proton
/gate/source/mybeam/gps/energy 8 MeV
/gate/source/mybeam/gps/energytype Mono
/gate/source/mybeam/gps/type Point
/gate/source/mybeam/gps/direction 0 0 1
/gate/source/mybeam/gps/pos/centre 0. 0. -0.01 cm

#================================================================

  # SEED
/gate/random/setEngineSeed 1234567890
#/gate/random/setEngineName MersenneTwister
#/gate/random/setEngineSeed auto

#================================================================

  # START BEAMS
/gate/application/setTotalNumberOfPrimaries 10000
/gate/application/start
#/geometry/test/run
------------------------------
#HU conversion & Schneider tables

/gate/HounsfieldMaterialGenerator/SetMaterialTable ../data/Schneider2000MaterialsTable.txt
/gate/HounsfieldMaterialGenerator/SetDensityTable ../data/Schneider2000DensitiesTable.txt
/gate/HounsfieldMaterialGenerator/SetDensityTolerance 0.1 g/cm3
/gate/HounsfieldMaterialGenerator/SetOutputMaterialDatabaseFilename ../data/HUmaterials-0.1.db
/gate/HounsfieldMaterialGenerator/SetOutputHUMaterialFilename ../data/HU2mat-0.1.txt
/gate/HounsfieldMaterialGenerator/Generate

#patient virtual container
/gate/world/daughters/name patient_box
/gate/world/daughters/insert box
/gate/patient_box/setMaterial G4_AIR
/gate/patient_box/geometry/setXLength 50 cm
/gate/patient_box/geometry/setYLength 50 cm
/gate/patient_box/geometry/setZLength 50 cm


/gate/patient_box/vis/setColor        yellow

# Patient geometry description
/gate/patient_box/daughters/name patient
/gate/patient_box/daughters/insert ImageNestedParametrisedVolume

/gate/patient/geometry/TranslateTheImageAtThisIsoCenter 0.0 0.0 0.0 mm

/control/alias dg "0"

/gate/patient/placement/setTranslation 0.0 0.0 0.0 cm
/gate/patient_box/placement/setRotationAxis           0 1 0
/gate/patient_box/placement/setRotationAngle          0 deg

/gate/geometry/setMaterialDatabase                  ../data/HUmaterials-0.1.db
/gate/patient/geometry/setHUToMaterialFile          ../data/HU2mat-0.1.txt
#/gate/patient/geometry/setImage                     ../data/phantom.mhd
/gate/patient/geometry/setImage                     ../data/SYRPhantom.mhd
/gate/patient/vis/setColor            red

                     Mohamad Pharaon
                           Nuclear Engineer
             Teacher Assistant at Faculty Of
        Mechanical And Electrical Engineering


                     Mohamad Pharaon
                           Nuclear Engineer
             Teacher Assistant at Faculty Of
        Mechanical And Electrical Engineering
________________________________
From: Gate-users <gate-users-bounces at lists.opengatecollaboration.org> on behalf of Eng. M Pharaon <pharaon_m at hotmail.com>
Sent: Wednesday, March 4, 2020 6:19 PM
To: Gate Email <gate-users at lists.opengatecollaboration.org>
Subject: [Gate-users] internal dosimetry

dear gate users;
i am trying to simulate internal dosimetry in human organs using DICOM CT images and i am facing difficulties with using the correct sources and how i could located them in specific organ.
please have a look on the input file and advise .
please note that the input file i used a TPSPencilBeam because as i mention before i didn't know the correct way to locate the source in organ


#ALIAS

#Voxelized geometry
/control/alias type "complex"

## DENSITY TOLERANCE
/control/alias dt "0.01"


#================================================================

  # VISUALISATION
#/control/execute ../mac/visu.mac
#/vis/disable

#================================================================

  # MATERIALS
/gate/geometry/setMaterialDatabase    ../data/HFMaterials.db

#================================================================

# WORLD
/gate/world/setMaterial                 Air
/gate/world/geometry/setXLength         3 m
/gate/world/geometry/setYLength         3 m
/gate/world/geometry/setZLength         3 m
/gate/world/vis/setVisible              0

/control/execute ../data/MAN_phantom.mac

#================================================================

  # PHYSICS

/gate/physics/addPhysicsList QBBC_EMZ

#================================================================

  # PARAMETERS
/control/alias cut "0.1"
/control/alias step "0.1"

  #Cut
/gate/physics/Gamma/SetCutInRegion      patient 0.1 mm
/gate/physics/Electron/SetCutInRegion   patient 0.1 mm
/gate/physics/Positron/SetCutInRegion   patient 0.1 mm


  #Tracking cut
/gate/physics/SetMinRemainingRangeInRegion patient 0.1 mm
/gate/physics/ActivateSpecialCuts e-
/gate/physics/ActivateSpecialCuts proton

  #stepLimiter
/gate/physics/SetMaxStepSizeInRegion world 100 mm
/gate/physics/SetMaxStepSizeInRegion patient 0.1 mm
/gate/physics/ActivateStepLimiter proton
/gate/physics/ActivateStepLimiter deuteron
/gate/physics/ActivateStepLimiter triton
/gate/physics/ActivateStepLimiter alpha
/gate/physics/ActivateStepLimiter GenericIon

#================================================================

  # OUTPUTS

/control/execute ../data/actor.mac
/gate/actor/addActor                                              DoseActor  dose3D
/gate/actor/dose3D/attachTo                                       patient
/gate/actor/dose3D/stepHitType                                    random
/gate/actor/dose3D/setResolution                                  512 512 8
/gate/actor/dose3D/enableDose                                     true
/gate/actor/dose3D/save                                           ../output/output.mhd
/gate/actor/dose3D/inputDoseByRegions                             ../data/SYRPhantom.mhd
/gate/actor/dose3D/outputDoseByRegions                            ../output/DoseByRegions.txt
#/gate/actor/dose3D/addRegion                                      1000: 89, 90, 91
#/gate/actor/dose3D/addRegion                                      1001: 92, 93, 94

#================================================================

  # INITIALISATION

/gate/run/initialize

#================================================================

  # SOURCE

# TPSPencilBeam SOURCE

#/gate/source/addSource                          TPS     TPSPencilBeam
#/gate/source/TPS/setTestFlag                    false
#/gate/source/TPS/setFlatGenerationFlag          false
##/gate/source/TPS/setPlan                        ../data/PlanDescriptionffcenter.txt
#/gate/source/TPS/setPlan                       ../data/PlanDescriptionFilspots.txt
#/gate/source/TPS/setParticleType                proton
#/gate/source/TPS/setSpotIntensityAsNbIons       true
#/gate/source/TPS/setSourceDescriptionFile       ../data/SourceDescriptionFile.txt
#/gate/source/TPS/setBeamConvergence             true
/gate/source/addSource mybeam gps
/gate/source/mybeam/gps/particle proton
/gate/source/mybeam/gps/energy 8 MeV
/gate/source/mybeam/gps/energytype Mono
/gate/source/mybeam/gps/type Point
/gate/source/mybeam/gps/direction 0 0 1
/gate/source/mybeam/gps/pos/centre 0. 0. -0.01 cm

#================================================================

  # SEED
/gate/random/setEngineSeed 1234567890
#/gate/random/setEngineName MersenneTwister
#/gate/random/setEngineSeed auto

#================================================================

  # START BEAMS
/gate/application/setTotalNumberOfPrimaries 10000
/gate/application/start
#/geometry/test/run
------------------------------
#HU conversion & Schneider tables

/gate/HounsfieldMaterialGenerator/SetMaterialTable ../data/Schneider2000MaterialsTable.txt
/gate/HounsfieldMaterialGenerator/SetDensityTable ../data/Schneider2000DensitiesTable.txt
/gate/HounsfieldMaterialGenerator/SetDensityTolerance 0.1 g/cm3
/gate/HounsfieldMaterialGenerator/SetOutputMaterialDatabaseFilename ../data/HUmaterials-0.1.db
/gate/HounsfieldMaterialGenerator/SetOutputHUMaterialFilename ../data/HU2mat-0.1.txt
/gate/HounsfieldMaterialGenerator/Generate

#patient virtual container
/gate/world/daughters/name patient_box
/gate/world/daughters/insert box
/gate/patient_box/setMaterial G4_AIR
/gate/patient_box/geometry/setXLength 50 cm
/gate/patient_box/geometry/setYLength 50 cm
/gate/patient_box/geometry/setZLength 50 cm


/gate/patient_box/vis/setColor        yellow

# Patient geometry description
/gate/patient_box/daughters/name patient
/gate/patient_box/daughters/insert ImageNestedParametrisedVolume

/gate/patient/geometry/TranslateTheImageAtThisIsoCenter 0.0 0.0 0.0 mm

/control/alias dg "0"

/gate/patient/placement/setTranslation 0.0 0.0 0.0 cm
/gate/patient_box/placement/setRotationAxis           0 1 0
/gate/patient_box/placement/setRotationAngle          0 deg

/gate/geometry/setMaterialDatabase                  ../data/HUmaterials-0.1.db
/gate/patient/geometry/setHUToMaterialFile          ../data/HU2mat-0.1.txt
#/gate/patient/geometry/setImage                     ../data/phantom.mhd
/gate/patient/geometry/setImage                     ../data/SYRPhantom.mhd
/gate/patient/vis/setColor            red

                     Mohamad Pharaon
                           Nuclear Engineer
             Teacher Assistant at Faculty Of
        Mechanical And Electrical Engineering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-blqaemca
Type: image/svg+xml
Size: 1301 bytes
Desc: Outlook-blqaemca
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0018.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1v5u3i3h
Type: image/svg+xml
Size: 1190 bytes
Desc: Outlook-1v5u3i3h
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0019.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-nfc4wazq
Type: image/svg+xml
Size: 572 bytes
Desc: Outlook-nfc4wazq
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0020.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-jqf3kwqr
Type: image/svg+xml
Size: 1595 bytes
Desc: Outlook-jqf3kwqr
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0021.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-0p54grno
Type: image/svg+xml
Size: 1814 bytes
Desc: Outlook-0p54grno
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0022.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-wxwb0a51
Type: image/svg+xml
Size: 871 bytes
Desc: Outlook-wxwb0a51
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0023.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-accqetbk
Type: image/svg+xml
Size: 1523 bytes
Desc: Outlook-accqetbk
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0024.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-aq115ghw
Type: image/svg+xml
Size: 1483 bytes
Desc: Outlook-aq115ghw
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0025.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1wpykpab
Type: image/svg+xml
Size: 1510 bytes
Desc: Outlook-1wpykpab
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0026.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-hadstizi
Type: image/svg+xml
Size: 1145 bytes
Desc: Outlook-hadstizi
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0027.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-l2lgbsmc
Type: image/svg+xml
Size: 1091 bytes
Desc: Outlook-l2lgbsmc
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0028.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-2ktnw0lt
Type: image/svg+xml
Size: 1095 bytes
Desc: Outlook-2ktnw0lt
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0029.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-iyyqerb4
Type: image/svg+xml
Size: 1093 bytes
Desc: Outlook-iyyqerb4
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0030.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-dgfbvemj
Type: image/svg+xml
Size: 1993 bytes
Desc: Outlook-dgfbvemj
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0031.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-titgvxo5
Type: image/svg+xml
Size: 1980 bytes
Desc: Outlook-titgvxo5
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0032.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-ovk3ubfi
Type: image/svg+xml
Size: 2042 bytes
Desc: Outlook-ovk3ubfi
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0033.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-etvtxm2d
Type: image/svg+xml
Size: 1482 bytes
Desc: Outlook-etvtxm2d
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0034.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-ifbphu4v
Type: image/svg+xml
Size: 1471 bytes
Desc: Outlook-ifbphu4v
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200305/1ef82dc7/attachment-0035.svg>


More information about the Gate-users mailing list