<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Mohammed,</p>
<p><br>
</p>
<p>Please keep the conversation on the mailing list.</p>
<p>The next few days I'll be very busy and won't have time to answer myself. Maybe someone else can have a look at your macro and tell if it's fine for your purpose.
<br>
</p>
<p><br>
</p>
<p>Good luck!</p>
<p>/David<br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Mohammed REZZOUG <nmedrezz@gmail.com><br>
<b>Gesendet:</b> Montag, 10. Februar 2020 10:39:25<br>
<b>An:</b> David Boersma<br>
<b>Betreff:</b> Re: [Gate-users] Dose actor</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi david<br>
thank you for your reply<br>
i want to validate a phase space source ( condition DSP= 100 cm waterbox 40*40*40 cm)
<br>
in this order, I use this cod macro.<br>
<div>--------------------------------------------------------------------------</div>
<div>
<pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC20" class="gmail-line" lang="plaintext"># WORLD</span>
<span id="gmail-LC21" class="gmail-line" lang="plaintext">/gate/world/setMaterial Air</span>
<span id="gmail-LC22" class="gmail-line" lang="plaintext">/gate/world/geometry/setXLength 3.0 m</span>
<span id="gmail-LC23" class="gmail-line" lang="plaintext">/gate/world/geometry/setYLength 3.0 m</span>
<span id="gmail-LC24" class="gmail-line" lang="plaintext">/gate/world/geometry/setZLength 3.0 m</span>
<span id="gmail-LC25" class="gmail-line" lang="plaintext">/gate/world/vis/setVisible 1</span>
<span id="gmail-LC26" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC27" class="gmail-line" lang="plaintext"># WATER BOX</span>
<span id="gmail-LC29" class="gmail-line" lang="plaintext">/gate/world/daughters/name waterbox</span>
<span id="gmail-LC30" class="gmail-line" lang="plaintext">/gate/world/daughters/insert box</span>
<span id="gmail-LC31" class="gmail-line" lang="plaintext">/gate/waterbox/setMaterial Water</span>
<span id="gmail-LC32" class="gmail-line" lang="plaintext">/gate/waterbox/placement/setTranslation 0 0 -200 mm</span>
<span id="gmail-LC33" class="gmail-line" lang="plaintext">/gate/waterbox/geometry/setXLength 400 mm</span>
<span id="gmail-LC34" class="gmail-line" lang="plaintext">/gate/waterbox/geometry/setYLength 400 mm</span>
<span id="gmail-LC35" class="gmail-line" lang="plaintext">/gate/waterbox/geometry/setZLength 400 mm</span>
<span id="gmail-LC36" class="gmail-line" lang="plaintext">/gate/waterbox/vis/setColor blue</span>
</pre>
<pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">
<pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC38" class="gmail-line" lang="plaintext"># VIRTUAL PLANE FOR PHASE SPACE</span>
<span id="gmail-LC39" class="gmail-line" lang="plaintext"># It should be the same geometry than PhS generation Here we add a</span>
<span id="gmail-LC40" class="gmail-line" lang="plaintext"># "gantry" rotation. To do that easily, we define two box, on for the</span>
<span id="gmail-LC41" class="gmail-line" lang="plaintext"># rotation (according to the isocenter=world origin), then one another</span>
<span id="gmail-LC42" class="gmail-line" lang="plaintext"># to translation the phase-space plane to the right distance</span>
<span id="gmail-LC43" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC44" class="gmail-line" lang="plaintext">/gate/world/daughters/name linacGantry</span>
<span id="gmail-LC45" class="gmail-line" lang="plaintext">/gate/world/daughters/insert box</span>
<span id="gmail-LC46" class="gmail-line" lang="plaintext">/gate/linacGantry/setMaterial Air</span>
<span id="gmail-LC47" class="gmail-line" lang="plaintext">/gate/linacGantry/geometry/setXLength 1.0 mm</span>
<span id="gmail-LC48" class="gmail-line" lang="plaintext">/gate/linacGantry/geometry/setYLength 1.0 mm</span>
<span id="gmail-LC49" class="gmail-line" lang="plaintext">/gate/linacGantry/geometry/setZLength 1.0 mm</span>
<span id="gmail-LC50" class="gmail-line" lang="plaintext">/gate/linacGantry/placement/setRotationAxis 0 1 0</span>
<span id="gmail-LC51" class="gmail-line" lang="plaintext">/gate/linacGantry/placement/setRotationAngle 0 deg</span>
<span id="gmail-LC52" class="gmail-line" lang="plaintext">/gate/linacGantry/vis/setVisible 1</span>
<span id="gmail-LC53" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC54" class="gmail-line" lang="plaintext">/gate/linacGantry/daughters/name linac</span>
<span id="gmail-LC55" class="gmail-line" lang="plaintext">/gate/linacGantry/daughters/insert box</span>
<span id="gmail-LC56" class="gmail-line" lang="plaintext">/gate/linac/setMaterial Air</span>
<span id="gmail-LC57" class="gmail-line" lang="plaintext">/gate/linac/geometry/setXLength 1.0 mm</span>
<span id="gmail-LC58" class="gmail-line" lang="plaintext">/gate/linac/geometry/setYLength 1.0 mm</span>
<span id="gmail-LC59" class="gmail-line" lang="plaintext">/gate/linac/geometry/setZLength 1.0 mm</span>
<span id="gmail-LC60" class="gmail-line" lang="plaintext">/gate/linac/placement/setTranslation 0 0 1000 mm</span>
<span id="gmail-LC61" class="gmail-line" lang="plaintext">/gate/linac/vis/setVisible 1</span>
<span id="gmail-LC62" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC63" class="gmail-line" lang="plaintext"># /gate/geometry/setMaterialDatabase data/PreciseMaterials.db</span>
<span id="gmail-LC64" class="gmail-line" lang="plaintext"># /control/execute mac/linac_head.mac</span>
<span id="gmail-LC65" class="gmail-line" lang="plaintext">/gate/linac/placement/setTranslation 0 0 1000 mm</span>
<span id="gmail-LC66" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC67" class="gmail-line" lang="plaintext">/gate/linac/daughters/name PhS_Plane</span>
<span id="gmail-LC68" class="gmail-line" lang="plaintext">/gate/linac/daughters/insert cylinder</span>
<span id="gmail-LC69" class="gmail-line" lang="plaintext">/gate/PhS_Plane/setMaterial Vacuum</span>
<span id="gmail-LC70" class="gmail-line" lang="plaintext">/gate/PhS_Plane/geometry/setRmin 0 mm</span>
<span id="gmail-LC71" class="gmail-line" lang="plaintext">/gate/PhS_Plane/geometry/setRmax 70 mm</span>
<span id="gmail-LC72" class="gmail-line" lang="plaintext">/gate/PhS_Plane/geometry/setHeight 1 nm</span>
<span id="gmail-LC73" class="gmail-line" lang="plaintext">/gate/PhS_Plane/placement/setTranslation 0.0 0.0 -297 mm</span>
<span id="gmail-LC74" class="gmail-line" lang="plaintext">/gate/PhS_Plane/vis/setColor white</span>
<span id="gmail-LC75" class="gmail-line" lang="plaintext">/gate/PhS_Plane/vis/setVisible 1</span>
<span id="gmail-LC76" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC77" class="gmail-line" lang="plaintext"># =====================================================</span>
<span id="gmail-LC78" class="gmail-line" lang="plaintext"># PHYSICS</span>
<span id="gmail-LC79" class="gmail-line" lang="plaintext"># =====================================================</span>
<span id="gmail-LC80" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC81" class="gmail-line" lang="plaintext">/gate/physics/addPhysicsList emstandard_opt1</span>
<span id="gmail-LC82" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC83" class="gmail-line" lang="plaintext">/gate/physics/Gamma/SetCutInRegion world 1 mm</span>
<span id="gmail-LC84" class="gmail-line" lang="plaintext">/gate/physics/Electron/SetCutInRegion world 1 mm</span>
<span id="gmail-LC85" class="gmail-line" lang="plaintext">/gate/physics/Positron/SetCutInRegion world 1 mm</span>
<span id="gmail-LC86" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC87" class="gmail-line" lang="plaintext">/gate/physics/Gamma/SetCutInRegion waterbox 0.5 mm</span>
<span id="gmail-LC88" class="gmail-line" lang="plaintext">/gate/physics/Electron/SetCutInRegion waterbox 0.5 mm</span>
<span id="gmail-LC89" class="gmail-line" lang="plaintext">/gate/physics/Positron/SetCutInRegion waterbox 0.5 mm</span>
<span id="gmail-LC90" class="gmail-line" lang="plaintext"></span>------------------------------------------------------------------------</pre><pre class="gmail-code gmail-highlight" lang="plaintext">
<pre style="white-space:pre-wrap;color:rgb(0,0,0)">I have to calculate the profile dose at equal depth 1.5 cm<br></pre>
<pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC72" class="gmail-line" lang="plaintext">/gate/actor/addActor DoseActor doseprofile</span>
<span id="gmail-LC73" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/save output/electron-profile.txt</span>
<span id="gmail-LC74" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/attachTo waterbox</span>
<span id="gmail-LC75" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/stepHitType random</span>
<span id="gmail-LC76" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/setPosition 0 0 18.5 cm</span>
<span id="gmail-LC77" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/setResolution 100 1 1</span>
<span id="gmail-LC78" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/setSize 40 40 40 cm</span>
<span id="gmail-LC79" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/saveEveryNSeconds 60</span>
<span id="gmail-LC80" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/enableEdep true</span>
<span id="gmail-LC81" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/enableUncertaintyEdep true</span>
<span id="gmail-LC82" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/enableDose false</span>
<span id="gmail-LC83" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/enableUncertaintyDose false</span>
<span id="gmail-LC84" class="gmail-line" lang="plaintext">/gate/actor/doseprofile/enableNumberOfHits false</span>
</pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">--</span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">This method is valid or not?(I have to calculate the profile dose at equal depth 1.5 cm)</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">--</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
<pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC118" class="gmail-line" lang="plaintext">#=====================================================</span>
<span id="gmail-LC119" class="gmail-line" lang="plaintext"># INITIALISATION</span>
<span id="gmail-LC120" class="gmail-line" lang="plaintext">#=====================================================</span>
<span id="gmail-LC121" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC122" class="gmail-line" lang="plaintext">/gate/run/initialize</span>
<span id="gmail-LC123" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC124" class="gmail-line" lang="plaintext">#=====================================================</span>
<span id="gmail-LC125" class="gmail-line" lang="plaintext"># BEAMS</span>
<span id="gmail-LC126" class="gmail-line" lang="plaintext">#=====================================================</span>
<span id="gmail-LC127" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC128" class="gmail-line" lang="plaintext"># Read from Phase Space files. Here we indicate the type of particle</span>
<span id="gmail-LC129" class="gmail-line" lang="plaintext"># (e-) because this information is not stored in the PhS to gain</span>
<span id="gmail-LC130" class="gmail-line" lang="plaintext"># space. Moreover, we set 'useRandomSymmetry' to generate more</span>
<span id="gmail-LC131" class="gmail-line" lang="plaintext"># particle than the number of particle in the PhS, using a Z axis</span>
<span id="gmail-LC132" class="gmail-line" lang="plaintext"># symmetry.</span>
<span id="gmail-LC133" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC134" class="gmail-line" lang="plaintext">/gate/source/addSource beam_g phaseSpace</span>
<span id="gmail-LC135" class="gmail-line" lang="plaintext">/gate/source/beam_g/addPhaseSpaceFile output/output-PhS-g.root</span>
<span id="gmail-LC136" class="gmail-line" lang="plaintext">/gate/source/beam_g/setParticleType e-</span>
<span id="gmail-LC137" class="gmail-line" lang="plaintext">/gate/source/beam_g/attachTo PhS_Plane</span>
<span id="gmail-LC138" class="gmail-line" lang="plaintext">/gate/source/beam_g/useRandomSymmetry true</span>
<span id="gmail-LC139" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC140" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC141" class="gmail-line" lang="plaintext">#=====================================================</span>
<span id="gmail-LC142" class="gmail-line" lang="plaintext"># START BEAMS</span>
<span id="gmail-LC143" class="gmail-line" lang="plaintext">#=====================================================</span>
<span id="gmail-LC144" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC145" class="gmail-line" lang="plaintext">/gate/random/setEngineName MersenneTwister</span>
<span id="gmail-LC146" class="gmail-line" lang="plaintext">/gate/random/setEngineSeed auto</span>
<span id="gmail-LC147" class="gmail-line" lang="plaintext">/gate/application/noGlobalOutput</span>
<span id="gmail-LC148" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC149" class="gmail-line" lang="plaintext">#/tracking/verbose 2</span>
<span id="gmail-LC150" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC151" class="gmail-line" lang="plaintext">/gate/application/setTotalNumberOfPrimaries 5000</span>
<span id="gmail-LC152" class="gmail-line" lang="plaintext">/gate/application/start</span>
</pre>
</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap">Thank you for any help</pre><pre style="white-space:pre-wrap">Mohammed.</pre><pre style="white-space:pre-wrap"><br></pre>
</pre>
</span></pre>
</pre>
</span></pre>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le lun. 10 févr. 2020 à 03:30, David Boersma <<a href="mailto:david.boersma@acmit.at">david.boersma@acmit.at</a>> a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div id="gmail-m_-7857157074595996463divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi Mohammed,</p>
<p><br>
</p>
<p>Your question is a bit short and unspecific, we need more information in order to have a chance to give you a useful answer. Can you describe what you have tried so far to configure the dose actor in your simulation, and what are the problems you encountered?
Which Gate release are you using?</p>
<p><br>
</p>
<p>The documentation of the dose actor is here:</p>
<p><a href="https://opengate.readthedocs.io/en/latest/tools_to_interact_with_the_simulation_actors.html#dose-measurement-doseactor" id="gmail-m_-7857157074595996463LPlnk166982" target="_blank">https://opengate.readthedocs.io/en/latest/tools_to_interact_with_the_simulation_actors.html#dose-measurement-doseactor</a></p>
<p><br>
</p>
<p>Examples for how to use the dose actor can be found in the GateContrib project, for instance here:</p>
<p><a href="https://github.com/OpenGATE/GateContrib/tree/master/dosimetry/dosimetry/electron_radiotherapy" id="gmail-m_-7857157074595996463LPlnk586238" target="_blank">https://github.com/OpenGATE/GateContrib/tree/master/dosimetry/dosimetry/electron_radiotherapy</a></p>
<p><br>
</p>
<p>Hope that helps,</p>
<p>David<br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-7857157074595996463divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>>
im Auftrag von Mohammed REZZOUG <<a href="mailto:nmedrezz@gmail.com" target="_blank">nmedrezz@gmail.com</a>><br>
<b>Gesendet:</b> Sonntag, 9. Februar 2020 19:53:53<br>
<b>An:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">
gate-users@lists.opengatecollaboration.org</a><br>
<b>Betreff:</b> [Gate-users] Dose actor</font>
<div> </div>
</div>
<div>
<div dir="ltr"><span lang="en"><span title="">I want to simulate the electron accelerator on Gate in order to calculate the pdd and the dose profile in a water tank, I want to know how to use the "Dose actor"</span><br>
<span title="">Thanks for any help</span><br>
</span>
<div><span lang="en"><span title="">Cordially.</span><br>
</span></div>
<div>Mohammed<br>
</div>
<div><span lang="en"></span></div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>