[Gate-users] Energy spectrum

Maxime Chauvin maxime.chauvin at inserm.fr
Tue Sep 26 13:51:27 CEST 2017


Dear Tony,

what I can tell is that the error seems to come from Root (TH1D).
I don’t know what cause the error but maybe the number of bins is too high or the Emin is too small…

  Maxime

> On 26 Sep 2017, at 13:17, tony youness <tony_youness at live.com> wrote:
> 
> Dear fellow Gate users,
> 
> I am trying to generate the electrons energy spectrum at 10 cm in water 
> phantom. I used the Energy spectrum actor as follow:
> 
> /gate/actor/addActor          EnergySpectrumActor    spectrum
> /gate/actor/spectrum/attachTo                        layer3
> /gate/actor/spectrum/addFilter particleFilter
> /gate/actor/spectrum/particleFilter/addParticle      e-
> /gate/actor/spectrum/save output/WaterSpec.root
> /gate/actor/spectrum/energySpectrum/setEmin          0 eV
> /gate/actor/spectrum/energySpectrum/setEmax          6 MeV
> /gate/actor/spectrum/energySpectrum/setNumberOfBins  300
> 
> layer3 is a small water volume created in the water phantom at 10 cm. 
> When i launch the simulation i get the following error:
> 
> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379
> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379
> Error in <TH2D::Rebin>: Illegal value of nxgroup=10815379
> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379
> Error in <TH1D::Rebin>: Illegal value of ngroup=10815379
> WARNING: Scene "none" not found.
>   /vis/scene/list to see scenes.
> 
> 
> 
> ### === G4UAtomicDeexcitation::InitialiseForNewRun()
> ### ===  PIXE model for hadrons: Empirical
> ### ===  PIXE model for e+-:     Livermore
> Error in <TH2D::Fill>: Invalid signature - do nothing
> Error in <TH2D::Fill>: Invalid signature - do nothing
> Error in <TH2D::Fill>: Invalid signature - do nothing
> Error in <TH2D::Fill>: Invalid signature - do nothing
> Error in <TH2D::Fill>: Invalid signature - do nothing
> Error in <TH2D::Fill>: Invalid signature - do nothing
> Error in <TH2D::Fill>: Invalid signature - do nothing
> ...
> 
> Any ideas where this problem could come from?
> 
> Regards,
> 
> Tony Younes
> 
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users



More information about the Gate-users mailing list