<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Cassandra,<div class=""><br class=""></div><div class="">Awesome! That was it indeed! Thank you for spotting it!</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Dmitry<br class="">
<div><br class=""><blockquote type="cite" class=""><div class="">On 18 Feb 2021, at 19:57, Cassandra Miller <<a href="mailto:cassandramiller@phas.ubc.ca" class="">cassandramiller@phas.ubc.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" class="">
<div class=""><p class="">Hi Dmitry, <br class="">
<br class="">
The script you posted below includes the line:</p>
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">/gate/application/noGlobalOutput
</pre><p class="">The command "noGlobalOutput" is to stop any root files from being
generated! I think if you remove that line it should work.<br class="">
<br class="">
Best,<br class="">
Cassandra<br class="">
</p>
<pre class="moz-signature" cols="72">--
Cassandra Miller
PhD Student, Physics
Quantitative Radiomolecular Imaging and Therapy Lab
Department of Physics and Astronomy, University of British Columbia</pre>
<div class="moz-cite-prefix">On 2021-02-18 10:16 a.m., Dmitry Hits
wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:61F2CF86-B958-4ACD-9ED5-3516D4963FB5@phys.ethz.ch" class="">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" class="">
<table style="border-collapse: collapse; padding-left: 0px;" class="">
<tbody class="">
<tr class="">
<td class=""><font style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; background-color: rgb(255, 236, 179); line-height: 1.6; padding: 3px;" class="">[<strong class="">CAUTION:</strong> Non-UBC Email]</font></td>
</tr>
</tbody>
</table>
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
space; line-break: after-white-space;" class="">Dear
Gate-users,
<div class=""><br class="">
</div>
<div class="">I am trying to figure out the minimum amount of
lines I need to put in the macro file in order to generate a
root file with 'hits' in it.</div>
<div class=""><br class="">
</div>
<div class="">As far a I understand from the manual the macro
I pasted below should work. I get no errors, but also no
output.</div>
<div class=""><br class="">
</div>
<div class="">Would you please let me know what I'm missing?</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class=""><br class="">
</div>
<div class="">Dmitry</div>
<div class=""><br class="">
</div>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#=====================================================
# GEOMETRY
#=====================================================
/gate/geometry/setMaterialDatabase data/GateMaterials.db
# World
/gate/world/geometry/setXLength 50 cm
/gate/world/geometry/setYLength 50 cm
/gate/world/geometry/setZLength 50 cm
/gate/world/setMaterial Air</pre>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#system
/gate/world/daughters/name scanner
/gate/world/daughters/insert box
/gate/scanner/geometry/setXLength 20 cm
/gate/scanner/geometry/setYLength 3 cm
/gate/scanner/geometry/setZLength 20 cm
/gate/scanner/placement/setTranslation 0.0 0.0 0.0 cm
/gate/scanner/setMaterial Air
/gate/scanner/vis/setVisible 1
/gate/scanner/vis/setColor cyan
#sensor
/gate/scanner/daughters/name sensor1
/gate/scanner/daughters/insert box
/gate/sensor1/geometry/setXLength 20 cm
/gate/sensor1/geometry/setYLength 1 cm
/gate/sensor1/geometry/setZLength 20 cm
/gate/sensor1/setMaterial Silicon
/gate/sensor1/placement/setTranslation 0.0 0.0 0.0 cm
/gate/sensor1/vis/setVisible 1
/gate/sensor1/vis/setColor yellow
/gate/systems/scanner/level1/attach sensor1
/gate/sensor1/attachCrystalSD</pre>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#=====================================================
# PHYSICS
#=====================================================
/gate/physics/addPhysicsList QGSP_BERT_EMV
</pre>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">/gate/physics/Gamma/SetCutInRegion world 1 mm
/gate/physics/Electron/SetCutInRegion world 1 mm
/gate/physics/Positron/SetCutInRegion world 1 mm</pre>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">/gate/physics/Gamma/SetCutInRegion scanner 0.1 mm
/gate/physics/Electron/SetCutInRegion scanner 0.1 mm
/gate/physics/Positron/SetCutInRegion scanner 0.1 mm</pre>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">/gate/physics/addProcess HadronIonisation proton
</pre>
<div class="">
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#==================================================
# OUTPUT
#==================================================
/gate/output/root/enable
/gate/output/root/setFileName TrackerHits
/gate/output/root/setRootHitFlag 1
#/gate/output/tree/addFileName TrackerHits.root
#/gate/output/tree/hits/enable
#=====================================================
# INITIALISATION
#=====================================================
/gate/run/initialize
#=====================================================
# BEAMS
#=====================================================
/gate/source/addSource PBS PencilBeam
/gate/source/PBS/setParticleType proton
/gate/source/PBS/setEnergy 250.0 MeV
/gate/source/PBS/setSigmaEnergy 1.0 MeV
/gate/source/PBS/setPosition 0 250 0 mm
/gate/source/PBS/setSigmaX 2 mm
/gate/source/PBS/setSigmaY 2 mm
/gate/source/PBS/setSigmaTheta 3 mrad
/gate/source/PBS/setSigmaPhi 3 mrad
/gate/source/PBS/setEllipseXThetaEmittance 15 mm*mrad
/gate/source/PBS/setEllipseYPhiEmittance 15 mm*mrad
/gate/source/PBS/setRotationAxis 1 0 0
/gate/source/PBS/setRotationAngle 90 deg
/gate/application/setTotalNumberOfPrimaries 100
#=====================================================
# VISUALISATION
#=====================================================
/control/execute mac/visu.mac
#=====================================================
# START BEAMS
#=====================================================
/gate/random/setEngineName MersenneTwister
/gate/random/setEngineSeed 123456
/gate/application/noGlobalOutput
#/gate/application/setTotalNumberOfPrimaries 200
/gate/application/start</pre>
<pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class=""><pre style="font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">exit</pre><div class="">
</div></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
</div>
</div></blockquote></div><br class=""></div></body></html>