<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div> </div>

<div>Hello,</div>

<div> </div>

<div>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).</div>

<div> </div>

<div>The output works fine until I include the orbiting movement of the source</div>

<div> </div>

<div>(uncomment the following lines in the example:</div>

<div>#/gate/sourcebox/moves/insert            orbiting<br/>
#/gate/sourcebox/orbiting/setSpeed       1 deg/s<br/>
#/gate/sourcebox/orbiting/setPoint1      0 0 0 mm<br/>
#/gate/sourcebox/orbiting/setPoint2      10. 0 0 mm).</div>

<div> </div>

<div>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)</div>

<div> </div>

<div>I suspect that the actor is reset after every run. How can I avoid that?</div>

<div> </div>

<div>Regards,</div>

<div> </div>

<div>Caroline</div>

<div> </div>

<div>
<div>### VISUALISATION #########################</div>

<div>/vis/open OGLSX 1200</div>

<div>/vis/viewer/reset<br/>
#/vis/disable</div>

<div>/vis/drawVolume</div>

<div>#/vis/viewer/set/viewpointThetaPhi 40 30 deg<br/>
/vis/viewer/set/viewpointThetaPhi 90 0 deg<br/>
#/vis/viewer/zoom 1.2</div>

<div>/tracking/storeTrajectory 1<br/>
/vis/scene/add/trajectories</div>

<div>###  MATERIAL DATABASE #####################</div>

<div>/gate/geometry/setMaterialDatabase GateMaterials.db</div>

<div>### WORLD VOLUME #########################</div>

<div>/gate/world/geometry/setXLength 100.0 mm<br/>
/gate/world/geometry/setYLength 200.0 mm<br/>
/gate/world/geometry/setZLength 200.0 mm</div>

<div>/gate/world/setMaterial Air</div>

<div>### PHANTOM #############################</div>

<div>/gate/world/daughters/name chamber<br/>
/gate/world/daughters/insert cylinder</div>

<div>/gate/chamber/geometry/setRmin 0. mm<br/>
/gate/chamber/geometry/setRmax 3.1 mm<br/>
/gate/chamber/geometry/setHeight 23.1 mm<br/>
/gate/chamber/setMaterial Lead</div>

<div>/gate/chamber/vis/setColor green<br/>
/gate/chamber/vis/forceSolid</div>

<div>/gate/chamber/placement/setTranslation 0 0 0 mm<br/>
/gate/chamber/placement/setRotationAxis 0 1 0<br/>
/gate/chamber/placement/setRotationAngle 90. deg</div>

<div>/gate/chamber/attachPhantomSD</div>

<div>### VOLUME FOR ROTATION OF SOURCE ###########</div>

<div>/gate/world/daughters/name sourcebox<br/>
/gate/world/daughters/insert box</div>

<div>/gate/sourcebox/geometry/setXLength 5 mm<br/>
/gate/sourcebox/geometry/setYLength 5 mm<br/>
/gate/sourcebox/geometry/setZLength 5 mm</div>

<div>/gate/sourcebox/setMaterial Air</div>

<div>/gate/sourcebox/vis/setColor yellow<br/>
/gate/sourcebox/vis/forceWireframe</div>

<div>/gate/sourcebox/placement/setTranslation 0 0 90.0 mm</div>

<div>### ORBITING OF SOURCE ###################</div>

<div>#/gate/sourcebox/moves/insert            orbiting<br/>
#/gate/sourcebox/orbiting/setSpeed       1 deg/s<br/>
#/gate/sourcebox/orbiting/setPoint1      0 0 0 mm<br/>
#/gate/sourcebox/orbiting/setPoint2      10. 0 0 mm</div>

<div>### PHYSICS PROCESSES ####################</div>

<div>/gate/physics/addPhysicsList empenelope</div>

<div>/gate/physics/addProcess PhotoElectric<br/>
/gate/physics/processes/PhotoElectric/setModel PenelopeModel</div>

<div>/gate/physics/addProcess Compton<br/>
/gate/physics/processes/Compton/setModel PenelopeModel</div>

<div>/gate/physics/addProcess RayleighScattering<br/>
/gate/physics/processes/RayleighScattering/setModel PenelopeModel</div>

<div>/gate/physics/addProcess ElectronIonisation<br/>
/gate/physics/processes/ElectronIonisation/setModel PenelopeModel</div>

<div>/gate/physics/addProcess Bremsstrahlung<br/>
/gate/physics/processes/Bremsstrahlung/setModel PenelopeModel</div>

<div>/gate/physics/addAtomDeexcitation<br/>
/process/em/pixe false</div>

<div>/gate/physics/processes/Bremsstrahlung/activateSplitting e- 100</div>

<div>/gate/physics/processList Enabled<br/>
/gate/physics/processList Initialized</div>

<div>/gate/physics/Gamma/SetCutInRegion chamber 10 um<br/>
/gate/physics/Electron/SetCutInRegion chamber 1 um</div>

<div>### VERBOSE ############################<br/>
/gate/verbose Actor     1<br/>
/gate/verbose Core      1</div>

<div>/run/verbose 1<br/>
### SIMULATION STATISTICS #################</div>

<div>/gate/actor/addActor SimulationStatisticActor MyActor<br/>
/gate/actor/MyActor/attachTo chamber<br/>
/gate/actor/MyActor/save MyOutput.txt</div>

<div>### DOSE ACTOR ###########################</div>

<div>/gate/actor/addActor DoseActor dose3D<br/>
/gate/actor/dose3D/attachTo chamber</div>

<div>/gate/actor/dose3D/stepHitType post<br/>
/gate/actor/dose3D/setPosition 0 0 0 mm</div>

<div>/gate/actor/dose3D/setVoxelSize 0.5 0.5 0.5 mm<br/>
/gate/actor/dose3D/setSize 10.0 10.0 25.0 mm</div>

<div>/gate/actor/dose3D/saveEveryNEvents 30</div>

<div>/gate/actor/dose3D/enableEdep true</div>

<div>/gate/actor/dose3D/save Chamber.txt<br/>
#/gate/actor/dose3D/save Chamber.mhd<br/>
#/gate/actor/dose3D/save Chamber.hdr</div>

<div>### INITIALIZATION #######################</div>

<div>/gate/run/initialize</div>

<div>### SOURCE ###############################</div>

<div>/gate/source/addSource photon gps<br/>
/gate/source/photon/gps/particle gamma<br/>
/gate/source/photon/attachTo sourcebox</div>

<div>/gate/source/photon/gps/energytype Mono<br/>
/gate/source/photon/gps/energy 70. keV<br/>
/gate/source/photon/gps/type Point<br/>
/gate/source/photon/gps/ang/type iso<br/>
/gate/source/photon/gps/ang/maxtheta 0 deg</div>

<div>/gate/source/photon/gps/centre 0. 0. 0. mm</div>

<div>### RANDOM NUMBER GENERATOR ##############</div>

<div>/gate/random/setEngineName MersenneTwister<br/>
/gate/random/setEngineSeed auto</div>

<div>/gate/application/setTotalNumberOfPrimaries 1e5<br/>
### AQUISITION ###########################</div>

<div>/gate/application/setTimeSlice     1. s<br/>
/gate/application/setTimeStart     0.  s<br/>
/gate/application/setTimeStop      45. s<br/>
### START ##############################<br/>
/gate/application/startDAQ</div>

<div>exit</div>
</div>
</div></div></body></html>