<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dear Gate Expert,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have simulated the radiotherapy of carbon ion beam to hit the mouse model,but the simulation speed is only a few particles per second,and my project needs to simulate 10E9 particles,<font color="#001000" face="Arial,"Microsoft YaHei","\5FAEÈíÑźÚ","\5B8BÌå","Malgun Gothic",Meiryo,sans-serif" style="background-color: rgb(247, 248, 250);">I
 do not know if I'm the only one that's so slow,</font>could someone help me to check my macro file? If possible ,please help me to  verify the calculation speed ,thanks in advance, the macro file is attached below</div>
<br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div><br>
</div>
<div>/control/execute mac/verbose.mac</div>
<div>#/control/execute mac/visu.mac</div>
<div><br>
</div>
<div>/gate/geometry/setMaterialDatabase /home/gate/Downloads/vgate/dosimetry/data/GateMaterials.db</div>
<div><br>
</div>
<div># World=======================</div>
<div><br>
</div>
<div>/gate/world/geometry/setXLength 2 m</div>
<div>/gate/world/geometry/setYLength 2 m</div>
<div>/gate/world/geometry/setZLength 2 m</div>
<div>/gate/world/setMaterial Vacuum</div>
<div><br>
</div>
<div># digimouse ==================</div>
<div><br>
</div>
<div>/gate/HounsfieldMaterialGenerator/SetMaterialTable                  /home/gate/Downloads/vgate/dosimetry/data/Schneider2000MaterialsTable.txt
<div>/gate/HounsfieldMaterialGenerator/SetDensityTable                   /home/gate/Downloads/vgate/dosimetry/data/Schneider2000DensitiesTable.txt</div>
<div>/gate/HounsfieldMaterialGenerator/SetDensityTolerance               0.1 g/cm3</div>
<div>/gate/HounsfieldMaterialGenerator/SetOutputMaterialDatabaseFilename /home/gate/Downloads/vgate/dosimetry/data/patient-HUmaterials.db</div>
<div>/gate/HounsfieldMaterialGenerator/SetOutputHUMaterialFilename       /home/gate/Downloads/vgate/dosimetry/data/patient-HU2mat.txt</div>
<div>/gate/HounsfieldMaterialGenerator/Generate</div>
<div><br>
</div>
<div>/gate/world/daughters/name                        pmma</div>
<div>/gate/world/daughters/insert                      ImageNestedParametrisedVolume</div>
<div>/gate/geometry/setMaterialDatabase                /home/gate/Downloads/vgate/dosimetry/data/patient-HUmaterials.db</div>
<div>/gate/pmma/geometry/setHUToMaterialFile           /home/gate/Downloads/vgate/dosimetry/data/patient-HU2mat.dat</div>
<div>/gate/pmma/geometry/setImage                      /home/gate/Downloads/vgate/dosimetry/data/ct_data/ct_380x992x208.hdr</div>
<div><br>
</div>
<div>/gate/pmma/placement/setTranslation               0 0 500 mm</div>
<div>/gate/pmma/placement/setRotationAxis              1 0 0</div>
/gate/pmma/placement/setRotationAngle             -90 deg<br>
</div>
<div><br>
</div>
<div># PHYSICS=========</div>
<div><br>
</div>
<div>/gate/physics/addPhysicsList QGSP_BERT_EMV</div>
<div><br>
</div>
<div>/gate/physics/addPhysicsList QGSP_BERT_HP</div>
<div><br>
</div>
<div>/gate/physics/Gamma/SetCutInRegion      world 0.1 mm</div>
<div>/gate/physics/Electron/SetCutInRegion   world 0.1 mm</div>
<div>/gate/physics/Positron/SetCutInRegion   world 0.1 mm</div>
<div><br>
</div>
<div>/gate/physics/Gamma/SetCutInRegion      pmma 0.1 mm</div>
<div>/gate/physics/Electron/SetCutInRegion   pmma 0.1 mm</div>
<div>/gate/physics/Positron/SetCutInRegion   pmma 0.1 mm</div>
<div><br>
</div>
<div># output===================</div>
<div><br>
</div>
<div>/gate/actor/addActor                               DoseActor  doseDistribution</div>
<div>/gate/actor/doseDistribution/save                  /home/gate/Downloads/vgate/dosimetry/output_txt/output-C100.mhd</div>
<div>/gate/actor/doseDistribution/attachTo         pmma</div>
<div>#/gate/actor/doseDistribution/setSize              38 99.2 20.8 mm</div>
<div>/gate/actor/doseDistribution/stepHitType           random</div>
<div>/gate/actor/doseDistribution/setPosition           0 0 0 cm</div>
<div>/gate/actor/doseDistribution/setResolution         380 992 208</div>
<div>/gate/actor/doseDistribution/enableEdep            true</div>
<div>/gate/actor/doseDistribution/enableDose            true</div>
<div>/gate/actor/doseDistribution/enableNumberOfHits    true</div>
<div><br>
</div>
<div>/gate/actor/addActor                               DoseActor  doseDistribution_txt</div>
<div>/gate/actor/doseDistribution_txt/save                  /home/gate/Downloads/vgate/dosimetry/output_txt/output-C100.txt</div>
<div>/gate/actor/doseDistribution_txt/attachTo         pmma</div>
<div>#/gate/actor/doseDistribution_txt/setSize               38 99.2 20.8 mm</div>
<div>/gate/actor/doseDistribution_txt/stepHitType           random</div>
<div>/gate/actor/doseDistribution_txt/setPosition           0 0 0 cm</div>
<div>/gate/actor/doseDistribution_txt/setResolution         1 992 1</div>
<div>/gate/actor/doseDistribution_txt/enableEdep            true</div>
<div>/gate/actor/doseDistribution_txt/enableDose            true</div>
<div>/gate/actor/doseDistribution_txt/enableNumberOfHits    true</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div># ProductionAndStoppingActor==================</div>
<div><br>
</div>
<div>/gate/actor/addActor                     ProductionAndStoppingActor    prdandstp_11</div>
<div>/gate/actor/prdandstp_11/save               /home/gate/Downloads/vgate/dosimetry/output_txt/product_stop11.mhd</div>
<div>/gate/actor/prdandstp_11/attachTo           pmma</div>
<div>/gate/actor/prdandstp_11/setResolution      380 992 208</div>
<div>/gate/actor/prdandstp_11/stepHitType        random</div>
<div><br>
</div>
<div>/gate/actor/addActor                     ProductionAndStoppingActor    prdandstp_10</div>
<div>/gate/actor/prdandstp_10/save               /home/gate/Downloads/vgate/dosimetry/output_txt/product_stop10.mhd</div>
<div>/gate/actor/prdandstp_10/attachTo           pmma</div>
<div>/gate/actor/prdandstp_10/setResolution      380 992 208</div>
<div>/gate/actor/prdandstp_10/stepHitType        random</div>
<div><br>
</div>
<div>/gate/actor/addActor                     ProductionAndStoppingActor    prdandstp_15</div>
<div>/gate/actor/prdandstp_15/save               /home/gate/Downloads/vgate/dosimetry/output_txt/product_stop15.mhd</div>
<div>/gate/actor/prdandstp_15/attachTo           pmma</div>
<div>/gate/actor/prdandstp_15/setResolution      380 992 208</div>
<div>/gate/actor/prdandstp_15/stepHitType        random</div>
<div><br>
</div>
<div>/gate/actor/addActor                     ProductionAndStoppingActor    prdandstp_11_txt</div>
<div>/gate/actor/prdandstp_11_txt/save               /home/gate/Downloads/vgate/dosimetry/output_txt/product_stop11.txt</div>
<div>/gate/actor/prdandstp_11_txt/attachTo           pmma</div>
<div>/gate/actor/prdandstp_11_txt/setResolution      1 992 1</div>
<div>/gate/actor/prdandstp_11_txt/stepHitType        random</div>
<div><br>
</div>
<div>/gate/actor/addActor                     ProductionAndStoppingActor    prdandstp_10_txt</div>
<div>/gate/actor/prdandstp_10_txt/save               /home/gate/Downloads/vgate/dosimetry/output_txt/product_stop10.txt</div>
<div>/gate/actor/prdandstp_10_txt/attachTo           pmma</div>
<div>/gate/actor/prdandstp_10_txt/setResolution      1 992 1</div>
<div>/gate/actor/prdandstp_10_txt/stepHitType        random</div>
<div><br>
</div>
<div>/gate/actor/addActor                     ProductionAndStoppingActor    prdandstp_15_txt</div>
<div>/gate/actor/prdandstp_15_txt/save               /home/gate/Downloads/vgate/dosimetry/output_txt/product_stop15.txt</div>
<div>/gate/actor/prdandstp_15_txt/attachTo           pmma</div>
<div>/gate/actor/prdandstp_15_txt/setResolution      1 992 1</div>
<div>/gate/actor/prdandstp_15_txt/stepHitType        random</div>
<div><br>
</div>
<div>/gate/actor/addActor               SimulationStatisticActor stat</div>
<div>/gate/actor/stat/save              /home/gate/Downloads/vgate/dosimetry/output_txt/stat-C100.txt</div>
<div>/gate/actor/stat/saveEveryNSeconds 10</div>
<div><br>
</div>
<div># filtter====================</div>
<div><br>
</div>
<div>/gate/actor/prdandstp_11/addFilter                     particleFilter</div>
<div>/gate/actor/prdandstp_11/particleFilter/addParticleZ      6</div>
<div>/gate/actor/prdandstp_11/particleFilter/addParticleA      11</div>
<div><br>
</div>
<div>/gate/actor/prdandstp_10/addFilter                     particleFilter</div>
<div>/gate/actor/prdandstp_10/particleFilter/addParticleZ      6</div>
<div>/gate/actor/prdandstp_10/particleFilter/addParticleA      10</div>
<div><br>
</div>
<div>/gate/actor/prdandstp_15/addFilter                     particleFilter</div>
<div>/gate/actor/prdandstp_15/particleFilter/addParticleZ      8</div>
<div>/gate/actor/prdandstp_15/particleFilter/addParticleA      15</div>
<div><br>
</div>
<div>/gate/actor/prdandstp_11_txt/addFilter                     particleFilter</div>
<div>/gate/actor/prdandstp_11_txt/particleFilter/addParticleZ      6</div>
<div>/gate/actor/prdandstp_11_txt/particleFilter/addParticleA      11</div>
<div><br>
</div>
<div>/gate/actor/prdandstp_10_txt/addFilter                     particleFilter</div>
<div>/gate/actor/prdandstp_10_txt/particleFilter/addParticleZ      6</div>
<div>/gate/actor/prdandstp_10_txt/particleFilter/addParticleA      10</div>
<div><br>
</div>
<div>/gate/actor/prdandstp_15_txt/addFilter                     particleFilter</div>
<div>/gate/actor/prdandstp_15_txt/particleFilter/addParticleZ      8</div>
<div>/gate/actor/prdandstp_15_txt/particleFilter/addParticleA      15</div>
<div># INITIALISATION============</div>
<div><br>
</div>
<div>/gate/run/initialize</div>
<div>#/gate/physics/processList Available</div>
<div>#/gate/physics/processList Enabled</div>
<div><br>
</div>
<div><br>
</div>
<div># BEAMS==================</div>
<div><br>
</div>
<div>/gate/source/addSource     mybeam  PencilBeam</div>
<div>/gate/source/mybeam/setParticleType GenericIon</div>
<div>/gate/source/mybeam/setIonProperties 6 12 6 0</div>
<div>/gate/source/mybeam/setEnergy 2400 MeV</div>
<div>/gate/source/mybeam/setSigmaEnergy 2 MeV</div>
<div>/gate/source/mybeam/setPosition 0 0 0 mm</div>
<div>/gate/source/mybeam/setSigmaX 2 mm</div>
<div>/gate/source/mybeam/setSigmaY 2 mm</div>
<div>/gate/source/mybeam/setSigmaTheta  0.01 mrad</div>
<div>/gate/source/mybeam/setSigmaPhi    0.01 mrad</div>
<div>/gate/source/mybeam/setEllipseXThetaEmittance 0.01 mm*mrad</div>
<div>/gate/source/mybeam/setEllipseYPhiEmittance   0.01 mm*mrad</div>
<div>#/gate/source/mybeam/setIntensity 100000000</div>
<div><br>
</div>
<div><br>
</div>
<div># JamesRandom Ranlux64 MersenneTwister</div>
<div>/gate/random/setEngineName MersenneTwister</div>
<div>/gate/random/setEngineSeed auto</div>
<div><br>
</div>
<div>/gate/application/noGlobalOutput</div>
<div>#/gate/application/readTimeSlicesIn               data/timeslice.dat</div>
<div>#/gate/application/readNumberOfPrimariesInAFile   data/primary.dat</div>
<div>/gate/application/setTotalNumberOfPrimaries 500000</div>
<span>/gate/application/start</span><br>
</div>
</body>
</html>