Problem 2423 - Typos in density effect parameter table for 8 materials
Summary: Typos in density effect parameter table for 8 materials
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: other
Hardware: All All
: P4 minor
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2021-09-16 00:25 CEST by Matthew Strait
Modified: 2022-01-05 16:17 CET (History)
1 user (show)

See Also:


Attachments
Patch (two lines) (916 bytes, patch)
2021-09-16 00:25 CEST, Matthew Strait
Details | Diff
Table from Sternheimer, Berger and Seltzer 1984 (149.27 KB, application/pdf)
2021-09-16 00:26 CEST, Matthew Strait
Details
Comparison before and after patch for G4_Tm (16.62 KB, application/pdf)
2021-09-16 00:26 CEST, Matthew Strait
Details
Comparison before and after patch for G4_Mg (14.84 KB, application/pdf)
2021-09-16 00:28 CEST, Matthew Strait
Details
Patch (8 lines of code, 5 lines of comments) (3.35 KB, patch)
2021-09-22 00:27 CEST, Matthew Strait
Details | Diff
Tables from Sternheimer, Berger and Seltzer 1984 (430.65 KB, application/pdf)
2021-09-22 05:04 CEST, Matthew Strait
Details
Change in delta with fix for all 8 materials (129.92 KB, application/pdf)
2021-09-22 17:21 CEST, Matthew Strait
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Matthew Strait 2021-09-16 00:25:14 CEST
Created attachment 720 [details]
Patch (two lines)

The entries in G4DensityEffectData.cc for G4_Mg and G4_Tm each have one-character typos which affect the evaluation of the Fermi density effect.  The attached patch fixes this problem.

The correct values are taken from Sternheimer, Berger and Seltzer 1984.  I have attached the page with the relevant table.

I am attaching plots showing the value of delta as a function of x = log(p/m).  The fix makes the value of delta as a function of x look sensible for thulium. The shape of delta for magnesium is improved, but still looks suspect.  I wonder if there is also a typo in the original tables.

This fix only affects the situation in which pure elemental magnesium or thulium is used.  Presumably this is a pretty rare case.  Naturally it also has no effect if SetDensityEffectCalculatorFlag() is used.
Comment 1 Matthew Strait 2021-09-16 00:26:01 CEST
Created attachment 721 [details]
Table from Sternheimer, Berger and Seltzer 1984

Shows the values of the density effect parameters.
Comment 2 Matthew Strait 2021-09-16 00:26:54 CEST
Created attachment 722 [details]
Comparison before and after patch for G4_Tm

Shows clear improvement for the value of delta as a function of x for G4_Tm.  Now there is no discontinuity at x0.
Comment 3 Matthew Strait 2021-09-16 00:28:27 CEST
Created attachment 723 [details]
Comparison before and after patch for G4_Mg

Shows the effect of the patch on delta as a function of x for G4_Mg.  As I said above, the improvement is less obvious here.  The new shape seems less wrong than the old shape, but the new shape is still not monotonic in x, as I think it has to be.  Nevertheless, this is the result of using the values as given in Sternheimer et al.
Comment 4 Matthew Strait 2021-09-22 00:27:39 CEST
Created attachment 727 [details]
Patch (8 lines of code, 5 lines of comments)

I did a thorough check through G4DensityEffectData.cc, comparing to Sternheimer's  1984 table and I found 6 other typos. The complete list of affected materials is:

G4_Mg
G4_Tm
G4_Be
G4_Fe
G4_Y
G4_BUTANE
G4_MS20_TISSUE
G4_UREA
Comment 5 Matthew Strait 2021-09-22 05:04:26 CEST
Created attachment 728 [details]
Tables from Sternheimer, Berger and Seltzer 1984

Tables from SBS 1984 paper showing all the values referenced in the patch.
Comment 6 Matthew Strait 2021-09-22 17:21:23 CEST
Created attachment 729 [details]
Change in delta with fix for all 8 materials

Plots of the difference in delta values as a function of x when this patch is applied.  Note the vertical scale.  The changes are all quite small.  The largest is for thulium.

The different shapes of the changes reflect how the typos were in different parameters for the different materials.  For instance, for MS20_TISSUE the typo was for -C, which means the asymptotic value of delta at high x is wrong.
Comment 7 Matthew Strait 2021-11-18 22:39:05 CET
Any reason not to accept this very simple patch?
Comment 8 Marc.Verderi 2021-12-13 16:04:41 CET
Dear Matthew,

Sorry, for unknown reasons the bugzilla system did not notify me of this report.

We take you report on board.

Marc
Comment 9 Vladimir.Ivantchenko 2021-12-15 17:43:10 CET
Thanks, Matthew,

This was difficult to identify if directly not working with the density effect correction. The fix will be done 1st to master and also to 10.7 for a new patch.

Vladimir
Comment 10 Vladimir.Ivantchenko 2022-01-05 16:17:41 CET
Hello, Matthew,

Thank you very much for this report.

the fix is integrated into Geant4 master. It will be backported to Geant4 11.0 and  to 10.7.

Cheers,
Vladimir