<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>I just tried to stick with only basic commands and still getting the same error.</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 26/09/17 2:35 pm, Konstantinos P. Chatzipapas, MSc wrote:<br>
</div>
<blockquote cite="mid:532717736.16308144.1506429304293@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_1506424803591_43835"><span>Hi,</span></div>
<div id="yui_3_16_0_ym19_1_1506424803591_43835"><span><br>
</span></div>
<div id="yui_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="yui_3_16_0_ym19_1_1506424803591_43835"><br>
</div>
<h3 style="background-image: none; background-position: initial;
          background-size: initial; background-repeat: initial;
          background-attachment: initial; background-origin: initial;
          background-clip: initial; 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;" id="yui_3_16_0_ym19_1_1506424803591_44119">
<span id="yui_3_16_0_ym19_1_1506424803591_44120">Energy spectrum</span></h3>
<div style="margin-top: 0.5em; margin-bottom: 0.5em;
          line-height: inherit; color: rgb(37, 37, 37); font-family:
          sans-serif; font-size: 14px;" id="yui_3_16_0_ym19_1_1506424803591_44121">
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 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;" id="yui_3_16_0_ym19_1_1506424803591_44122">/gate/actor/addActor  EnergySpectrumActor  <b id="yui_3_16_0_ym19_1_1506424803591_44123">MyActor</b>
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44124">MyActor</b>/save  MyOutputFile.root
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44125">MyActor</b>/energySpectrum/setEmin 0 eV
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44126">MyActor</b>/energySpectrum/setEmax 10 GeV
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44127">MyActor</b>/energySpectrum/setNumberOfBins 200
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44128">MyActor</b>/energyLossHisto/setEmin 0 eV
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44129">MyActor</b>/energyLossHisto/setEmax 15 MeV
/gate/actor/<b id="yui_3_16_0_ym19_1_1506424803591_44130">MyActor</b>/energyLossHisto/setNumberOfBins 120</pre>
<div id="yui_3_16_0_ym19_1_1506424803591_43849"><br>
</div>
<div id="yui_3_16_0_ym19_1_1506424803591_43849" dir="ltr">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="yui_3_16_0_ym19_1_1506424803591_43849"> </div>
<div id="yui_3_16_0_ym19_1_1506424803591_43849">Regards,</div>
<div class="signature" id="yui_3_16_0_ym19_1_1506424803591_43852">
<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_1506424803591_43851">
<span style="font-style:italic;" id="yui_3_16_0_ym19_1_1506424803591_43850">-----------------------------------------------------</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_1506424803591_43870"> 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;" id="yui_3_16_0_ym19_1_1506424803591_44007">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_1506424803591_43854">
<div id="yui_3_16_0_ym19_1_1506424803591_43853"><span style="font-style:italic;" id="yui_3_16_0_ym19_1_1506424803591_43869">       <span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1506424803591_43868">University of Patras</span></span></div>
<div id="yui_3_16_0_ym19_1_1506424803591_43858">
<div id="yui_3_16_0_ym19_1_1506424803591_43893"><span style="font-style:italic;"><br>
</span></div>
<div id="yui_3_16_0_ym19_1_1506424803591_43857"><span style="font-style:italic;" id="yui_3_16_0_ym19_1_1506424803591_43856"><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_1506424803591_43855">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:23 μ.μ. Τρίτη, 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 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" shape="rect" ymailto="mailto:tony_youness@live.com" 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" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" href="mailto:Gate-users@lists.opengatecollaboration.org">
Gate-users@lists.opengatecollaboration.org</a><br clear="none">
>>>> <a moz-do-not-send="true" shape="rect" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a>
<div class="yqt6255193864" id="yqtfd44285"><br clear="none">
>><br clear="none">
>> _______________________________________________<br clear="none">
>> Gate-users mailing list<br clear="none">
>> <a moz-do-not-send="true" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" href="mailto:Gate-users@lists.opengatecollaboration.org">
Gate-users@lists.opengatecollaboration.org</a><br clear="none">
>> <a moz-do-not-send="true" shape="rect" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">
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" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" href="mailto:Gate-users@lists.opengatecollaboration.org">
Gate-users@lists.opengatecollaboration.org</a><br clear="none">
> <a moz-do-not-send="true" shape="rect" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">
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" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br clear="none">
<a moz-do-not-send="true" shape="rect" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>