[Gate-users] DoseActor output empty for orbiting source

Line.Campbell at gmx.de Line.Campbell at gmx.de
Wed Aug 8 13:16:53 CEST 2018


I have forgotten to set my email format to text mail so I am sending this again:
 
Hello,
 
I am having a problem with the output of the DoseActor (I have included an example of this below, in which a source orbits around a cylindrical phantom).
 
The output works fine until I include the orbiting movement of the source
 
(uncomment the following lines in the example:
#/gate/sourcebox/moves/insert            orbiting
#/gate/sourcebox/orbiting/setSpeed       1 deg/s
#/gate/sourcebox/orbiting/setPoint1      0 0 0 mm
#/gate/sourcebox/orbiting/setPoint2      10. 0 0 mm).
 
This leads to all matrices in the output file being zero matrices. (The number of steps in the output of the SimulationStatisticsActor are also 0)
 
I suspect that the actor is reset after every run. How can I avoid that?
 
Regards,
 
Caroline
 

### VISUALISATION #########################
/vis/open OGLSX 1200
/vis/viewer/reset
#/vis/disable
/vis/drawVolume
#/vis/viewer/set/viewpointThetaPhi 40 30 deg
/vis/viewer/set/viewpointThetaPhi 90 0 deg
#/vis/viewer/zoom 1.2
/tracking/storeTrajectory 1
/vis/scene/add/trajectories
###  MATERIAL DATABASE #####################
/gate/geometry/setMaterialDatabase GateMaterials.db
### WORLD VOLUME #########################
/gate/world/geometry/setXLength 100.0 mm
/gate/world/geometry/setYLength 200.0 mm
/gate/world/geometry/setZLength 200.0 mm
/gate/world/setMaterial Air
### PHANTOM #############################
/gate/world/daughters/name chamber
/gate/world/daughters/insert cylinder
/gate/chamber/geometry/setRmin 0. mm
/gate/chamber/geometry/setRmax 3.1 mm
/gate/chamber/geometry/setHeight 23.1 mm
/gate/chamber/setMaterial Lead
/gate/chamber/vis/setColor green
/gate/chamber/vis/forceSolid
/gate/chamber/placement/setTranslation 0 0 0 mm
/gate/chamber/placement/setRotationAxis 0 1 0
/gate/chamber/placement/setRotationAngle 90. deg
/gate/chamber/attachPhantomSD
### VOLUME FOR ROTATION OF SOURCE ###########
/gate/world/daughters/name sourcebox
/gate/world/daughters/insert box
/gate/sourcebox/geometry/setXLength 5 mm
/gate/sourcebox/geometry/setYLength 5 mm
/gate/sourcebox/geometry/setZLength 5 mm
/gate/sourcebox/setMaterial Air
/gate/sourcebox/vis/setColor yellow
/gate/sourcebox/vis/forceWireframe
/gate/sourcebox/placement/setTranslation 0 0 90.0 mm
### ORBITING OF SOURCE ###################
#/gate/sourcebox/moves/insert            orbiting
#/gate/sourcebox/orbiting/setSpeed       1 deg/s
#/gate/sourcebox/orbiting/setPoint1      0 0 0 mm
#/gate/sourcebox/orbiting/setPoint2      10. 0 0 mm
### PHYSICS PROCESSES ####################
/gate/physics/addPhysicsList empenelope
/gate/physics/addProcess PhotoElectric
/gate/physics/processes/PhotoElectric/setModel PenelopeModel
/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 PenelopeModel
/gate/physics/addProcess Bremsstrahlung
/gate/physics/processes/Bremsstrahlung/setModel PenelopeModel
/gate/physics/addAtomDeexcitation
/process/em/pixe false
/gate/physics/processes/Bremsstrahlung/activateSplitting e- 100
/gate/physics/processList Enabled
/gate/physics/processList Initialized
/gate/physics/Gamma/SetCutInRegion chamber 10 um
/gate/physics/Electron/SetCutInRegion chamber 1 um
### VERBOSE ############################
/gate/verbose Actor     1
/gate/verbose Core      1
/run/verbose 1
### SIMULATION STATISTICS #################
/gate/actor/addActor SimulationStatisticActor MyActor
/gate/actor/MyActor/attachTo chamber
/gate/actor/MyActor/save MyOutput.txt
### DOSE ACTOR ###########################
/gate/actor/addActor DoseActor dose3D
/gate/actor/dose3D/attachTo chamber
/gate/actor/dose3D/stepHitType post
/gate/actor/dose3D/setPosition 0 0 0 mm
/gate/actor/dose3D/setVoxelSize 0.5 0.5 0.5 mm
/gate/actor/dose3D/setSize 10.0 10.0 25.0 mm
/gate/actor/dose3D/saveEveryNEvents 30
/gate/actor/dose3D/enableEdep true
/gate/actor/dose3D/save Chamber.txt
#/gate/actor/dose3D/save Chamber.mhd
#/gate/actor/dose3D/save Chamber.hdr
### INITIALIZATION #######################
/gate/run/initialize
### SOURCE ###############################
/gate/source/addSource photon gps
/gate/source/photon/gps/particle gamma
/gate/source/photon/attachTo sourcebox
/gate/source/photon/gps/energytype Mono
/gate/source/photon/gps/energy 70. keV
/gate/source/photon/gps/type Point
/gate/source/photon/gps/ang/type iso
/gate/source/photon/gps/ang/maxtheta 0 deg
/gate/source/photon/gps/centre 0. 0. 0. mm
### RANDOM NUMBER GENERATOR ##############
/gate/random/setEngineName MersenneTwister
/gate/random/setEngineSeed auto
/gate/application/setTotalNumberOfPrimaries 1e5
### AQUISITION ###########################
/gate/application/setTimeSlice     1. s
/gate/application/setTimeStart     0.  s
/gate/application/setTimeStop      45. s
### START ##############################
/gate/application/startDAQ
exit


More information about the Gate-users mailing list