<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p><br>
</p>
<p># - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# VERBOSE and VISUALISATION<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
/control/execute mac/verbose.mac<br>
#/control/execute mac/visu.mac<br>
<br>
<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# A specific material database is created<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
/gate/geometry/setMaterialDatabase data/Materials.db<br>
<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# GEOMETRY<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# WORLD<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
/gate/world/setMaterial Air<br>
/gate/world/geometry/setXLength 5.0 m<br>
/gate/world/geometry/setYLength 5.0 m<br>
/gate/world/geometry/setZLength 5.0 m<br>
/gate/world/vis/setVisible 0<br>
<br>
<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# PATIENT/PHANTOM<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
/control/execute mac/Waterphantom_DSP95.mac<br>
<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
# Accelerator GEOMETRY<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
/control/execute mac/Linac.mac<br>
<br>
<br>
#=====================================================<br>
# OUTPUT ACTORS<br>
#=====================================================<br>
<br>
/gate/actor/addActor EnergySpectrumActor spectrum<br>
/gate/actor/spectrum/attachTo layer3<br>
/gate/actor/spectrum/addFilter particleFilter<br>
/gate/actor/spectrum/particleFilter/addParticle e-<br>
/gate/actor/spectrum/save output/WaterSpec.root<br>
/gate/actor/spectrum/energySpectrum/setEmin 0 eV<br>
/gate/actor/spectrum/energySpectrum/setEmax 6 MeV<br>
/gate/actor/spectrum/energySpectrum/setNumberOfBins 300<br>
<br>
<br>
<br>
#=====================================================<br>
# PHYSICS<br>
#=====================================================<br>
<br>
/gate/physics/addPhysicsList emlivermore<br>
/gate/physics/Gamma/SetCutInRegion world 1 mm<br>
/gate/physics/Electron/SetCutInRegion world 1 mm<br>
/gate/physics/Positron/SetCutInRegion world 1 mm<br>
/gate/physics/Gamma/SetCutInRegion patient 0.1 mm<br>
/gate/physics/Electron/SetCutInRegion patient 0.1 mm<br>
/gate/physics/Positron/SetCutInRegion patient 0.1 mm<br>
/gate/physics/Gamma/SetCutInRegion mylinac 1 mm<br>
/gate/physics/Electron/SetCutInRegion mylinac 1 mm<br>
/gate/physics/Positron/SetCutInRegion mylinac 1 mm<br>
/gate/physics/displayCuts<br>
/gate/physics/print output/physics.txt<br>
<br>
#=====================================================<br>
# INITIALISATION<br>
#=====================================================<br>
<br>
<br>
/gate/run/initialize<br>
<br>
<br>
#=====================================================<br>
# INPUT BEAM<br>
#=====================================================<br>
<br>
/gate/source/addSource MyBeam phaseSpace<br>
/gate/source/MyBeam/addPhaseSpaceFile data/IAEA.IAEAphsp<br>
/gate/source/MyBeam/attachTo outPhSp<br>
<br>
#=====================================================<br>
# START BEAMS<br>
#=====================================================<br>
<br>
/gate/random/setEngineName MersenneTwister<br>
/gate/random/setEngineSeed auto<br>
/control/execute mac/timeslices.mac<br>
/gate/application/setTotalNumberOfPrimaries 10000000<br>
/gate/application/start<br>
<br>
</p>
<br>
<div class="moz-cite-prefix">On 26/09/17 3:03 pm, Konstantinos P. Chatzipapas, MSc wrote:<br>
</div>
<blockquote cite="mid:1302425803.16350020.1506430990243@mail.yahoo.com" type="cite">
<div style="color:#000; background-color:#fff;
font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px">
<div id="yui_3_16_0_ym19_1_1506429759488_23579"><span id="yui_3_16_0_ym19_1_1506429759488_23621">If you can, please attach the mac file that you use.</span></div>
<div id="yui_3_16_0_ym19_1_1506429759488_23580"> </div>
<div class="signature" id="yui_3_16_0_ym19_1_1506429759488_23582">
<div style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;" id="yui_3_16_0_ym19_1_1506429759488_23581">
<span style="font-style:italic;" id="yui_3_16_0_ym19_1_1506429759488_23620">-----------------------------------------------------</span></div>
<span style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-style:italic;" id="yui_3_16_0_ym19_1_1506429759488_23622"> Konstantinos
Chatzipapas<br>
Medical Physicist, </span><span style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-style:italic;">MSc<br>
</span>
<div style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;" id="yui_3_16_0_ym19_1_1506429759488_23584">
<div id="yui_3_16_0_ym19_1_1506429759488_23583"><span style="font-style:italic;" id="yui_3_16_0_ym19_1_1506429759488_23624"> <span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1506429759488_23623">University of Patras</span></span></div>
<div id="yui_3_16_0_ym19_1_1506429759488_23586">
<div id="yui_3_16_0_ym19_1_1506429759488_23585"><span style="font-style:italic;"><br>
</span></div>
<div id="yui_3_16_0_ym19_1_1506429759488_23587"><span style="font-style:italic;" id="yui_3_16_0_ym19_1_1506429759488_23626"><span class="Apple-tab-span" style="white-space:pre;"></span> web page:<span class="Apple-converted-space"> </span><a moz-do-not-send="true" rel="nofollow" target="_blank" href="http://www.physicsmag.com/" id="yui_3_16_0_ym19_1_1506429759488_23625">Physics
Magazine</a></span></div>
</div>
</div>
</div>
<div class="qtdSeparateBR"><br>
<br>
</div>
<div class="yahoo_quoted" style="display: block;">
<div style="font-family: Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif; font-size: 16px;">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
16px;">
<div dir="ltr"><font face="Arial" size="2">Στις 3:57 μ.μ. Τρίτη, 26 Σεπτεμβρίου 2017, ο/η tony youness
<a class="moz-txt-link-rfc2396E" href="mailto:tony_youness@live.com"><tony_youness@live.com></a> έγραψε:<br>
</font></div>
<br>
<br>
<div class="y_msg_container">
<div id="yiv7583413538">
<div>
<div>Hi,</div>
<div>I just tried to stick with only basic commands and still getting the same error.</div>
<div><br clear="none">
</div>
<br clear="none">
<div class="yiv7583413538yqt9236282945" id="yiv7583413538yqt60377">
<div class="yiv7583413538moz-cite-prefix">On 26/09/17 2:35 pm, Konstantinos P. Chatzipapas, MSc wrote:<br clear="none">
</div>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px;">
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43835"><span>Hi,</span></div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43835"><span><br clear="none">
</span></div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43835">Have you try to only use the basic commands that are given by the guide?? Do they work??</div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43835"><br clear="none">
</div>
<h3 id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44119" style="background-image:none;margin-top:0.3em;margin-bottom:0px;overflow:hidden;padding-top:0.5em;border-bottom:none;font-size:1.2em;line-height:1.6;font-family:sans-serif;">
<span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44120">Energy spectrum</span></h3>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44121" style="margin-top:0.5em;margin-bottom:0.5em;line-height:inherit;color:rgb(37,
37,
37);font-family:sans-serif;font-size:14px;">
This actor builds four histograms: the initial kinetic energy of each track (energySpectrum), the energy deposition per event (edepHisto), the energy deposition per track (edepTrackHisto), the energy loss per track (eLossHisto). These histograms are stored
in a root file. They takes into account the weight of particles. They are three commands to define the boundaries and the binning of the energy spectrum and three commands to define the boundaries and the binning of the energy loss histograms (edepHisto, edepTrackHisto,
eLossHisto).</div>
<pre id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44122" style="font-family:monospace, Courier;background-color:rgb(249, 249, 249);border:1px solid rgb(221, 221, 221);padding:1em;line-height:1.3em;font-size:14px;">/gate/actor/addActor EnergySpectrumActor <b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44123">MyActor</b>
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44124">MyActor</b>/save MyOutputFile.root
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44125">MyActor</b>/energySpectrum/setEmin 0 eV
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44126">MyActor</b>/energySpectrum/setEmax 10 GeV
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44127">MyActor</b>/energySpectrum/setNumberOfBins 200
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44128">MyActor</b>/energyLossHisto/setEmin 0 eV
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44129">MyActor</b>/energyLossHisto/setEmax 15 MeV
/gate/actor/<b id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44130">MyActor</b>/energyLossHisto/setNumberOfBins 120</pre>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43849"><br clear="none">
</div>
<div dir="ltr" id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43849">If you haven't try them, try. Because I see that you are trying with extra commands, such as AttachTo, Filter etc.</div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43849"> </div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43849">Regards,</div>
<div class="yiv7583413538signature" id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43852">
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43851" style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">
<span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43850" style="font-style:italic;">-----------------------------------------------------</span></div>
<span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43870" style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-style:italic;"> Konstantinos
Chatzipapas<br clear="none">
Medical Physicist, </span><span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_44007" style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-style:italic;">MSc<br clear="none">
</span>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43854" style="color:rgb(0, 0,
0);font-family:Arial;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43853"><span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43869" style="font-style:italic;"> <span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43868" style="font-weight:bold;">University of
Patras</span></span></div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43858">
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43893"><span style="font-style:italic;"><br clear="none">
</span></div>
<div id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43857"><span id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43856" style="font-style:italic;"><span class="yiv7583413538Apple-tab-span" style="white-space:pre;"></span> web page:<span class="yiv7583413538Apple-converted-space"> </span><a moz-do-not-send="true" rel="nofollow" shape="rect" id="yiv7583413538yui_3_16_0_ym19_1_1506424803591_43855" target="_blank" href="http://www.physicsmag.com/">Physics
Magazine</a></span></div>
</div>
</div>
</div>
<div class="yiv7583413538qtdSeparateBR"><br clear="none">
<br clear="none">
</div>
<div class="yiv7583413538yahoo_quoted" style="display:block;">
<div style="font-family:Helvetica Neue,
Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px;">
<div style="font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida
Grande, sans-serif;font-size:16px;">
<div dir="ltr"><font face="Arial" size="2">Στις 3:23 μ.μ. Τρίτη, 26 Σεπτεμβρίου 2017, ο/η tony youness
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv7583413538moz-txt-link-rfc2396E" ymailto="mailto:tony_youness@live.com" target="_blank" href="mailto:tony_youness@live.com">
<tony_youness@live.com></a> έγραψε:<br clear="none">
</font></div>
<br clear="none">
<br clear="none">
<div class="yiv7583413538y_msg_container">
<div dir="ltr">Dear David,<br clear="none">
<br clear="none">
-Gate v7.2<br clear="none">
<br clear="none">
-Root v5.34/30<br clear="none">
<br clear="none">
Tony<br clear="none">
<br clear="none">
<br clear="none">
On 26/09/17 2:17 pm, David Boersma wrote:<br clear="none">
> Dear Tony,<br clear="none">
><br clear="none">
> For us to reproduce the error:<br clear="none">
> - Which version of GATE?<br clear="none">
> - Which version of ROOT?<br clear="none">
><br clear="none">
> DavidB<br clear="none">
><br clear="none">
> Den 26/09/2017 kl. 14:03, skrev tony youness:<br clear="none">
>> Dear Maxime,<br clear="none">
>><br clear="none">
>> Thank you for your response.<br clear="none">
>><br clear="none">
>> I just tried to increase the Emin to 1 MeV and reduced the number of<br clear="none">
>> bins to 100 (just for testing), and I still get the same error...<br clear="none">
>><br clear="none">
>> Tony<br clear="none">
>><br clear="none">
>><br clear="none">
>> On 26/09/17 1:51 pm, Maxime Chauvin wrote:<br clear="none">
>>> Dear Tony,<br clear="none">
>>><br clear="none">
>>> what I can tell is that the error seems to come from Root (TH1D).<br clear="none">
>>> I don’t know what cause the error but maybe the number of bins is <br clear="none">
>>> too high or the Emin is too small…<br clear="none">
>>><br clear="none">
>>> Maxime<br clear="none">
>>><br clear="none">
>>>> On 26 Sep 2017, at 13:17, tony youness <<a moz-do-not-send="true" rel="nofollow" shape="rect" ymailto="mailto:tony_youness@live.com" target="_blank" href="mailto:tony_youness@live.com">tony_youness@live.com</a>> wrote:<br clear="none">
>>>><br clear="none">
>>>> Dear fellow Gate users,<br clear="none">
>>>><br clear="none">
>>>> I am trying to generate the electrons energy spectrum at 10 cm in <br clear="none">
>>>> water<br clear="none">
>>>> phantom. I used the Energy spectrum actor as follow:<br clear="none">
>>>><br clear="none">
>>>> /gate/actor/addActor EnergySpectrumActor spectrum<br clear="none">
>>>> /gate/actor/spectrum/attachTo layer3<br clear="none">
>>>> /gate/actor/spectrum/addFilter particleFilter<br clear="none">
>>>> /gate/actor/spectrum/particleFilter/addParticle e-<br clear="none">
>>>> /gate/actor/spectrum/save output/WaterSpec.root<br clear="none">
>>>> /gate/actor/spectrum/energySpectrum/setEmin 0 eV<br clear="none">
>>>> /gate/actor/spectrum/energySpectrum/setEmax 6 MeV<br clear="none">
>>>> /gate/actor/spectrum/energySpectrum/setNumberOfBins 300<br clear="none">
>>>><br clear="none">
>>>> layer3 is a small water volume created in the water phantom at 10 cm.<br clear="none">
>>>> When i launch the simulation i get the following error:<br clear="none">
>>>><br clear="none">
>>>> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379<br clear="none">
>>>> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379<br clear="none">
>>>> Error in <TH2D::Rebin>: Illegal value of nxgroup=10815379<br clear="none">
>>>> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379<br clear="none">
>>>> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379<br clear="none">
>>>> WARNING: Scene "none" not found.<br clear="none">
>>>> /vis/scene/list to see scenes.<br clear="none">
>>>><br clear="none">
>>>><br clear="none">
>>>><br clear="none">
>>>> ### === G4UAtomicDeexcitation::InitialiseForNewRun()<br clear="none">
>>>> ### === PIXE model for hadrons: Empirical<br clear="none">
>>>> ### === PIXE model for e+-: Livermore<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> Error in <TH2D::Fill>: Invalid signature - do nothing<br clear="none">
>>>> ...<br clear="none">
>>>><br clear="none">
>>>> Any ideas where this problem could come from?<br clear="none">
>>>><br clear="none">
>>>> Regards,<br clear="none">
>>>><br clear="none">
>>>> Tony Younes<br clear="none">
>>>><br clear="none">
>>>> _______________________________________________<br clear="none">
>>>> Gate-users mailing list<br clear="none">
>>>> <a moz-do-not-send="true" rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">
Gate-users@lists.opengatecollaboration.org</a><br clear="none">
>>>> <a moz-do-not-send="true" rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a>
<div class="yiv7583413538yqt6255193864" id="yiv7583413538yqtfd44285"><br clear="none">
>><br clear="none">
>> _______________________________________________<br clear="none">
>> Gate-users mailing list<br clear="none">
>> <a moz-do-not-send="true" rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">
Gate-users@lists.opengatecollaboration.org</a><br clear="none">
>> <a moz-do-not-send="true" rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br clear="none">
>><br clear="none">
> _______________________________________________<br clear="none">
> Gate-users mailing list<br clear="none">
> <a moz-do-not-send="true" rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">
Gate-users@lists.opengatecollaboration.org</a><br clear="none">
> <a moz-do-not-send="true" rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br clear="none">
<br clear="none">
_______________________________________________<br clear="none">
Gate-users mailing list<br clear="none">
<a moz-do-not-send="true" rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br clear="none">
<a moz-do-not-send="true" rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
</div>
<br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="none">
</div>
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>