# Electron energy spectrum in "rdecay01" example might be incorrect

**URL:** <https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605>\
**Category:** Getting Started\
**Created:** [January 18, 2024, 9:43am UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605 "2024-01-18T09:43:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhang\_Xinyu](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhang_xinyu/32/7899_2.png) [@Zhang\_Xinyu](https://geant4-forum.web.cern.ch/u/Zhang_Xinyu)\
**Post date:** [January 18, 2024, 9:43am UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/1 "2024-01-18T09:43:43Z")

</div>

_Geant4 Version:_ 11.2.0  
_Operating System:_ Windows 11 23H2 & Rocky Linux 9.3  
_Compiler/Version:_ Visual Studio 2022 17.8.4 (Windows) & GNU Make 4.3 (Linux)  
_CMake Version:_ 3.28.1 (Windows) & 3.20.2 (Linux)

* * *

The maximum electron energy of beta decay of Co-60 with the maximum branch ratio is 160 keV in both Windows and Linux, and the correct energy should be about 317 keV. I’m sorry that as a new user I can’t post more than one picture. I will upload my pictures below.

I’m cautiously guessing that this is an issue with the new version of Geant4 and not my personal problem, as I have produced this issue both on Windows and with G4VM ([https://geant4.lp2ib.in2p3.fr/](https://geant4.lp2ib.in2p3.fr/)), And I have never seen this problem on older versions.

Could anyone please take the time to try to reproduce this issue?

---

<div class="post-metadata">

**Author:** ![Zhang\_Xinyu](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhang_xinyu/32/7899_2.png) [@Zhang\_Xinyu](https://geant4-forum.web.cern.ch/u/Zhang_Xinyu)\
**Post date:** [January 18, 2024, 9:45am UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/2 "2024-01-18T09:45:16Z")

</div>

This is the electron energy spectrum of Co60 in the “rdecay01” example in Windows:

 ![Co60Windows](https://geant4-forum.web.cern.ch/uploads/default/original/2X/2/21dc2c4560d19dbdd83599fe05b88c987b4a7a77.png)

---

<div class="post-metadata">

**Author:** ![Zhang\_Xinyu](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhang_xinyu/32/7899_2.png) [@Zhang\_Xinyu](https://geant4-forum.web.cern.ch/u/Zhang_Xinyu)\
**Post date:** [January 18, 2024, 9:46am UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/3 "2024-01-18T09:46:01Z")

</div>

This is the electron energy spectrum of Co60 in the “rdecay01” example in Linux:

 ![屏幕截图 2024-01-18 153031](https://geant4-forum.web.cern.ch/uploads/default/original/2X/6/69da645ddf3a4539a49d904ecd34b621efa1adcd.png)

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [January 18, 2024, 6:49pm UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/4 "2024-01-18T18:49:32Z")

</div>

I agree with you.  
Please, could you open a bug report ?  
Thanks, Michel

---

<div class="post-metadata">

**Author:** ![Zhang\_Xinyu](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhang_xinyu/32/7899_2.png) [@Zhang\_Xinyu](https://geant4-forum.web.cern.ch/u/Zhang_Xinyu)\
**Post date:** [January 19, 2024, 5:17am UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/5 "2024-01-19T05:17:39Z")

</div>

Hello Michel!

I suspect this problem may not exist only with rdecay01, but with G4RadioactiveDecay. I first discovered this problem in an example I wrote myself, and the reason why I use rdecay01 example in this post is just to make it easier for everyone to reproduce.

So please give me some advice on which category I should choose when opening a bug report, Examples/Extended/radioactivedecay/rdecay01 or Geant4/processes/hadronic/models/radioactive\_decay?

Thanks!

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [January 19, 2024, 10:22am UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/6 "2024-01-19T10:22:25Z")

</div>

It cannot be rdecay01, which was unchanged …  
It is a problem of model/radioactivedecay.

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [January 19, 2024, 1:26pm UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/7 "2024-01-19T13:26:51Z")

</div>

I have only Geant4 11.2 installed on my machine.  
It would be interesting to compare these 3 histograms, in log scale, between G4 11.1 and 11.2

[Cobalt.mac.txt](https://geant4-forum.web.cern.ch/uploads/short-url/y3wdmo2px7t8ImjCczBHmbzXXTJ.txt) (467 Bytes)

 ![Cobalt](https://geant4-forum.web.cern.ch/uploads/default/original/2X/a/a41862ed031544fb205502be8754adc3f3125da8.gif)

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [January 20, 2024, 3:21pm UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/8 "2024-01-20T15:21:09Z")

</div>

In subdirectory rdecay01/references/9.1 we have kept few reference results (from Geant4 9.6).  
Here, the decay of Carbon 14

 ![Carbon14](https://geant4-forum.web.cern.ch/uploads/default/original/2X/f/f36b49d0182d703091863879ede7a27ce1beacc8.gif)

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [February 18, 2024, 1:56pm UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/9 "2024-02-18T13:56:11Z")

</div>

the problem is fixed in 11.2 patch 1

---

<div class="post-metadata">

**Author:** ![system](https://geant4-forum.web.cern.ch/uploads/default/original/1X/ce519a43ebdf7ac48a98a03c6ad6eea013b68c46.png) [@system](https://geant4-forum.web.cern.ch/u/system)\
**Post date:** [February 20, 2024, 1:56pm UTC](https://geant4-forum.web.cern.ch/t/electron-energy-spectrum-in-rdecay01-example-might-be-incorrect/11605/10 "2024-02-20T13:56:56Z")

</div>

Closed on February 20, 2024, 1:56pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
