Add option to force the use of the old ICRU parameters.

This commit is contained in:
2023-01-04 11:46:40 +01:00
parent 632ccf3867
commit 163935e2ba
2 changed files with 14 additions and 3 deletions

View File

@@ -322,8 +322,16 @@
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<input type="checkbox" id="flagICRU">
</td>
<td>
<details>
<summary>Use ICRU parameters</summary>
Force the TRIM.SP code to use stopping power
parameters from the old ICRU tables.
</details>
</td>
<td>
<details>
<summary>IRL</summary>

View File

@@ -867,6 +867,9 @@ function prep_cfg(toggle) {
for (key of parOther) {
All[key]= document.getElementById(key).value;
}
// Check ICRU flag, if checked use it
All["flagICRU"] = document.getElementById("flagICRU").checked;
// Construct full content of cfg file
TrimSPcfg = FilesSec + LayersSec + ProjSec + ScanSec;
@@ -999,7 +1002,7 @@ function CreateInpFile(All) {
All[LEkey+"E"+NEl]=ElE; // sprintf("%8.4f",$ElE);
All["L"+i+"030"+NEl]=El030; // sprintf("%8.4f",$El030);
let ElST = StoppingCoefficients(El);
let ElST = StoppingCoefficients(El,All["flagICRU"]);
let ElSTs = ElST.split(',');
let j=1;
for (let iElST of ElSTs) {