1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667
|
/*
Copyright (c) 2015-2019, Tom Schoonjans
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* The names of the contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Teemu Ikonen and Tom Schoonjans ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Teemu Ikonen and Tom Schoonjans BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.github.tschoonj.xraylib;
import java.io.DataInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.BufferUnderflowException;
import java.nio.ByteOrder;
import java.lang.Math;
import java.util.Arrays;
import java.util.ArrayList;
import java.nio.charset.StandardCharsets;
import java.util.Iterator;
import java.text.Format;
import org.apache.commons.math3.complex.Complex;
/**
* This is the main class of the xraylib package, containing all static methods.
*
* If an invalid argument has been passed to any of these methods,
* an @see IllegalArgumentException will be thrown.
*
* @author Tom Schoonjans (Tom.Schoonjans@diamond.ac.uk)
* @since 3.2.0
*/
public class Xraylib {
static {
try {
XRayInit();
}
catch (Exception e){
e.printStackTrace();
System.exit(1);
}
}
/* predefined error messages */
public static final String Z_OUT_OF_RANGE = "Z out of range";
public static final String NEGATIVE_ENERGY = "Energy must be strictly positive";
public static final String NEGATIVE_DENSITY = "Density must be strictly positive";
public static final String NEGATIVE_Q = "q must be positive";
public static final String NEGATIVE_PZ = "pz must be positive";
public static final String INVALID_SHELL = "Invalid shell for this atomic number";
public static final String INVALID_LINE = "Invalid line for this atomic number";
public static final String INVALID_CK = "Invalid Coster-Kronig transition for this atomic number";
public static final String INVALID_AUGER = "Invalid Auger transition macro for this atomic number";
public static final String UNKNOWN_SHELL = "Unknown shell macro provided";
public static final String UNKNOWN_LINE = "Unknown line macro provided";
public static final String UNKNOWN_CK = "Unknown Coster-Kronig transition macro provided";
public static final String UNKNOWN_AUGER = "Unknown Auger transition macro provided";
public static final String UNAVAILABLE_JUMP_FACTOR = "Jump factor unavailable for element and shell";
public static final String UNAVAILABLE_FLUOR_YIELD = "Fluorescence yield unavailable for atomic number and shell";
public static final String TOO_LOW_EXCITATION_ENERGY = "The excitation energy too low to excite the shell";
public static final String UNAVAILABLE_PHOTO_CS = "Photoionization cross section unavailable for atomic number and energy";
public static final String UNAVAILABLE_RAD_RATE = "Radiative rate unavailable for this atomic number and line macro";
public static final String UNAVAILABLE_CK = "Coster-Kronig transition probability unavailable for this atomic number and transition macro";
public static final String UNKNOWN_COMPOUND = "Compound is not a valid chemical formula and is not present in the NIST compound database";
public static final String MALLOC_ERROR = "Could not allocate memory";
public static final String INVALID_MILLER = "Miller indices cannot all be zero";
public static final String NEGATIVE_DEBYE_FACTOR = "Debye-Waller factor must be strictly positive";
public static final String CRYSTAL_NULL = "Crystal cannot be NULL";
public static final String SPLINT_X_TOO_LOW = "Spline extrapolation is not allowed";
public static final String SPLINT_X_TOO_HIGH = "Spline extrapolation is not allowed";
public static final String LININTERP_X_TOO_LOW = "Linear extrapolation is not allowed";
public static final String LININTERP_X_TOO_HIGH = "Linear extrapolation is not allowed";
protected static String readString(ByteBuffer byte_buffer) {
ArrayList<Byte> al = new ArrayList<>();
while (true) {
byte my_char = byte_buffer.get();
if (my_char == 0)
break;
al.add(my_char);
}
byte[] temp = new byte[al.size()];
Iterator<Byte> iterator = al.iterator();
for (int i = 0 ; i < temp.length ; i++) {
temp[i] = iterator.next().byteValue();
}
return new String(temp, StandardCharsets.US_ASCII);
}
protected static double[][][] readDoubleArrayOfArraysOfArrays(int[][] N, ByteBuffer byte_buffer) throws BufferUnderflowException {
double[][][] rv = new double[N.length][][];
for (int i = 0 ; i < N.length ; i++) {
rv[i] = readDoubleArrayOfArrays(N[i], byte_buffer);
}
return rv;
}
protected static double[][] readDoubleArrayOfArrays(int[] N, ByteBuffer byte_buffer) throws BufferUnderflowException {
double [][] rv = new double[N.length][];
for (int i = 0 ; i < N.length ; i++) {
if (N[i] <= 0) {
rv[i] = null;
continue;
}
rv[i] = readDoubleArray(N[i], byte_buffer);
}
return rv;
}
protected static double[] readDoubleArray(int n, ByteBuffer byte_buffer) throws BufferUnderflowException {
//System.out.println("readDoubleArray n: " + n);
double[] rv = new double[n];
for (int i = 0 ; i < n ; i++) {
try {
rv[i] = byte_buffer.getDouble();
//System.out.println("rv["+i+"]: "+ rv[i]);
}
catch (BufferUnderflowException e) {
throw new BufferUnderflowException();
}
}
return rv;
}
protected static int[] readIntArray(int n, ByteBuffer byte_buffer) throws BufferUnderflowException {
int[] rv = new int[n];
for (int i = 0 ; i < n ; i++) {
try {
rv[i] = byte_buffer.getInt();
//System.out.println("rv["+i+"]: "+ rv[i]);
}
catch (BufferUnderflowException e) {
throw new BufferUnderflowException();
}
}
return rv;
}
protected static int[][] arrayReshape(int[] array, int m, int n) {
if (m*n != array.length)
throw new RuntimeException("new array dimensions incompatible with old ones");
int[][] rv = new int[m][n];
int index_old = 0;
for (int i = 0 ; i < m ; i++) {
for (int j = 0 ; j < n ; j++) {
rv[i][j] = array[index_old++];
}
}
return rv;
}
private static void XRayInit() throws Exception {
try (
DataInputStream inputStream = new DataInputStream(Xraylib.class.getClassLoader().getResourceAsStream("xraylib.dat"));
) {
int bytes_total = inputStream.available();
byte[] bytes = new byte[bytes_total];
inputStream.readFully(bytes);
ByteBuffer byte_buffer = ByteBuffer.wrap(bytes);
byte_buffer.order(ByteOrder.LITTLE_ENDIAN);
ZMAX = byte_buffer.getInt();
SHELLNUM = byte_buffer.getInt();
SHELLNUM_K = byte_buffer.getInt();
SHELLNUM_A = byte_buffer.getInt();
TRANSNUM = byte_buffer.getInt();
LINENUM = byte_buffer.getInt();
AUGERNUM = byte_buffer.getInt();
RE2 = byte_buffer.getDouble();
MEC2 = byte_buffer.getDouble();
AVOGNUM = byte_buffer.getDouble();
KEV2ANGST = byte_buffer.getDouble();
R_E = byte_buffer.getDouble();
//System.out.println("ZMAX: " + ZMAX);
//System.out.println("SHELLNUM: " + SHELLNUM);
//System.out.println("TRANSNUM: " + TRANSNUM);
AtomicWeight_arr = readDoubleArray(ZMAX + 1, byte_buffer);
ElementDensity_arr = readDoubleArray(ZMAX + 1, byte_buffer);
EdgeEnergy_arr = readDoubleArray((ZMAX + 1) * SHELLNUM, byte_buffer);
AtomicLevelWidth_arr = readDoubleArray((ZMAX + 1) * SHELLNUM, byte_buffer);
LineEnergy_arr = readDoubleArray((ZMAX + 1) * LINENUM, byte_buffer);
FluorYield_arr = readDoubleArray((ZMAX + 1) * SHELLNUM, byte_buffer);
JumpFactor_arr = readDoubleArray((ZMAX + 1) * SHELLNUM, byte_buffer);
CosKron_arr = readDoubleArray((ZMAX + 1) * TRANSNUM, byte_buffer);
RadRate_arr = readDoubleArray((ZMAX + 1) * LINENUM, byte_buffer);
NE_Photo_arr = readIntArray(ZMAX + 1, byte_buffer);
E_Photo_arr = readDoubleArrayOfArrays(NE_Photo_arr, byte_buffer);
CS_Photo_arr = readDoubleArrayOfArrays(NE_Photo_arr, byte_buffer);
CS_Photo_arr2 = readDoubleArrayOfArrays(NE_Photo_arr, byte_buffer);
NE_Rayl_arr = readIntArray(ZMAX + 1, byte_buffer);
E_Rayl_arr = readDoubleArrayOfArrays(NE_Rayl_arr, byte_buffer);
CS_Rayl_arr = readDoubleArrayOfArrays(NE_Rayl_arr, byte_buffer);
CS_Rayl_arr2 = readDoubleArrayOfArrays(NE_Rayl_arr, byte_buffer);
NE_Compt_arr = readIntArray(ZMAX + 1, byte_buffer);
E_Compt_arr = readDoubleArrayOfArrays(NE_Compt_arr, byte_buffer);
CS_Compt_arr = readDoubleArrayOfArrays(NE_Compt_arr, byte_buffer);
CS_Compt_arr2 = readDoubleArrayOfArrays(NE_Compt_arr, byte_buffer);
NE_Energy_arr = readIntArray(ZMAX + 1, byte_buffer);
E_Energy_arr = readDoubleArrayOfArrays(NE_Energy_arr, byte_buffer);
CS_Energy_arr = readDoubleArrayOfArrays(NE_Energy_arr, byte_buffer);
CS_Energy_arr2 = readDoubleArrayOfArrays(NE_Energy_arr, byte_buffer);
Nq_Rayl_arr = readIntArray(ZMAX +1, byte_buffer);
q_Rayl_arr = readDoubleArrayOfArrays(Nq_Rayl_arr, byte_buffer);
FF_Rayl_arr = readDoubleArrayOfArrays(Nq_Rayl_arr, byte_buffer);
FF_Rayl_arr2 = readDoubleArrayOfArrays(Nq_Rayl_arr, byte_buffer);
Nq_Compt_arr = readIntArray(ZMAX +1, byte_buffer);
q_Compt_arr = readDoubleArrayOfArrays(Nq_Compt_arr, byte_buffer);
SF_Compt_arr = readDoubleArrayOfArrays(Nq_Compt_arr, byte_buffer);
SF_Compt_arr2 = readDoubleArrayOfArrays(Nq_Compt_arr, byte_buffer);
NE_Fi_arr = readIntArray(ZMAX +1, byte_buffer);
E_Fi_arr = readDoubleArrayOfArrays(NE_Fi_arr, byte_buffer);
Fi_arr = readDoubleArrayOfArrays(NE_Fi_arr, byte_buffer);
Fi_arr2 = readDoubleArrayOfArrays(NE_Fi_arr, byte_buffer);
NE_Fii_arr = readIntArray(ZMAX +1, byte_buffer);
E_Fii_arr = readDoubleArrayOfArrays(NE_Fii_arr, byte_buffer);
Fii_arr = readDoubleArrayOfArrays(NE_Fii_arr, byte_buffer);
Fii_arr2 = readDoubleArrayOfArrays(NE_Fii_arr, byte_buffer);
Electron_Config_Kissel_arr = readDoubleArray((ZMAX + 1) * SHELLNUM_K, byte_buffer);
EdgeEnergy_Kissel_arr = readDoubleArray((ZMAX + 1) * SHELLNUM_K, byte_buffer);
NE_Photo_Total_Kissel_arr = readIntArray(ZMAX +1, byte_buffer);
E_Photo_Total_Kissel_arr = readDoubleArrayOfArrays(NE_Photo_Total_Kissel_arr, byte_buffer);
Photo_Total_Kissel_arr = readDoubleArrayOfArrays(NE_Photo_Total_Kissel_arr, byte_buffer);
Photo_Total_Kissel_arr2 = readDoubleArrayOfArrays(NE_Photo_Total_Kissel_arr, byte_buffer);
//NE_Photo_Partial_Kissel_arr = readIntArray((ZMAX + 1) * SHELLNUM_K, byte_buffer);
int[] temp_arr = readIntArray((ZMAX + 1) * SHELLNUM_K, byte_buffer);
NE_Photo_Partial_Kissel_arr = arrayReshape(temp_arr, ZMAX+1, SHELLNUM_K);
E_Photo_Partial_Kissel_arr = readDoubleArrayOfArraysOfArrays(NE_Photo_Partial_Kissel_arr, byte_buffer);
Photo_Partial_Kissel_arr = readDoubleArrayOfArraysOfArrays(NE_Photo_Partial_Kissel_arr, byte_buffer);
Photo_Partial_Kissel_arr2 = readDoubleArrayOfArraysOfArrays(NE_Photo_Partial_Kissel_arr, byte_buffer);
NShells_ComptonProfiles_arr = readIntArray(ZMAX +1, byte_buffer);
Npz_ComptonProfiles_arr = readIntArray(ZMAX +1, byte_buffer);
UOCCUP_ComptonProfiles_arr = readDoubleArrayOfArrays(NShells_ComptonProfiles_arr, byte_buffer);
pz_ComptonProfiles_arr = readDoubleArrayOfArrays(Npz_ComptonProfiles_arr, byte_buffer);
Total_ComptonProfiles_arr = readDoubleArrayOfArrays(Npz_ComptonProfiles_arr, byte_buffer);
Total_ComptonProfiles_arr2 = readDoubleArrayOfArrays(Npz_ComptonProfiles_arr, byte_buffer);
Partial_ComptonProfiles_arr = new double[ZMAX+1][][];
Partial_ComptonProfiles_arr2 = new double[ZMAX+1][][];
for (int i = 0 ; i < ZMAX+1 ; i++) {
if (NShells_ComptonProfiles_arr[i] <= 0) {
continue;
}
Partial_ComptonProfiles_arr[i] = new double[NShells_ComptonProfiles_arr[i]][];
for (int j = 0 ; j < NShells_ComptonProfiles_arr[i] ; j++) {
if (Npz_ComptonProfiles_arr[i] > 0 && UOCCUP_ComptonProfiles_arr[i][j] > 0) {
Partial_ComptonProfiles_arr[i][j] = readDoubleArray(Npz_ComptonProfiles_arr[i], byte_buffer);
}
}
}
for (int i = 0 ; i < ZMAX+1 ; i++) {
if (NShells_ComptonProfiles_arr[i] <= 0) {
continue;
}
Partial_ComptonProfiles_arr2[i] = new double[NShells_ComptonProfiles_arr[i]][];
for (int j = 0 ; j < NShells_ComptonProfiles_arr[i] ; j++) {
if (Npz_ComptonProfiles_arr[i] > 0 && UOCCUP_ComptonProfiles_arr[i][j] > 0) {
Partial_ComptonProfiles_arr2[i][j] = readDoubleArray(Npz_ComptonProfiles_arr[i], byte_buffer);
}
}
}
Auger_Yields_arr = readDoubleArray((ZMAX + 1)*SHELLNUM_A, byte_buffer);
Auger_Rates_arr = readDoubleArray((ZMAX + 1)*AUGERNUM, byte_buffer);
int nCompoundDataNISTList = byte_buffer.getInt();
compoundDataNISTList = new compoundDataNIST[nCompoundDataNISTList];
for (int i = 0 ; i < nCompoundDataNISTList ; i++) {
compoundDataNISTList[i] = new compoundDataNIST(byte_buffer);
}
int nNuclideDataList = byte_buffer.getInt();
nuclideDataList = new radioNuclideData[nNuclideDataList];
for (int i = 0 ; i < nNuclideDataList ; i++) {
nuclideDataList[i] = new radioNuclideData(byte_buffer);
}
//crystals
int nCrystals = byte_buffer.getInt();
crystalDataList = new Crystal_Struct[nCrystals];
for (int i = 0 ; i < nCrystals ; i++) {
crystalDataList[i] = new Crystal_Struct(byte_buffer);
}
// precalculated XRF CS components...
xrf_cross_sections_constants_full = readDoubleArray((ZMAX + 1) * (M5_SHELL + 1) * (L3_SHELL + 1), byte_buffer);
xrf_cross_sections_constants_auger_only = readDoubleArray((ZMAX + 1) * (M5_SHELL + 1) * (L3_SHELL + 1), byte_buffer);
//this should never happen!
if (byte_buffer.hasRemaining()) {
throw new RuntimeException("byte_buffer not empty when closing!");
}
}
}
/**
* Returns the @see <a href="https://en.wikipedia.org/wiki/Standard_atomic_weight">standard atomic weight</a>
*
* @param Z The atomic number
* @return The standard atomic weight (dimensionless)
*/
public static double AtomicWeight(int Z) {
double atomic_weight;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
atomic_weight = AtomicWeight_arr[Z];
if (atomic_weight <= 0.) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
return atomic_weight;
}
/**
* For a given atomic number, returns the @see <a href="https://en.wikipedia.org/wiki/Density">element density</a>.
*
* @param Z The atomic number
* @return The element density, expressed in g/cm<sup>3</sup>
*/
public static double ElementDensity(int Z) {
double element_density;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
element_density = ElementDensity_arr[Z];
if (element_density <= 0.) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
return element_density;
}
/**
* For a given atomic number and shell, returns the corresponding @see <a href="https://en.wikipedia.org/wiki/Absorption_edge">absorption edge energy</a>.
*
* This is also known as the electron binding energy.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The absorption edge energy, expressed in keV
*/
public static double EdgeEnergy(int Z, int shell) {
double edge_energy;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell < 0 || shell >= SHELLNUM) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
edge_energy = EdgeEnergy_arr[shell + (Z * SHELLNUM)];
if (edge_energy <= 0.) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return edge_energy;
}
/**
* For a given atomic number and shell, returns the corresponding atomic level width.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The atomic level width, expressed in keV
*/
public static double AtomicLevelWidth(int Z, int shell) {
double atomic_level_width;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell<0 || shell>=SHELLNUM) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
atomic_level_width = AtomicLevelWidth_arr[Z * SHELLNUM + shell];
if (atomic_level_width <= 0.) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return atomic_level_width;
}
/**
* For a given atomic number and shell, returns the corresponding fluorescence yield.
*
* The returned value will be between 0 and 1.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The fluorescence yield (dimensionless)
*/
public static double FluorYield(int Z, int shell) {
double fluor_yield;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell < 0 || shell >= SHELLNUM) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
fluor_yield = FluorYield_arr[Z * SHELLNUM + shell];
if (fluor_yield <= 0.) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return fluor_yield;
}
/**
* For a given atomic number and shell, returns the corresponding jump factor.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The jump factor (dimensionless)
*/
public static double JumpFactor(int Z, int shell) {
double jump_factor;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell < 0 || shell >= SHELLNUM) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
jump_factor = JumpFactor_arr[Z * SHELLNUM + shell];
if (jump_factor <= 0.) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return jump_factor;
}
/**
* For a given atomic number and transition, returns the corresponding @see <a href="https://en.wikipedia.org/wiki/Coster%E2%80%93Kronig_transition">Coster-Kronig transition probability</a>.
*
* The returned value will be between 0 and 1.
*
* @param Z The atomic number
* @param trans A macro identifying the Coster-Kronig transition, such as #FL12_TRANS.
* @return The Coster-Kronig transition probability (dimensionless)
*/
public static double CosKronTransProb(int Z, int trans) {
double trans_prob;
if (Z < 1 || Z > ZMAX){
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (trans < 1 || trans >= TRANSNUM) {
throw new IllegalArgumentException(UNKNOWN_CK);
}
trans_prob = CosKron_arr[Z * TRANSNUM + trans];
if (trans_prob <= 0.) {
throw new IllegalArgumentException(INVALID_CK);
}
return trans_prob;
}
/**
* For a given atomic number and line, returns the corresponding radiative rate.
*
* The returned value will be between 0 and 1.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @return The radiative rate (dimensionless)
*/
public static double RadRate(int Z, int line) {
double rad_rate, rr;
int i;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (line == KA_LINE) {
rr = 0.0;
for (i= 0 ; i <= 2 ; i++) {
rr += RadRate_arr[Z * LINENUM + i];
}
if (rr == 0.0) {
throw new IllegalArgumentException(INVALID_LINE);
}
return rr;
}
else if (line == KB_LINE) {
/*
* we assume that RR(Ka)+RR(Kb) = 1.0
*/
rr = RadRate(Z, KA_LINE);
if (rr == 1.0) {
throw new IllegalArgumentException(INVALID_LINE);
}
else if (rr == 0.0) {
throw new IllegalArgumentException(INVALID_LINE);
}
return 1.0 - rr;
}
else if (line == LA_LINE) {
line = -L3M5_LINE - 1;
rr = RadRate_arr[Z * LINENUM + line];
line = -L3M4_LINE - 1;
rr += RadRate_arr[Z * LINENUM + line];
if (rr == 0.0) {
throw new IllegalArgumentException(INVALID_LINE);
}
return rr;
}
else if (line == LB_LINE) {
throw new IllegalArgumentException(INVALID_LINE);
}
/*
* in Siegbahn notation: use only KA, KB and LA. The radrates of other lines are nonsense
*/
line = -line - 1;
if (line < 0 || line >= LINENUM) {
throw new IllegalArgumentException(UNKNOWN_LINE);
}
rad_rate = RadRate_arr[Z * LINENUM + line];
if (rad_rate <= 0.) {
throw new IllegalArgumentException(INVALID_LINE);
}
return rad_rate;
}
private static double CS_Factory(int Z, double E, int[] NE_arr, double[][] E_arr, double[][] CS_arr, double[][] CS_arr2) {
double ln_E, ln_sigma, sigma;
if (Z < 1 || Z > ZMAX || NE_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
ln_E = Math.log(E * 1000.0);
ln_sigma = splint(E_arr[Z], CS_arr[Z], CS_arr2[Z], NE_arr[Z], ln_E);
sigma = Math.exp(ln_sigma);
return sigma;
}
/**
* For a given atomic number and energy, returns the corresponding photoionization cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Photo(int Z, double E) {
double rv = CS_Factory(Z, E, NE_Photo_arr, E_Photo_arr, CS_Photo_arr, CS_Photo_arr2);
return rv;
}
/**
* For a given atomic number and energy, returns the corresponding Rayleigh scattering cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Rayl(int Z, double E) {
double rv = CS_Factory(Z, E, NE_Rayl_arr, E_Rayl_arr, CS_Rayl_arr, CS_Rayl_arr2);
return rv;
}
/**
* For a given atomic number and energy, returns the corresponding Compton scattering cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Compt(int Z, double E) {
double rv = CS_Factory(Z, E, NE_Compt_arr, E_Compt_arr, CS_Compt_arr, CS_Compt_arr2);
return rv;
}
/**
* For a given atomic number and energy, returns the corresponding mass-energy absorption cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Energy(int Z, double E) {
double rv = CS_Factory(Z, E / 1000.0, NE_Energy_arr, E_Energy_arr, CS_Energy_arr, CS_Energy_arr2);
return rv;
}
/**
* For a given atomic number and energy, returns the corresponding total attenuation cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Total(int Z, double E) {
if (Z<1 || Z>ZMAX || NE_Photo_arr[Z] < 0 || NE_Rayl_arr[Z] < 0 || NE_Compt_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
return CS_Photo(Z, E) + CS_Rayl(Z, E) + CS_Compt(Z, E);
}
/**
* For a given atomic number and momentum transfer, returns the corresponding atomic form factor for Rayleigh scattering.
*
* @param Z The atomic number
* @param q The momentum transfer, expressed in Ã…<sup>-1</sup>
* @return The atomic form factor
*/
public static double FF_Rayl(int Z, double q) {
double FF;
if (Z < 1 || Z > ZMAX || Nq_Rayl_arr[Z] <= 0.0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (q == 0)
return Z;
if (q < 0.0) {
throw new IllegalArgumentException(NEGATIVE_Q);
}
FF = splint(q_Rayl_arr[Z], FF_Rayl_arr[Z], FF_Rayl_arr2[Z], Nq_Rayl_arr[Z], q);
return FF;
}
/**
* For a given atomic number and momentum transfer, returns the corresponding incoherent scattering function for Compton scattering.
*
* @param Z The atomic number
* @param q The momentum transfer, expressed in Ã…<sup>-1</sup>
* @return The incoherent scattering function
*/
public static double SF_Compt(int Z, double q) {
double SF;
if (Z<1 || Z>ZMAX || Nq_Compt_arr[Z] <= 0.0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (q <= 0.) {
throw new IllegalArgumentException(NEGATIVE_Q);
}
SF = splint(q_Compt_arr[Z], SF_Compt_arr[Z], SF_Compt_arr2[Z], Nq_Compt_arr[Z], q);
return SF;
}
/**
* For a given scattering angle, returns the @see <a href="https://en.wikipedia.org/wiki/Thomson_scattering">Thomson differential cross section</a>
*
* @param theta The scattering angle, between indicent and observed photon or wave.
* @return The Thomson differential cross section, expressed in barn
*/
public static double DCS_Thoms(double theta) {
double cos_theta;
cos_theta = Math.cos(theta);
return (RE2/2.0) * (1.0 + cos_theta * cos_theta);
}
/**
* For a given energy and scattering angle, returns the @see <a href="https://en.wikipedia.org/wiki/Klein%E2%80%93Nishina_formula">Klein-Nishina differential cross section</a>
*
* @param E The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Klein-Nishina differential cross section, expressed in barn
*/
public static double DCS_KN(double E, double theta) {
double cos_theta, t1, t2;
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
cos_theta = Math.cos(theta);
t1 = (1.0 - cos_theta) * E / MEC2 ;
t2 = 1.0 + t1;
return (RE2/2.) * (1.0 + cos_theta * cos_theta + t1 *t1 / t2) /t2 /t2;
}
/**
* For a given atomic number, energy and scattering angle, returns the Rayleigh differential cross section.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in cm<sup>2</sup>/g/sterad
*/
public static double DCS_Rayl(int Z, double E, double theta) {
double F, q ;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
q = MomentTransf(E, theta);
F = FF_Rayl(Z, q);
return AVOGNUM / AtomicWeight_arr[Z] * F * F * DCS_Thoms(theta);
}
/**
* For a given atomic number, energy and scattering angle, returns the Compton differential cross section.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in cm<sup>2</sup>/g/sterad
*/
public static double DCS_Compt(int Z, double E, double theta) {
double S, q ;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
q = MomentTransf(E, theta);
S = SF_Compt(Z, q);
return AVOGNUM / AtomicWeight_arr[Z] * S * DCS_KN(E, theta);
}
/**
* For a given energy and scattering angle, returns the @see <a href="https://en.wikipedia.org/wiki/Momentum_transfer">momentum transfer</a>
*
* @param E The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The momentum transfer for X-ray photon scattering, expressed in Ã…<sup>-1</sup>
*/
public static double MomentTransf(double E, double theta) {
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
return E / KEV2ANGST * Math.sin(theta / 2.0) ;
}
/**
* For a given energy, returns the @see <a href="https://en.wikipedia.org/wiki/Klein%E2%80%93Nishina_formula">Klein-Nishina cross section</a>
*
* @param E The photon energy, expressed in keV
* @return The Klein-Nishina cross section, expressed in barn
*/
public static double CS_KN(double E) {
double a, a3, b, b2, lb;
double sigma;
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
a = E / MEC2;
a3 = a * a * a;
b = 1 + 2 * a;
b2 = b * b;
lb = Math.log(b);
sigma = 2 * Math.PI * RE2*( (1 + a) / a3 * ( 2 * a * (1 + a) / b - lb) + 0.5 * lb / a - (1 + 3 * a) / b2);
return sigma;
}
/**
* For a given energy and scattering angle, returns the photon energy after @see <a href="https://en.wikipedia.org/wiki/Compton_scattering#Derivation_of_the_scattering_formula">Compton scattering</a>.
*
* @param E0 The initial photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The photon energy after scattering, expressed in keV.
*/
public static double ComptonEnergy(double E0, double theta) {
double cos_theta, alpha;
if (E0 <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
cos_theta = Math.cos(theta);
alpha = E0 / MEC2;
return E0 / (1 + alpha * (1 - cos_theta));
}
/**
* For a given atomic number and energy, returns the corresponding photoionization cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Photo_Total(int Z, double E) {
int shell;
double rv = 0.0;
if (Z < 1 || Z > ZMAX || NE_Photo_Total_Kissel_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
for (shell = K_SHELL ; shell <= Q3_SHELL ; shell++) {
if (Electron_Config_Kissel_arr[Z * SHELLNUM_K + shell] > 1.0E-06) {
try {
rv += CSb_Photo_Partial(Z, shell, E) * Electron_Config_Kissel_arr[Z * SHELLNUM_K + shell];
} catch (IllegalArgumentException e) {
}
}
}
if (rv <= 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_PHOTO_CS);
}
return rv;
}
/**
* For a given atomic number and energy, returns the corresponding photoionization cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Photo_Total(int Z, double E) {
return CSb_Photo_Total(Z, E) * AVOGNUM / AtomicWeight_arr[Z];
}
/**
* For a given atomic number, shell and energy, returns the corresponding partial photoionization cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/electron.
*/
public static double CSb_Photo_Partial(int Z, int shell, double E) {
double ln_E, ln_sigma, sigma;
double x0, x1, y0, y1;
double m;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell < 0 || shell >= SHELLNUM_K) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
if (Electron_Config_Kissel_arr[Z * SHELLNUM_K + shell] < 1.0E-06 || EdgeEnergy_arr[Z * SHELLNUM + shell] <= 0.0){
throw new IllegalArgumentException(INVALID_SHELL);
}
if (EdgeEnergy_arr[Z * SHELLNUM + shell] > E) {
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
}
ln_E = Math.log(E);
if (EdgeEnergy_Kissel_arr[Z * SHELLNUM_K + shell] > EdgeEnergy_arr[Z * SHELLNUM + shell] && E < EdgeEnergy_Kissel_arr[Z * SHELLNUM_K + shell]) {
/*
* use log-log extrapolation
*/
x0 = E_Photo_Partial_Kissel_arr[Z][shell][0];
x1 = E_Photo_Partial_Kissel_arr[Z][shell][1];
y0 = Photo_Partial_Kissel_arr[Z][shell][0];
y1 = Photo_Partial_Kissel_arr[Z][shell][1];
/*
* do not allow "extreme" slopes... force them to be within -1;1
*/
m = (y1-y0)/(x1-x0);
if (m > 1.0)
m=1.0;
else if (m < -1.0)
m=-1.0;
ln_sigma = y0+m*(ln_E-x0);
}
else {
ln_sigma = splint(E_Photo_Partial_Kissel_arr[Z][shell], Photo_Partial_Kissel_arr[Z][shell], Photo_Partial_Kissel_arr2[Z][shell],NE_Photo_Partial_Kissel_arr[Z][shell], ln_E);
}
sigma = Math.exp(ln_sigma);
return sigma;
}
/**
* For a given atomic number, shell and energy, returns the corresponding partial photoionization cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Photo_Partial(int Z, int shell, double E) {
return CSb_Photo_Partial(Z, shell, E) * Electron_Config_Kissel_arr[Z * SHELLNUM_K + shell] * AVOGNUM/AtomicWeight_arr[Z];
}
/**
* For a given atomic number and energy, returns the corresponding total attenuation cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Total_Kissel(int Z, double E) {
if (Z < 1 || Z > ZMAX || NE_Photo_Total_Kissel_arr[Z] < 0 || NE_Rayl_arr[Z] < 0 || NE_Compt_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
return CS_Photo_Total(Z, E) + CS_Rayl(Z, E) + CS_Compt(Z, E);
}
/**
* For a given atomic number and energy, returns the corresponding total attenuation cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Total_Kissel(int Z, double E) {
return CS_Total_Kissel(Z, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number and shell, returns the corresponding @see <a href="https://en.wikipedia.org/wiki/Electron_configuration">electron configuration</a>.
*
* This method used the Kissel database to determine the electron configuration.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The number of electrons that occupy the shell
*/
public static double ElectronConfig(int Z, int shell) {
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell < 0 || shell >= SHELLNUM_K) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
double rv = Electron_Config_Kissel_arr[Z * SHELLNUM_K + shell];
if (rv == 0.0) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return rv;
}
/**
* For a given atomic number and momentum, returns the corresponding Compton scattering profile, summed over all shells.
*
* @param Z The atomic number
* @param pz The momentum
* @return The Compton scattering profile
*/
public static double ComptonProfile(int Z, double pz) {
double q, ln_q;
double ln_pz;
if (Z < 1 || Z > ZMAX || NShells_ComptonProfiles_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (pz < 0.0) {
throw new IllegalArgumentException(NEGATIVE_PZ);
}
ln_pz = Math.log(pz + 1.0);
ln_q = splint(pz_ComptonProfiles_arr[Z], Total_ComptonProfiles_arr[Z], Total_ComptonProfiles_arr2[Z], Npz_ComptonProfiles_arr[Z], ln_pz);
q = Math.exp(ln_q);
return q;
}
/**
* For a given atomic number, shell and momentum, returns the corresponding Compton scattering profile.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @param pz The momentum
* @return The Compton scattering profile
*/
public static double ComptonProfile_Partial(int Z, int shell, double pz) {
double q, ln_q;
double ln_pz;
if (Z < 1 || Z > ZMAX || NShells_ComptonProfiles_arr[Z] < 1) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell >= NShells_ComptonProfiles_arr[Z] || shell < K_SHELL || UOCCUP_ComptonProfiles_arr[Z][shell] == 0.0 ) {
throw new IllegalArgumentException(INVALID_SHELL);
}
if (pz < 0.0) {
throw new IllegalArgumentException(NEGATIVE_PZ);
}
ln_pz = Math.log(pz + 1.0);
ln_q = splint(pz_ComptonProfiles_arr[Z], Partial_ComptonProfiles_arr[Z][shell], Partial_ComptonProfiles_arr2[Z][shell], Npz_ComptonProfiles_arr[Z], ln_pz);
q = Math.exp(ln_q);
return q;
}
/**
* For a given atomic number and shell, returns the corresponding @see <a href="https://en.wikipedia.org/wiki/Electron_configuration">electron configuration</a>.
*
* This method used the Biggs database to determine the electron configuration.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The number of electrons that occupy the shell
*/
public static double ElectronConfig_Biggs(int Z, int shell) {
if (Z < 1 || Z > ZMAX || NShells_ComptonProfiles_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (shell >= NShells_ComptonProfiles_arr[Z] || UOCCUP_ComptonProfiles_arr[Z][shell] == 0.0 ) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return UOCCUP_ComptonProfiles_arr[Z][shell];
}
/**
* For a given atomic number and Auger transition, returns the corresponding non-radiative Auger rate.
*
* Transitions that correspond to Coster-Kronig transitions (such as #L2_L3N6_AUGER) will throw an exception.
*
* The returned value will be between 0 and 1.
*
* @param Z The atomic number
* @param auger_trans A macro identifying the transition, such as #K_L2O7_AUGER
* @return The Auger radiative rate (dimensionless)
*/
public static double AugerRate(int Z, int auger_trans) {
double rv;
double yield, yield2;
rv = 0.0;
if (Z > ZMAX || Z < 1) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
else if (auger_trans < K_L1L1_AUGER || auger_trans > M4_M5Q3_AUGER) {
throw new IllegalArgumentException(UNKNOWN_AUGER);
}
rv = Auger_Rates_arr[Z * AUGERNUM + auger_trans];
if (rv <= 0.) {
throw new IllegalArgumentException(INVALID_AUGER);
}
return rv;
}
/**
* For a given atomic number and shell, returns the corresponding non-radiative Auger yield.
*
* The returned values does not cover Coster-Kronig transitions! Use #CosKronTransProb to obtain those values.
*
* The returned value will be between 0 and 1.
*
* @param Z The atomic number
* @param shell A macro identifying the shell, such as #K_SHELL
* @return The non-radiative Auger yield (dimensionless)
*/
public static double AugerYield(int Z, int shell) {
double rv;
if (Z > ZMAX || Z < 1) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
else if (shell < K_SHELL || shell > M5_SHELL) {
throw new IllegalArgumentException(UNKNOWN_SHELL);
}
rv = Auger_Yields_arr[Z * SHELLNUM_A + shell];
if (rv == 0.0) {
throw new IllegalArgumentException(INVALID_SHELL);
}
return rv;
}
private static double RadRate_catch(int Z, int line) {
try {
return RadRate(Z, line);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double CS_FluorLine_catch(int Z, int line, double E) {
try {
return CS_FluorLine(Z, line, E);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double EdgeEnergy_catch(int Z, int shell) {
try {
return EdgeEnergy(Z, shell);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double FluorYield_catch(int Z, int shell) {
try {
return FluorYield(Z, shell);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double JumpFactor_catch(int Z, int shell) {
try {
return JumpFactor(Z, shell);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double LineEnergy_catch(int Z, int line) {
try {
return LineEnergy(Z, line);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double CS_Photo_Partial_catch(int Z, int shell, double E) {
try {
return CS_Photo_Partial(Z, shell, E);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double CosKronTransProb_catch(int Z, int trans) {
try {
return CosKronTransProb(Z, trans);
}
catch (IllegalArgumentException e) {
return 0.0;
}
}
private static int get_kissel_offset(int n1, int n2, int n3) {
return (M5_SHELL + 1) * (L3_SHELL + 1) * n1 + (L3_SHELL + 1) * n2 + n3;
}
public static double PL1_pure_kissel(int Z, double E) {
return CS_Photo_Partial(Z, L1_SHELL, E);
}
public static double PL1_rad_cascade_kissel(int Z, double E, double PK) {
double rv;
rv = CS_Photo_Partial(Z,L1_SHELL, E);
if (PK > 0.0) {
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KL1_LINE);
}
return rv;
}
public static double PL1_auger_cascade_kissel(int Z, double E, double PK) {
double rv;
rv = CS_Photo_Partial(Z, L1_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, L1_SHELL, K_SHELL)];
return rv;
}
public static double PL1_full_cascade_kissel(int Z, double E, double PK) {
double rv;
rv = CS_Photo_Partial(Z, L1_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, L1_SHELL, K_SHELL)];
return rv;
}
public static double PL2_pure_kissel(int Z, double E, double PL1) {
double rv;
rv = CS_Photo_Partial(Z, L2_SHELL, E);
if (PL1 > 0.0)
rv += CosKronTransProb_catch(Z, FL12_TRANS) * PL1;
return rv;
}
public static double PL2_rad_cascade_kissel(int Z, double E, double PK, double PL1) {
double rv;
rv = CS_Photo_Partial(Z, L2_SHELL, E);
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KL2_LINE);
if (PL1 > 0.0)
rv += CosKronTransProb_catch(Z, FL12_TRANS) * PL1;
return rv;
}
public static double PL2_auger_cascade_kissel(int Z, double E, double PK, double PL1) {
double rv;
rv = CS_Photo_Partial(Z, L2_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, L2_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += CosKronTransProb_catch(Z, FL12_TRANS) * PL1;
return rv;
}
public static double PL2_full_cascade_kissel(int Z, double E, double PK, double PL1) {
double rv;
rv = CS_Photo_Partial(Z,L2_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, L2_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += CosKronTransProb_catch(Z, FL12_TRANS) * PL1;
return rv;
}
public static double PL3_pure_kissel(int Z, double E, double PL1, double PL2) {
double rv;
rv = CS_Photo_Partial(Z, L3_SHELL, E);
if (PL1 > 0.0)
rv += (CosKronTransProb_catch(Z, FL13_TRANS) + CosKronTransProb_catch(Z, FLP13_TRANS)) * PL1;
if (PL2 > 0.0)
rv += CosKronTransProb_catch(Z, FL23_TRANS) * PL2;
return rv;
}
public static double PL3_rad_cascade_kissel(int Z, double E, double PK, double PL1, double PL2) {
double rv;
rv = CS_Photo_Partial(Z, L3_SHELL, E);
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KL3_LINE);
if (PL1 > 0.0)
rv += (CosKronTransProb_catch(Z, FL13_TRANS) + CosKronTransProb_catch(Z, FLP13_TRANS))* PL1;
if (PL2 > 0.0)
rv += CosKronTransProb_catch(Z, FL23_TRANS) * PL2;
return rv;
}
public static double PL3_auger_cascade_kissel(int Z, double E, double PK, double PL1, double PL2) {
double rv;
rv = CS_Photo_Partial(Z,L3_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, L3_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += (CosKronTransProb_catch(Z, FL13_TRANS) + CosKronTransProb_catch(Z, FLP13_TRANS))* PL1;
if (PL2 > 0.0)
rv += CosKronTransProb_catch(Z, FL23_TRANS) * PL2;
return rv;
}
public static double PL3_full_cascade_kissel(int Z, double E, double PK, double PL1, double PL2) {
double rv;
rv = CS_Photo_Partial(Z,L3_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, L3_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += CosKronTransProb_catch(Z, FL13_TRANS) * PL1;
if (PL2 > 0.0)
rv += CosKronTransProb_catch(Z, FL23_TRANS) * PL2;
return rv;
}
public static double PM1_pure_kissel(int Z, double E) {
return CS_Photo_Partial(Z, M1_SHELL, E);
}
public static double PM1_rad_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3) {
double rv;
rv = CS_Photo_Partial(Z, M1_SHELL, E);
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KM1_LINE);
if (PL1 > 0.0)
rv += FluorYield_catch(Z, L1_SHELL) * PL1 * RadRate_catch(Z, L1M1_LINE);
if (PL2 > 0.0)
rv += FluorYield_catch(Z, L2_SHELL) * PL2 * RadRate_catch(Z, L2M1_LINE);
if (PL3 > 0.0)
rv += FluorYield_catch(Z, L3_SHELL) * PL3 * RadRate_catch(Z, L3M1_LINE);
return rv;
}
public static double PM1_auger_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3) {
double rv;
rv = CS_Photo_Partial(Z, M1_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M1_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M1_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M1_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M1_SHELL, L3_SHELL)];
return rv;
}
public static double PM1_full_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3) {
double rv;
rv = CS_Photo_Partial(Z, M1_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, M1_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M1_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M1_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M1_SHELL, L3_SHELL)];
return rv;
}
public static double PM2_pure_kissel(int Z, double E, double PM1) {
double rv;
rv = CS_Photo_Partial(Z, M2_SHELL, E);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM12_TRANS) * PM1;
return rv;
}
public static double PM2_rad_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
double rv;
rv = CS_Photo_Partial(Z, M2_SHELL, E);
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KM2_LINE);
if (PL1 > 0.0)
rv += FluorYield_catch(Z, L1_SHELL) * PL1 * RadRate_catch(Z, L1M2_LINE);
if (PL2 > 0.0)
rv += FluorYield_catch(Z, L2_SHELL) * PL2 * RadRate_catch(Z, L2M2_LINE);
if (PL3 > 0.0)
rv += FluorYield_catch(Z, L3_SHELL) * PL3 * RadRate_catch(Z, L3M2_LINE);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM12_TRANS) * PM1;
return rv;
}
public static double PM2_auger_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
double rv;
rv = CS_Photo_Partial(Z, M2_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M2_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M2_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M2_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M2_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM12_TRANS) * PM1;
return rv;
}
public static double PM2_full_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
double rv;
rv = CS_Photo_Partial(Z, M2_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, M2_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M2_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M2_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M2_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM12_TRANS) * PM1;
return rv;
}
public static double PM3_pure_kissel(int Z, double E, double PM1, double PM2) {
double rv;
rv = CS_Photo_Partial(Z, M3_SHELL, E);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM13_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM23_TRANS) * PM2;
return rv;
}
public static double PM3_rad_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
double rv;
rv = CS_Photo_Partial(Z, M3_SHELL, E);
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KM3_LINE);
if (PL1 > 0.0)
rv += FluorYield_catch(Z, L1_SHELL) * PL1 * RadRate_catch(Z, L1M3_LINE);
if (PL2 > 0.0)
rv += FluorYield_catch(Z, L2_SHELL) * PL2 * RadRate_catch(Z, L2M3_LINE);
if (PL3 > 0.0)
rv += FluorYield_catch(Z, L3_SHELL) * PL3 * RadRate_catch(Z, L3M3_LINE);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM13_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM23_TRANS) * PM2;
return rv;
}
public static double PM3_auger_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
double rv;
rv = CS_Photo_Partial(Z, M3_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M3_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M3_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M3_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M3_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM13_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM23_TRANS) * PM2;
return rv;
}
public static double PM3_full_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
double rv;
rv = CS_Photo_Partial(Z, M3_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, M3_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M3_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M3_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M3_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM13_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM23_TRANS) * PM2;
return rv;
}
public static double PM4_pure_kissel(int Z, double E, double PM1, double PM2, double PM3) {
double rv;
rv = CS_Photo_Partial(Z, M4_SHELL, E);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM14_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM24_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM34_TRANS) * PM3;
return rv;
}
public static double PM4_rad_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
double rv;
rv = CS_Photo_Partial(Z, M4_SHELL, E);
/*yes I know that KM4 lines are forbidden... */
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KM4_LINE);
if (PL1 > 0.0)
rv += FluorYield_catch(Z, L1_SHELL) * PL1 * RadRate_catch(Z, L1M4_LINE);
if (PL2 > 0.0)
rv += FluorYield_catch(Z, L2_SHELL) * PL2 * RadRate_catch(Z, L2M4_LINE);
if (PL3 > 0.0)
rv += FluorYield_catch(Z, L3_SHELL) * PL3 * RadRate_catch(Z, L3M4_LINE);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM14_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM24_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM34_TRANS) * PM3;
return rv;
}
public static double PM4_auger_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
double rv;
rv = CS_Photo_Partial(Z, M4_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M4_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M4_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M4_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M4_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM14_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM24_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM34_TRANS) * PM3;
return rv;
}
public static double PM4_full_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
double rv;
rv = CS_Photo_Partial(Z, M4_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, M4_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M4_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M4_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M4_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM14_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM24_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM34_TRANS) * PM3;
return rv;
}
public static double PM5_pure_kissel(int Z, double E, double PM1, double PM2, double PM3, double PM4) {
double rv;
rv = CS_Photo_Partial(Z, M5_SHELL, E);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM15_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM25_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM35_TRANS) * PM3;
if (PM4 > 0.0)
rv += CosKronTransProb_catch(Z, FM45_TRANS) * PM4;
return rv;
}
public static double PM5_rad_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
double rv;
rv = CS_Photo_Partial(Z, M5_SHELL, E);
/*yes I know that KM5 lines are forbidden... */
if (PK > 0.0)
rv += FluorYield_catch(Z, K_SHELL) * PK * RadRate_catch(Z, KM5_LINE);
if (PL1 > 0.0)
rv += FluorYield_catch(Z, L1_SHELL) * PL1 * RadRate_catch(Z, L1M5_LINE);
if (PL2 > 0.0)
rv += FluorYield_catch(Z, L2_SHELL) * PL2 * RadRate_catch(Z, L2M5_LINE);
if (PL3 > 0.0)
rv += FluorYield_catch(Z, L3_SHELL) * PL3 * RadRate_catch(Z, L3M5_LINE);
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM15_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM25_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM35_TRANS) * PM3;
if (PM4 > 0.0)
rv += CosKronTransProb_catch(Z, FM45_TRANS) * PM4;
return rv;
}
public static double PM5_auger_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
double rv;
rv = CS_Photo_Partial(Z, M5_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M5_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M5_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M5_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_auger_only[get_kissel_offset(Z, M5_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM15_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM25_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM35_TRANS) * PM3;
if (PM4 > 0.0)
rv += CosKronTransProb_catch(Z, FM45_TRANS) * PM4;
return rv;
}
public static double PM5_full_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
double rv;
rv = CS_Photo_Partial(Z, M5_SHELL, E);
if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_full[get_kissel_offset(Z, M5_SHELL, K_SHELL)];
if (PL1 > 0.0)
rv += PL1 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M5_SHELL, L1_SHELL)];
if (PL2 > 0.0)
rv += PL2 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M5_SHELL, L2_SHELL)];
if (PL3 > 0.0)
rv += PL3 * xrf_cross_sections_constants_full[get_kissel_offset(Z, M5_SHELL, L3_SHELL)];
if (PM1 > 0.0)
rv += CosKronTransProb_catch(Z, FM15_TRANS) * PM1;
if (PM2 > 0.0)
rv += CosKronTransProb_catch(Z, FM25_TRANS) * PM2;
if (PM3 > 0.0)
rv += CosKronTransProb_catch(Z, FM35_TRANS) * PM3;
if (PM4 > 0.0)
rv += CosKronTransProb_catch(Z, FM45_TRANS) * PM4;
return rv;
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This method is an alias for #CS_FluorLine_Kissel_Cascade, meaning that the cascade effect will be taken into account.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_FluorLine_Kissel(int Z, int line, double E) {
return CS_FluorLine_Kissel_Cascade(Z, line, E);
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This method excludes the cascade effect from the calculation!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_FluorLine_Kissel_no_Cascade(int Z, int line, double E) {
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
if (line >= KN5_LINE && line <= KB_LINE) {
/*
* K lines -> never cascade effect!
*/
return CS_Photo_Partial(Z, K_SHELL, E) * FluorYield(Z, K_SHELL) * RadRate(Z, line);
}
else if (line >= L1P5_LINE && line <= L1M1_LINE) {
/*
* L1 lines
*/
return PL1_pure_kissel(Z, E) * FluorYield(Z, L1_SHELL) * RadRate(Z, line);
}
else if (line >= L2Q1_LINE && line <= L2M1_LINE) {
/*
* L2 lines
*/
double PL1 = 0.0;
try {
PL1 = PL1_pure_kissel(Z, E);
} catch (IllegalArgumentException e) {
}
return FluorYield(Z, L2_SHELL) * RadRate(Z, line)* PL2_pure_kissel(Z, E, PL1);
}
else if (line >= L3Q1_LINE && line <= L3M1_LINE) {
/*
* L3 lines
*/
double PL1 = 0.0;
double PL2 = 0.0;
try {
PL1 = PL1_pure_kissel(Z, E);
} catch (IllegalArgumentException e) {
}
try {
PL2 = PL2_pure_kissel(Z, E, PL1);
} catch (IllegalArgumentException e) {
}
return FluorYield(Z, L3_SHELL) * RadRate(Z, line) * PL3_pure_kissel(Z, E, PL1, PL2);
}
else if (line == LA_LINE) {
double cs_L3M4 = 0.0;
double cs_L3M5 = 0.0;
try {
cs_L3M4 = CS_FluorLine_Kissel_no_Cascade(Z, L3M4_LINE, E);
} catch (IllegalArgumentException e) {
}
try {
cs_L3M5 = CS_FluorLine_Kissel_no_Cascade(Z, L3M5_LINE, E);
} catch (IllegalArgumentException e) {
}
double rv = cs_L3M4 + cs_L3M5;
if (rv == 0.0)
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
return rv;
}
else if (line == LB_LINE) {
double rv = 0.0;
for (int _line : LB_LINE_MACROS) {
try {
rv += CS_FluorLine_Kissel_no_Cascade(Z, _line, E);
} catch (IllegalArgumentException e) {
}
}
if (rv == 0.0)
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
return rv;
}
else if (line >= M1P5_LINE && line <= M1N1_LINE) {
/*
* M1 lines
*/
return PM1_pure_kissel(Z, E) * FluorYield(Z, M1_SHELL) * RadRate(Z, line);
}
else if (line>=M2P5_LINE && line<=M2N1_LINE) {
/*
* M2 lines
*/
double PM1 = 0.0;
try {
PM1 = PM1_pure_kissel(Z, E);
} catch (IllegalArgumentException e) {
}
return FluorYield(Z, M2_SHELL) * RadRate(Z,line) * PM2_pure_kissel(Z, E, PM1);
}
else if (line>=M3Q1_LINE && line<=M3N1_LINE) {
/*
* M3 lines
*/
double PM1 = 0.0;
double PM2 = 0.0;
try {
PM1 = PM1_pure_kissel(Z, E);
} catch (IllegalArgumentException e) {
}
try {
PM2 = PM2_pure_kissel(Z, E, PM1);
} catch (IllegalArgumentException e) {
}
return FluorYield(Z, M3_SHELL) * RadRate(Z,line) * PM3_pure_kissel(Z, E, PM1, PM2);
}
else if (line >= M4P5_LINE && line <= M4N1_LINE) {
/*
* M4 lines
*/
double PM1 = 0.0;
double PM2 = 0.0;
double PM3 = 0.0;
try {
PM1 = PM1_pure_kissel(Z, E);
} catch (IllegalArgumentException e) {
}
try {
PM2 = PM2_pure_kissel(Z, E, PM1);
} catch (IllegalArgumentException e) {
}
try {
PM3 = PM3_pure_kissel(Z, E, PM1, PM2);
} catch (IllegalArgumentException e) {
}
return FluorYield(Z, M4_SHELL) * RadRate(Z,line) * PM4_pure_kissel(Z, E, PM1, PM2, PM3);
}
else if (line >= M5P5_LINE && line <= M5N1_LINE) {
/*
* M5 lines
*/
double PM1 = 0.0;
double PM2 = 0.0;
double PM3 = 0.0;
double PM4 = 0.0;
try {
PM1 = PM1_pure_kissel(Z, E);
} catch (IllegalArgumentException e) {
}
try {
PM2 = PM2_pure_kissel(Z, E, PM1);
} catch (IllegalArgumentException e) {
}
try {
PM3 = PM3_pure_kissel(Z, E, PM1, PM2);
} catch (IllegalArgumentException e) {
}
try {
PM4 = PM4_pure_kissel(Z, E, PM1, PM2, PM3);
} catch (IllegalArgumentException e) {
}
return FluorYield(Z, M5_SHELL) * RadRate(Z,line) * PM5_pure_kissel(Z, E, PM1, PM2, PM3, PM4);
}
else {
throw new IllegalArgumentException(INVALID_LINE);
}
}
private static abstract class CS_FluorLine_Cascade_Body {
public final double execute(int Z, int line, double E) {
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
if (line >= KN5_LINE && line <= KB_LINE) {
/*
* K lines -> never cascade effect!
*/
return CS_Photo_Partial(Z, K_SHELL, E) * FluorYield(Z, K_SHELL) * RadRate(Z, line);
}
else if (line >= L1P5_LINE && line <= L1M1_LINE) {
/*
* L1 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
return PL1_cascade_kissel(Z, E, PK) * FluorYield(Z, L1_SHELL) * RadRate(Z, line);
}
else if (line >= L2Q1_LINE && line <= L2M1_LINE) {
/*
* L2 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
return FluorYield(Z, L2_SHELL) * RadRate(Z,line) * PL2_cascade_kissel(Z, E, PK, PL1);
}
else if (line >= L3Q1_LINE && line <= L3M1_LINE) {
/*
* L3 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
double PL2 = PL2_cascade_kissel_catch(Z, E, PK, PL1);
return FluorYield(Z, L3_SHELL) * RadRate(Z, line) * PL3_cascade_kissel(Z, E, PK, PL1, PL2);
}
else if (line == LA_LINE) {
double cs_L3M4 = 0.0;
double cs_L3M5 = 0.0;
try {
cs_L3M4 = execute(Z, L3M4_LINE, E);
} catch (IllegalArgumentException e) {
}
try {
cs_L3M5 = execute(Z, L3M5_LINE, E);
} catch (IllegalArgumentException e) {
}
double rv = cs_L3M4 + cs_L3M5;
if (rv == 0.0)
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
return rv;
}
else if (line == LB_LINE) {
double rv = 0.0;
for (int _line : LB_LINE_MACROS) {
try {
rv += execute(Z, _line, E);
} catch (IllegalArgumentException e) {
}
}
if (rv == 0.0)
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
return rv;
}
else if (line >= M1P5_LINE && line <= M1N1_LINE) {
/*
* M1 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
double PL2 = PL2_cascade_kissel_catch(Z, E, PK, PL1);
double PL3 = PL3_cascade_kissel_catch(Z, E, PK, PL1, PL2);
return FluorYield(Z, M1_SHELL) * RadRate(Z, line) * PM1_cascade_kissel(Z, E, PK, PL1, PL2, PL3);
}
else if (line>=M2P5_LINE && line<=M2N1_LINE) {
/*
* M2 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
double PL2 = PL2_cascade_kissel_catch(Z, E, PK, PL1);
double PL3 = PL3_cascade_kissel_catch(Z, E, PK, PL1, PL2);
double PM1 = PM1_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3);
return FluorYield(Z, M2_SHELL) * RadRate(Z, line) * PM2_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1);
}
else if (line>=M3Q1_LINE && line<=M3N1_LINE) {
/*
* M3 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
double PL2 = PL2_cascade_kissel_catch(Z, E, PK, PL1);
double PL3 = PL3_cascade_kissel_catch(Z, E, PK, PL1, PL2);
double PM1 = PM1_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3);
double PM2 = PM2_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3, PM1);
return FluorYield(Z, M3_SHELL) * RadRate(Z, line) * PM3_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
}
else if (line >= M4P5_LINE && line <= M4N1_LINE) {
/*
* M4 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
double PL2 = PL2_cascade_kissel_catch(Z, E, PK, PL1);
double PL3 = PL3_cascade_kissel_catch(Z, E, PK, PL1, PL2);
double PM1 = PM1_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3);
double PM2 = PM2_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3, PM1);
double PM3 = PM3_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
return FluorYield(Z, M4_SHELL) * RadRate(Z, line) * PM4_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3);
}
else if (line >= M5P5_LINE && line <= M5N1_LINE) {
/*
* M5 lines
*/
double PK = CS_Photo_Partial_catch(Z, K_SHELL, E);
double PL1 = PL1_cascade_kissel_catch(Z, E, PK);
double PL2 = PL2_cascade_kissel_catch(Z, E, PK, PL1);
double PL3 = PL3_cascade_kissel_catch(Z, E, PK, PL1, PL2);
double PM1 = PM1_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3);
double PM2 = PM2_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3, PM1);
double PM3 = PM3_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
double PM4 = PM4_cascade_kissel_catch(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3);
return FluorYield(Z, M5_SHELL) * RadRate(Z, line) * PM5_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3, PM4);
}
else {
throw new IllegalArgumentException(INVALID_LINE);
}
}
public abstract double PL1_cascade_kissel(int Z, double E, double PK);
public abstract double PL2_cascade_kissel(int Z, double E, double PK, double PL1);
public abstract double PL3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2);
public abstract double PM1_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3);
public abstract double PM2_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1);
public abstract double PM3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2);
public abstract double PM4_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3);
public abstract double PM5_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4);
public double PL1_cascade_kissel_catch(int Z, double E, double PK) {
try {
return PL1_cascade_kissel(Z, E, PK);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PL2_cascade_kissel_catch(int Z, double E, double PK, double PL1) {
try {
return PL2_cascade_kissel(Z, E, PK, PL1);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PL3_cascade_kissel_catch(int Z, double E, double PK, double PL1, double PL2) {
try {
return PL3_cascade_kissel(Z, E, PK, PL1, PL2);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PM1_cascade_kissel_catch(int Z, double E, double PK, double PL1, double PL2, double PL3) {
try {
return PM1_cascade_kissel(Z, E, PK, PL1, PL2, PL3);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PM2_cascade_kissel_catch(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
try {
return PM2_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PM3_cascade_kissel_catch(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
try {
return PM3_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PM4_cascade_kissel_catch(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
try {
return PM4_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
public double PM5_cascade_kissel_catch(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
try {
return PM5_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3, PM4);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
}
private static final class CS_FluorLine_Kissel_Radiative_CascadeImpl extends CS_FluorLine_Cascade_Body {
public double PL1_cascade_kissel(int Z, double E, double PK) {
return PL1_rad_cascade_kissel(Z, E, PK);
}
public double PL2_cascade_kissel(int Z, double E, double PK, double PL1) {
return PL2_rad_cascade_kissel(Z, E, PK, PL1);
}
public double PL3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2) {
return PL3_rad_cascade_kissel(Z, E, PK, PL1, PL2);
}
public double PM1_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3) {
return PM1_rad_cascade_kissel(Z, E, PK, PL1, PL2, PL3);
}
public double PM2_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
return PM2_rad_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1);
}
public double PM3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
return PM3_rad_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
}
public double PM4_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
return PM4_rad_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3);
}
public double PM5_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
return PM5_rad_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3, PM4);
}
}
private static final class CS_FluorLine_Kissel_Nonradiative_CascadeImpl extends CS_FluorLine_Cascade_Body {
public double PL1_cascade_kissel(int Z, double E, double PK) {
return PL1_auger_cascade_kissel(Z, E, PK);
}
public double PL2_cascade_kissel(int Z, double E, double PK, double PL1) {
return PL2_auger_cascade_kissel(Z, E, PK, PL1);
}
public double PL3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2) {
return PL3_auger_cascade_kissel(Z, E, PK, PL1, PL2);
}
public double PM1_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3) {
return PM1_auger_cascade_kissel(Z, E, PK, PL1, PL2, PL3);
}
public double PM2_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
return PM2_auger_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1);
}
public double PM3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
return PM3_auger_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
}
public double PM4_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
return PM4_auger_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3);
}
public double PM5_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
return PM5_auger_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3, PM4);
}
}
private static final class CS_FluorLine_Kissel_CascadeImpl extends CS_FluorLine_Cascade_Body {
public double PL1_cascade_kissel(int Z, double E, double PK) {
return PL1_full_cascade_kissel(Z, E, PK);
}
public double PL2_cascade_kissel(int Z, double E, double PK, double PL1) {
return PL2_full_cascade_kissel(Z, E, PK, PL1);
}
public double PL3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2) {
return PL3_full_cascade_kissel(Z, E, PK, PL1, PL2);
}
public double PM1_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3) {
return PM1_full_cascade_kissel(Z, E, PK, PL1, PL2, PL3);
}
public double PM2_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1) {
return PM2_full_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1);
}
public double PM3_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2) {
return PM3_full_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2);
}
public double PM4_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3) {
return PM4_full_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3);
}
public double PM5_cascade_kissel(int Z, double E, double PK, double PL1, double PL2, double PL3, double PM1, double PM2, double PM3, double PM4) {
return PM5_full_cascade_kissel(Z, E, PK, PL1, PL2, PL3, PM1, PM2, PM3, PM4);
}
}
private static final CS_FluorLine_Cascade_Body CS_FLUORLINE_KISSEL_RADIATIVE = new CS_FluorLine_Kissel_Radiative_CascadeImpl();
private static final CS_FluorLine_Cascade_Body CS_FLUORLINE_KISSEL_NONRADIATIVE = new CS_FluorLine_Kissel_Nonradiative_CascadeImpl();
private static final CS_FluorLine_Cascade_Body CS_FLUORLINE_KISSEL_FULL = new CS_FluorLine_Kissel_CascadeImpl();
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This implementation includes the radiative cascade contributions but excludes the non-radiative cascade effect!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_FluorLine_Kissel_Radiative_Cascade(int Z, int line, double E) {
return CS_FLUORLINE_KISSEL_RADIATIVE.execute(Z, line, E);
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This implementation includes the non-radiative cascade contributions but excludes the radiative cascade effect!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_FluorLine_Kissel_Nonradiative_Cascade(int Z, int line, double E) {
return CS_FLUORLINE_KISSEL_NONRADIATIVE.execute(Z, line, E);
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This implementation includes both non-radiative and radiative cascade effect contributions!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_FluorLine_Kissel_Cascade(int Z, int line, double E) {
return CS_FLUORLINE_KISSEL_FULL.execute(Z, line, E);
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This implementation includes both non-radiative and radiative cascade effect contributions!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in barn/atom.
*/
public static double CSb_FluorLine_Kissel_Cascade(int Z, int line, double E) {
return CS_FluorLine_Kissel_Cascade(Z, line, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This implementation includes the non-radiative cascade contributions but excludes the radiative cascade effect!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in barn/atom.
*/
public static double CSb_FluorLine_Kissel_Nonradiative_Cascade(int Z, int line, double E) {
return CS_FluorLine_Kissel_Nonradiative_Cascade(Z, line, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This implementation includes the radiative cascade contributions but excludes the non-radiative cascade effect!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in barn/atom.
*/
public static double CSb_FluorLine_Kissel_Radiative_Cascade(int Z, int line, double E) {
return CS_FluorLine_Kissel_Radiative_Cascade(Z, line, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This method excludes the cascade effect from the calculation!
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in barn/atom.
*/
public static double CSb_FluorLine_Kissel_no_Cascade(int Z, int line, double E) {
return CS_FluorLine_Kissel_no_Cascade(Z, line, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
private static double Jump_from_L1(int Z, double E) {
double Factor = 1.0, JumpL1, JumpK;
double edgeK = EdgeEnergy_catch(Z, K_SHELL);
double edgeL1 = EdgeEnergy_catch(Z, L1_SHELL);
double yield;
if (E > edgeK && edgeK > 0.0) {
JumpK = JumpFactor_catch(Z, K_SHELL);
if (JumpK == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
Factor /= JumpK ;
}
if (E > edgeL1 && edgeL1 > 0.0) {
JumpL1 = JumpFactor_catch(Z, L1_SHELL);
if (JumpL1 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
yield = FluorYield_catch(Z, L1_SHELL);
if (yield == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_FLUOR_YIELD);
}
Factor *= ((JumpL1 - 1) / JumpL1) * yield;
}
else {
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
}
return Factor;
}
private static double Jump_from_L2(int Z, double E) {
double Factor = 1.0, JumpL1, JumpL2, JumpK;
double TaoL1 = 0.0, TaoL2 = 0.0;
double edgeK = EdgeEnergy_catch(Z, K_SHELL);
double edgeL1 = EdgeEnergy_catch(Z, L1_SHELL);
double edgeL2 = EdgeEnergy_catch(Z, L2_SHELL);
double ck_L12, yield;
if (E > edgeK && edgeK > 0.0) {
JumpK = JumpFactor_catch(Z, K_SHELL);
if (JumpK == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
Factor /= JumpK ;
}
JumpL1 = JumpFactor_catch(Z, L1_SHELL);
JumpL2 = JumpFactor_catch(Z, L2_SHELL);
if (E > edgeL1 && edgeL1 > 0.0) {
if (JumpL1 == 0.0 || JumpL2 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
TaoL1 = (JumpL1 - 1) / JumpL1 ;
TaoL2 = (JumpL2 - 1) / (JumpL2 * JumpL1) ;
}
else if (E > edgeL2 && edgeL2 > 0.0) {
if (JumpL2 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
TaoL1 = 0.0;
TaoL2 = (JumpL2 - 1) / JumpL2;
}
else {
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
}
ck_L12 = CosKronTransProb_catch(Z, FL12_TRANS);
if (TaoL1 > 0 && ck_L12 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_CK);
}
yield = FluorYield_catch(Z, L2_SHELL);
if (yield == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_FLUOR_YIELD);
}
Factor *= (TaoL2 + TaoL1 * ck_L12) * yield;
return Factor;
}
private static double Jump_from_L3(int Z, double E) {
double Factor = 1.0, JumpL1, JumpL2, JumpL3, JumpK;
double TaoL1 = 0.0, TaoL2 = 0.0, TaoL3 = 0.0;
double edgeK = EdgeEnergy_catch(Z, K_SHELL);
double edgeL1 = EdgeEnergy_catch(Z, L1_SHELL);
double edgeL2 = EdgeEnergy_catch(Z, L2_SHELL);
double edgeL3 = EdgeEnergy_catch(Z, L3_SHELL);
double ck_L23, ck_L13, ck_LP13, ck_L12;
double yield;
if (E > edgeK && edgeK > 0.0) {
JumpK = JumpFactor_catch(Z, K_SHELL);
if (JumpK == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
Factor /= JumpK ;
}
JumpL1 = JumpFactor_catch(Z, L1_SHELL);
JumpL2 = JumpFactor_catch(Z, L2_SHELL);
JumpL3 = JumpFactor_catch(Z, L3_SHELL);
if (E > edgeL1 && edgeL1 > 0.0) {
if (JumpL1 == 0.0 || JumpL2 == 0.0 || JumpL3 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
TaoL1 = (JumpL1 - 1) / JumpL1 ;
TaoL2 = (JumpL2 - 1) / (JumpL2 * JumpL1) ;
TaoL3 = (JumpL3 - 1) / (JumpL3 * JumpL2 * JumpL1) ;
}
else if (E > edgeL2 && edgeL2 > 0.0) {
if (JumpL2 == 0.0 || JumpL3 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
TaoL1 = 0.0;
TaoL2 = (JumpL2 - 1) / (JumpL2) ;
TaoL3 = (JumpL3 - 1) / (JumpL3 * JumpL2) ;
}
else if (E > edgeL3 && edgeL3 > 0.0) {
TaoL1 = 0.0;
TaoL2 = 0.0;
if (JumpL3 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_JUMP_FACTOR);
}
TaoL3 = (JumpL3 - 1) / JumpL3 ;
}
else {
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
}
ck_L23 = CosKronTransProb_catch(Z, FL23_TRANS);
ck_L13 = CosKronTransProb_catch(Z, FL13_TRANS);
ck_LP13 = CosKronTransProb_catch(Z, FLP13_TRANS);
ck_L12 = CosKronTransProb_catch(Z, FL12_TRANS);
if (TaoL2 > 0.0 && ck_L23 == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_CK);
}
if (TaoL1 > 0.0 && (ck_L13 + ck_LP13 == 0.0 || ck_L12 == 0.0 || ck_L23 == 0.0)) {
throw new IllegalArgumentException(UNAVAILABLE_CK);
}
Factor *= TaoL3 + TaoL2 * ck_L23 + TaoL1 * (ck_L13 + ck_LP13 + ck_L12 * ck_L23);
yield = FluorYield_catch(Z, L3_SHELL);
if (yield == 0.0) {
throw new IllegalArgumentException(UNAVAILABLE_FLUOR_YIELD);
}
Factor *= yield;
return Factor;
}
private static double Jump_from_L1_catch(int Z, double E) {
try {
return Jump_from_L1(Z, E);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double Jump_from_L2_catch(int Z, double E) {
try {
return Jump_from_L2(Z, E);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
private static double Jump_from_L3_catch(int Z, double E) {
try {
return Jump_from_L3(Z, E);
} catch (IllegalArgumentException e) {
return 0.0;
}
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This method used the jump factor approximation to calculate the photoionization cross section,
* which is only support for K- and L-lines.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_FluorLine(int Z, int line, double E) {
double JumpK;
double cs_line, Factor = 1.0;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
if (line >= KN5_LINE && line <= KB_LINE) {
double edgeK = EdgeEnergy(Z, K_SHELL);
double cs, rr;
if (E > edgeK) {
double yield;
JumpK = JumpFactor(Z, K_SHELL);
yield = FluorYield(Z, K_SHELL);
Factor = ((JumpK - 1)/JumpK) * yield;
}
else {
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
}
cs = CS_Photo(Z, E);
rr = RadRate(Z, line);
cs_line = cs * Factor * rr;
}
else if ((line <= L1L2_LINE && line >= L3Q1_LINE) || line == LA_LINE) {
double cs, rr;
cs = CS_Photo(Z, E);
rr = RadRate(Z, line);
if (line >= L1P5_LINE && line <= L1L2_LINE) {
Factor = Jump_from_L1(Z, E);
}
else if (line >= L2Q1_LINE && line <= L2L3_LINE) {
Factor = Jump_from_L2(Z, E);
}
/*
* it's safe to use LA_LINE since it's only composed of 2 L3-lines
*/
else if ((line >= L3Q1_LINE && line <= L3M1_LINE) || line == LA_LINE) {
Factor = Jump_from_L3(Z, E);
}
cs_line = cs * Factor * rr;
}
else if (line == LB_LINE) {
/*
* b1->b17
*/
double cs;
cs_line =
Jump_from_L2_catch(Z, E) * (RadRate_catch(Z, L2M4_LINE) + RadRate_catch(Z, L2M3_LINE)) +
Jump_from_L3_catch(Z, E) * (RadRate_catch(Z, L3N5_LINE) + RadRate_catch(Z, L3O4_LINE) + RadRate_catch(Z, L3O5_LINE) + RadRate_catch(Z, L3O45_LINE) + RadRate_catch(Z, L3N1_LINE) + RadRate_catch(Z, L3O1_LINE) + RadRate_catch(Z, L3N6_LINE) + RadRate_catch(Z, L3N7_LINE) + RadRate_catch(Z, L3N4_LINE)) +
Jump_from_L1_catch(Z, E) * (RadRate_catch(Z, L1M3_LINE) + RadRate_catch(Z, L1M2_LINE) + RadRate_catch(Z, L1M5_LINE) + RadRate_catch(Z, L1M4_LINE));
if (cs_line == 0.0) {
throw new IllegalArgumentException(TOO_LOW_EXCITATION_ENERGY);
}
cs = CS_Photo(Z, E);
cs_line *= cs;
}
else {
throw new IllegalArgumentException(INVALID_LINE);
}
return cs_line;
}
private static double LineEnergyComposed(int Z, int line1, int line2) {
double line_tmp1 = LineEnergy_catch(Z, line1);
double line_tmp2 = LineEnergy_catch(Z, line2);
double rate_tmp1 = RadRate_catch(Z, line1);
double rate_tmp2 = RadRate_catch(Z, line2);
double rv = line_tmp1 * rate_tmp1 + line_tmp2 * rate_tmp2;
if (rv > 0.0) {
return rv/(rate_tmp1 + rate_tmp2);
}
else if ((line_tmp1 + line_tmp2) > 0.0) {
return (line_tmp1 + line_tmp2) / 2.0; /* in case of both radiative rates missing, use the average of both line energies. */
}
throw new IllegalArgumentException(INVALID_LINE);
}
/**
* For a given atomic number, line, returns the corresponding XRF line energy
*
* The line energies are equal to the difference of the absorption edge energies of the two shells
* that are involved in the transition.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @return The XRF line energy, expressed in keV.
*/
public static double LineEnergy(int Z, int line) {
double line_energy;
double lE, rr;
double tmp = 0.0, tmp1 = 0.0, tmp2 = 0.0;
int i;
int temp_line;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (line == KA_LINE || line == KB_LINE) {
if (line == KA_LINE) {
for (i = KL1; i <= KL3 ; i++) {
lE = LineEnergy_arr[Z * LINENUM + i];
rr = RadRate_arr[Z * LINENUM + i];
tmp1 += rr;
tmp += lE * rr;
}
}
else if (line == KB_LINE) {
for (i = KM1; i < KP5; i++) {
lE = LineEnergy_arr[Z * LINENUM + i];
rr = RadRate_arr[Z * LINENUM + i];
tmp1 += rr;
tmp += lE * rr;
}
}
if (tmp1 > 0) {
return tmp / tmp1;
}
else {
throw new IllegalArgumentException(INVALID_LINE);
}
}
if (line == LA_LINE) {
return LineEnergyComposed(Z, L3M4_LINE, L3M5_LINE);
}
else if (line == LB_LINE) {
tmp2 = 0.0;
tmp = 0.0;
for (LineShellPair pair : lb_pairs) {
tmp1 = CS_FluorLine_catch(Z, pair.line, EdgeEnergy_catch(Z, pair.shell) + 0.1);
tmp2 += tmp1;
tmp += LineEnergy_catch(Z, pair.line) * tmp1;
}
if (tmp2 > 0) {
return tmp / tmp2;
}
else {
throw new IllegalArgumentException(INVALID_LINE);
}
}
/*
* special cases for composed lines
*/
else if (line == L1N67_LINE) {
return LineEnergyComposed(Z, L1N6_LINE, L1N7_LINE);
}
else if (line == L1O45_LINE) {
return LineEnergyComposed(Z, L1O4_LINE, L1O5_LINE);
}
else if (line == L1P23_LINE) {
return LineEnergyComposed(Z, L1P2_LINE, L1P3_LINE);
}
else if (line == L2P23_LINE) {
return LineEnergyComposed(Z, L2P2_LINE, L2P3_LINE);
}
else if (line == L3O45_LINE) {
return LineEnergyComposed(Z, L3O4_LINE, L3O5_LINE);
}
else if (line == L3P23_LINE) {
return LineEnergyComposed(Z, L3O4_LINE, L3O5_LINE);
}
else if (line == L3P45_LINE) {
return LineEnergyComposed(Z, L3P4_LINE, L3P5_LINE);
}
/*
* KO_LINE and KP_LINE only have entries in the radrate database, not in the fluor_lines one.
* So to get the line energies, we should map to a macro that will work as long as there is an appropriate
* line energy in the fluor_lines database.
*/
else if (line == KO_LINE) {
line = KO1_LINE;
}
else if (line == KP_LINE) {
line = KP1_LINE;
}
line = -line - 1;
if (line < 0 || line >= LINENUM) {
throw new IllegalArgumentException(UNKNOWN_LINE);
}
line_energy = LineEnergy_arr[Z * LINENUM + line];
if (line_energy <= 0.0) {
throw new IllegalArgumentException(INVALID_LINE);
}
return line_energy;
}
/**
* For a given atomic number and energy, returns the corresponding total attenuation cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Total(int Z, double E) {
return CS_Total(Z, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number and energy, returns the corresponding photoionization cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Photo(int Z, double E) {
return CS_Photo(Z, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number and energy, returns the corresponding Rayleigh scattering cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Rayl(int Z, double E) {
return CS_Rayl(Z, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number and energy, returns the corresponding Compton scattering cross section.
*
* @param Z The atomic number
* @param E The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Compt(int Z, double E) {
return CS_Compt(Z, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, shell and excitation energy, returns the corresponding XRF production cross section.
*
* This method used the jump factor approximation to calculate the photoionization cross section,
* which is only support for K- and L-lines.
*
* @param Z The atomic number
* @param line A macro identifying the line, such as #KL3_LINE or #LA1_LINE.
* @param E The energy of the photon, expressed in keV.
* @return The XRF production cross section, expressed in barn/atom.
*/
public static double CSb_FluorLine(int Z, int line, double E) {
return CS_FluorLine(Z, line, E) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, energy and scattering angle, returns the Rayleigh differential cross section.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in barn/atom/sterad
*/
public static double DCSb_Rayl(int Z, double E, double theta) {
return DCS_Rayl(Z, E, theta) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, energy and scattering angle, returns the Compton differential cross section.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in barn/atom/sterad
*/
public static double DCSb_Compt(int Z, double E, double theta) {
return DCS_Compt(Z, E, theta) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, energy and scattering angles, returns the Rayleigh differential cross section for a polarized beam.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in barn/atom/sterad
*/
public static double DCSPb_Rayl(int Z, double E, double theta, double phi) {
return DCSP_Rayl(Z, E, theta, phi) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number, energy and scattering angles, returns the Compton differential cross section for a polarized beam.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in barn/atom/sterad
*/
public static double DCSPb_Compt(int Z, double E, double theta, double phi) {
return DCSP_Compt(Z, E, theta, phi) * AtomicWeight_arr[Z] / AVOGNUM;
}
/**
* For a given atomic number and energy, returns the anomalous scattering factor Δf′.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @return The anomalous scattering factor Δf′
*/
public static double Fi(int Z, double E) {
double fi;
if (Z < 1 || Z > ZMAX || NE_Fi_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
fi = splint(E_Fi_arr[Z], Fi_arr[Z], Fi_arr2[Z], NE_Fii_arr[Z], E);
return fi;
}
/**
* For a given atomic number and energy, returns the anomalous scattering factor Δf″.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @return The anomalous scattering factor Δf″
*/
public static double Fii(int Z, double E) {
double fii;
if (Z < 1 || Z > ZMAX || NE_Fii_arr[Z] < 0) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
fii = splint(E_Fii_arr[Z], Fii_arr[Z], Fii_arr2[Z], NE_Fii_arr[Z], E);
return fii;
}
/**
* For a given atomic number, energy and scattering angles, returns the Rayleigh differential cross section for a polarized beam.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in cm<sup>2</sup>/g/sterad.
*/
public static double DCSP_Rayl(int Z, double E, double theta, double phi) {
double F, q;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
q = MomentTransf(E , theta);
F = FF_Rayl(Z, q);
return AVOGNUM / AtomicWeight(Z) * F*F * DCSP_Thoms(theta, phi);
}
/**
* For a given atomic number, energy and scattering angles, returns the Compton differential cross section for a polarized beam.
*
* @param Z The atomic number
* @param E The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in cm<sup>2</sup>/g/sterad.
*/
public static double DCSP_Compt(int Z, double E, double theta, double phi) {
double S, q;
if (Z < 1 || Z > ZMAX) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
q = MomentTransf(E, theta);
S = SF_Compt(Z, q);
return AVOGNUM / AtomicWeight(Z) * S * DCSP_KN(E, theta, phi);
}
/**
* For a given energy and scattering angles, returns the Klein-Nishina differential cross section for a polarized beam.
*
* @param E The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Klein-Nishina differential cross section, expressed in cm<sup>2</sup>/g/sterad.
*/
public static double DCSP_KN(double E, double theta, double phi) {
double k0_k, k_k0, k_k0_2, cos_th, sin_th, cos_phi;
if (E <= 0.0) {
throw new IllegalArgumentException(NEGATIVE_ENERGY);
}
cos_th = Math.cos(theta);
sin_th = Math.sin(theta);
cos_phi = Math.cos(phi);
k0_k = 1.0 + (1.0 - cos_th) * E / MEC2 ;
k_k0 = 1.0 / k0_k;
k_k0_2 = k_k0 * k_k0;
return (RE2/2.) * k_k0_2 * (k_k0 + k0_k - 2 * sin_th * sin_th
* cos_phi * cos_phi);
}
/**
* For the given scattering angles, returns the @see <a href="https://en.wikipedia.org/wiki/Thomson_scattering">Thomson differential cross section for a polarized beam</a>
*
* @param theta The scattering angle, between indicent and observed photon or wave.
* @param phi The azimuthal scattering angle, between indicent and observed photon or wave.
* @return The Thomson differential cross section, expressed in barn
*/
public static double DCSP_Thoms(double theta, double phi) {
double sin_th, cos_phi ;
sin_th = Math.sin(theta) ;
cos_phi = Math.cos(phi);
return RE2 * (1.0 - sin_th * sin_th * cos_phi * cos_phi);
}
/**
* For the given atomic number, return the corresponding chemical symbol
*
* @param Z The atomic number
* @return The chemical symbol
*/
public static String AtomicNumberToSymbol(int Z) {
if (Z < 1 || Z >= MendelArray.length) {
throw new IllegalArgumentException(Z_OUT_OF_RANGE);
}
return MendelArray[Z];
}
/**
* For the given chemical symbol, return the corresponding atomic number
*
* @param symbol The chemical symbol
* @return The atomic number
*/
public static int SymbolToAtomicNumber(String symbol) {
int i;
if (symbol == null)
throw new IllegalArgumentException("Invalid chemical symbol");
for (i=1 ; i < MendelArray.length ; i++) {
if (symbol.equals(MendelArray[i])) {
return i;
}
}
throw new IllegalArgumentException("Invalid chemical symbol");
}
/**
* Parse the given chemical compound, and return its information as a @see compoundData instance.
*
* @param compoundString the chemical compound
* @return A @see compoundData instance
*/
public static compoundData CompoundParser(String compoundString) {
return new compoundData(compoundString);
}
private static compoundDataBase parseCompoundFull(String compound) {
try {
return CompoundParser(compound);
} catch (IllegalArgumentException e) {
try {
return GetCompoundDataNISTByName(compound);
} catch (IllegalArgumentException e2) {
throw new IllegalArgumentException(UNKNOWN_COMPOUND);
}
}
}
@FunctionalInterface
private static interface CS_Body_Energy {
public default double execute(String compound, double energy) {
compoundDataBase cd = parseCompoundFull(compound);
double rv = 0.0;
for (int i = 0 ; i < cd.getNElements() ; i++)
rv += cd.getMassFractions()[i] * CS_base(cd.getElements()[i], energy);
return rv;
}
public abstract double CS_base(int Z, double energy);
}
@FunctionalInterface
private static interface CS_Body_Energy_Theta {
public default double execute(String compound, double energy, double theta) {
compoundDataBase cd = parseCompoundFull(compound);
double rv = 0.0;
for (int i = 0 ; i < cd.getNElements() ; i++)
rv += cd.getMassFractions()[i] * CS_base(cd.getElements()[i], energy, theta);
return rv;
}
public abstract double CS_base(int Z, double energy, double theta);
}
@FunctionalInterface
private static interface CS_Body_Energy_Theta_Phi {
public default double execute(String compound, double energy, double theta, double phi) {
compoundDataBase cd = parseCompoundFull(compound);
double rv = 0.0;
for (int i = 0 ; i < cd.getNElements() ; i++)
rv += cd.getMassFractions()[i] * CS_base(cd.getElements()[i], energy, theta, phi);
return rv;
}
public abstract double CS_base(int Z, double energy, double theta, double phi);
}
private static final CS_Body_Energy CS_TOTAL_CP = Xraylib::CS_Total;
private static final CS_Body_Energy CS_TOTAL_KISSEL_CP = Xraylib::CS_Total_Kissel;
private static final CS_Body_Energy CS_RAYL_CP = Xraylib::CS_Rayl;
private static final CS_Body_Energy CS_COMPT_CP = Xraylib::CS_Compt;
private static final CS_Body_Energy CS_PHOTO_CP = Xraylib::CS_Photo;
private static final CS_Body_Energy CS_PHOTO_TOTAL_CP = Xraylib::CS_Photo_Total;
private static final CS_Body_Energy CS_ENERGY_CP = Xraylib::CS_Energy;
private static final CS_Body_Energy CSB_TOTAL_CP = Xraylib::CSb_Total;
private static final CS_Body_Energy CSB_TOTAL_KISSEL_CP = Xraylib::CSb_Total_Kissel;
private static final CS_Body_Energy CSB_RAYL_CP = Xraylib::CSb_Rayl;
private static final CS_Body_Energy CSB_COMPT_CP = Xraylib::CSb_Compt;
private static final CS_Body_Energy CSB_PHOTO_CP = Xraylib::CSb_Photo;
private static final CS_Body_Energy CSB_PHOTO_TOTAL_CP = Xraylib::CSb_Photo_Total;
private static final CS_Body_Energy_Theta DCS_RAYL_CP = Xraylib::DCS_Rayl;
private static final CS_Body_Energy_Theta DCS_COMPT_CP = Xraylib::DCS_Compt;
private static final CS_Body_Energy_Theta DCSB_RAYL_CP = Xraylib::DCSb_Rayl;
private static final CS_Body_Energy_Theta DCSB_COMPT_CP = Xraylib::DCSb_Compt;
private static final CS_Body_Energy_Theta_Phi DCSP_RAYL_CP = Xraylib::DCSP_Rayl;
private static final CS_Body_Energy_Theta_Phi DCSP_COMPT_CP = Xraylib::DCSP_Compt;
private static final CS_Body_Energy_Theta_Phi DCSPB_RAYL_CP = Xraylib::DCSPb_Rayl;
private static final CS_Body_Energy_Theta_Phi DCSPB_COMPT_CP = Xraylib::DCSPb_Compt;
/**
* For a given compound and energy, returns the corresponding total attenuation cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Total_CP(String compound, double energy) {
return CS_TOTAL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding total attenuation cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Total_Kissel_CP(String compound, double energy) {
return CS_TOTAL_KISSEL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding Rayleigh scattering cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Rayl_CP(String compound, double energy) {
return CS_RAYL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding Compton scattering cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Compt_CP(String compound, double energy) {
return CS_COMPT_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding photoionization cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Photo_CP(String compound, double energy) {
return CS_PHOTO_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding photoionization cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Photo_Total_CP(String compound, double energy) {
return CS_PHOTO_TOTAL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding total attenuation cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Total_CP(String compound, double energy) {
return CSB_TOTAL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding total attenuation cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Total_Kissel_CP(String compound, double energy) {
return CSB_TOTAL_KISSEL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding Rayleigh scattering cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Rayl_CP(String compound, double energy) {
return CSB_RAYL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding Compton scattering cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Compt_CP(String compound, double energy) {
return CSB_COMPT_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding photoionization cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Photo_CP(String compound, double energy) {
return CSB_PHOTO_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding photoionization cross section.
*
* This method used the Kissel database to calculate the photoionization cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in barn/atom.
*/
public static double CSb_Photo_Total_CP(String compound, double energy) {
return CSB_PHOTO_TOTAL_CP.execute(compound, energy);
}
/**
* For a given compound and energy, returns the corresponding mass-energy absorption cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The energy of the photon, expressed in keV.
* @return The cross section, expressed in cm<sup>2</sup>/g.
*/
public static double CS_Energy_CP(String compound, double energy) {
return CS_ENERGY_CP.execute(compound, energy);
}
/**
* For a given compound, energy and scattering angle, returns the Rayleigh differential cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in cm<sup>2</sup>/g/sterad
*/
public static double DCS_Rayl_CP(String compound, double energy, double theta) {
return DCS_RAYL_CP.execute(compound, energy, theta);
}
/**
* For a given compound, energy and scattering angle, returns the Compton differential cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in cm<sup>2</sup>/g/sterad
*/
public static double DCS_Compt_CP(String compound, double energy, double theta) {
return DCS_COMPT_CP.execute(compound, energy, theta);
}
/**
* For a given compound, energy and scattering angle, returns the Rayleigh differential cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in barn/atom/sterad
*/
public static double DCSb_Rayl_CP(String compound, double energy, double theta) {
return DCSB_RAYL_CP.execute(compound, energy, theta);
}
/**
* For a given compound, energy and scattering angle, returns the Compton differential cross section.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in barn/atom/sterad
*/
public static double DCSb_Compt_CP(String compound, double energy, double theta) {
return DCSB_COMPT_CP.execute(compound, energy, theta);
}
/**
* For a given compound, energy and scattering angles, returns the Rayleigh differential cross section for a polarized beam.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in cm<sup>2</sup>/g/sterad.
*/
public static double DCSP_Rayl_CP(String compound, double energy, double theta, double phi) {
return DCSP_RAYL_CP.execute(compound, energy, theta, phi);
}
/**
* For a given compound, energy and scattering angles, returns the Compton differential cross section for a polarized beam.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in cm<sup>2</sup>/g/sterad.
*/
public static double DCSP_Compt_CP(String compound, double energy, double theta, double phi) {
return DCSP_COMPT_CP.execute(compound, energy, theta, phi);
}
/**
* For a given compound, energy and scattering angles, returns the Rayleigh differential cross section for a polarized beam.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Rayleigh differential cross section, expressed in barn/atom/sterad.
*/
public static double DCSPb_Rayl_CP(String compound, double energy, double theta, double phi) {
return DCSPB_RAYL_CP.execute(compound, energy, theta, phi);
}
/**
* For a given compound, energy and scattering angles, returns the Compton differential cross section for a polarized beam.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param energy The photon energy, expressed in keV
* @param theta The polar scattering angle, between indicent and observed photon.
* @param phi The azimuthal scattering angle, between indicent and observed photon.
* @return The Compton differential cross section, expressed in barn/atom/sterad.
*/
public static double DCSPb_Compt_CP(String compound, double energy, double theta, double phi) {
return DCSPB_COMPT_CP.execute(compound, energy, theta, phi);
}
/**
* For a given compound name, return the corresponding @see compoundDataNIST instance, if found in the NIST database
*
* @param compoundString a valid NIST database compound name
* @return an instance of @see compoundDataNIST
*/
public static compoundDataNIST GetCompoundDataNISTByName(String compoundString) {
for (compoundDataNIST cdn : compoundDataNISTList) {
if (cdn.name.equals(compoundString))
return new compoundDataNIST(cdn);
}
throw new IllegalArgumentException(String.format("%s was not found in the NIST compound database", compoundString));
}
/**
* For a given index, return the corresponding @see compoundDataNIST instance, if found in the NIST database
*
* @param compoundIndex the index at which the requested compound is stored the database
* @return an instance of @see compoundDataNIST
*/
public static compoundDataNIST GetCompoundDataNISTByIndex(int compoundIndex) {
if (compoundIndex < 0 || compoundIndex >= compoundDataNISTList.length) {
throw new IllegalArgumentException(String.format("%d is out of the range of indices covered by the NIST compound database", compoundIndex));
}
return new compoundDataNIST(compoundDataNISTList[compoundIndex]);
}
/**
* @return a list of all compound names present in the NIST database
*/
public static String[] GetCompoundDataNISTList() {
return Arrays.stream(compoundDataNISTList).map(compound -> compound.name).toArray(String[]::new);
}
/**
* For a given radionuclide name, return the corresponding @see radioNuclideData instance, if found in the database
*
* @param radioNuclideString a valid radionuclide name
* @return an instance of @see radioNuclideData
*/
public static radioNuclideData GetRadioNuclideDataByName(String radioNuclideString) {
for (radioNuclideData rnd : nuclideDataList) {
if (rnd.name.equals(radioNuclideString))
return new radioNuclideData(rnd);
}
throw new IllegalArgumentException(String.format("%s was not found in the radionuclide database", radioNuclideString));
}
/**
* For a given index, return the corresponding @see radioNuclideData instance, if found in the database
*
* @param radioNuclideIndex the index at which the requested radionuclide is stored the database
* @return an instance of @see radioNuclideData
*/
public static radioNuclideData GetRadioNuclideDataByIndex(int radioNuclideIndex) {
if (radioNuclideIndex < 0 || radioNuclideIndex >= nuclideDataList.length) {
throw new IllegalArgumentException(String.format("%d is out of the range of indices covered by the radionuclide database", radioNuclideIndex));
}
return new radioNuclideData(nuclideDataList[radioNuclideIndex]);
}
/**
* @return a list of all radionuclide names present in the database
*/
public static String[] GetRadioNuclideDataList() {
return Arrays.stream(nuclideDataList).map(nuclide -> nuclide.name).toArray(String[]::new);
}
private static final double KD = 4.15179082788e-4;
/**
* For a given compound, energy and density, returns the real part of the refractive index.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param E The photon energy, expressed in keV
* @param density The density, expressed in g/cm<sup>3</sup>. If the compound is found in the NIST database, this argument will only be used if it is greater than zero, otherwise the density from the database will used instead.
* @return The real part of the refractive index
*/
public static double Refractive_Index_Re(String compound, double E, double density) {
compoundDataBase cd = parseCompoundFull(compound);
double delta = 0.0;
if (E <= 0.0)
throw new IllegalArgumentException(NEGATIVE_ENERGY);
else if (density <= 0.0) {
if (compoundDataNIST.class.isInstance(cd)) {
density = compoundDataNIST.class.cast(cd).density;
} else {
throw new IllegalArgumentException(NEGATIVE_DENSITY);
}
}
for (int i = 0 ; i < cd.getNElements() ; i++)
delta += cd.getMassFractions()[i] * KD * (cd.getElements()[i] + Fi(cd.getElements()[i], E)) / AtomicWeight(cd.getElements()[i]) / E / E;
return 1.0 - delta * density;
}
/**
* For a given compound, energy and density, returns the imaginary part of the refractive index.
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param E The photon energy, expressed in keV
* @param density The density, expressed in g/cm<sup>3</sup>. If the compound is found in the NIST database, this argument will only be used if it is greater than zero, otherwise the density from the database will used instead.
* @return The imaginary part of the refractive index
*/
public static double Refractive_Index_Im(String compound, double E, double density) {
compoundDataBase cd = parseCompoundFull(compound);
double rv = 0.0;
if (E <= 0.0)
throw new IllegalArgumentException(NEGATIVE_ENERGY);
else if (density <= 0.0) {
if (compoundDataNIST.class.isInstance(cd)) {
density = compoundDataNIST.class.cast(cd).density;
} else {
throw new IllegalArgumentException(NEGATIVE_DENSITY);
}
}
for (int i = 0 ; i < cd.getNElements() ; i++)
rv += CS_Total(cd.getElements()[i], E) * cd.getMassFractions()[i];
return rv * density * 9.8663479e-9 / E;
}
/**
* For a given compound, energy and density, returns the refractive index as a complex number .
*
* @param compound Either a valid chemical formula, or a compound from the NIST database (see #GetCompoundDataNISTList for a list)
* @param E The photon energy, expressed in keV
* @param density The density, expressed in g/cm<sup>3</sup>. If the compound is found in the NIST database, this argument will only be used if it is greater than zero, otherwise the density from the database will used instead.
* @return The refractive index as a complex number
*/
public static Complex Refractive_Index(String compound, double E, double density) {
double re = 0.0;
double im = 0.0;
compoundDataBase cd = parseCompoundFull(compound);
if (E <= 0.0)
throw new IllegalArgumentException(NEGATIVE_ENERGY);
else if (density <= 0.0) {
if (compoundDataNIST.class.isInstance(cd)) {
density = compoundDataNIST.class.cast(cd).density;
} else {
throw new IllegalArgumentException(NEGATIVE_DENSITY);
}
}
for (int i = 0 ; i < cd.getNElements() ; i++) {
re += cd.getMassFractions()[i] * KD * (cd.getElements()[i] + Fi(cd.getElements()[i], E)) / AtomicWeight(cd.getElements()[i]) / E / E;
im += CS_Total(cd.getElements()[i], E) * cd.getMassFractions()[i];
}
re = 1.0 - re * density;
im = im * density * 9.8663479e-9 / E;
return new Complex(re, im);
}
/**
* @return a list of all currently available crystals
*/
public static String[] Crystal_GetCrystalsList() {
return Arrays.stream(crystalDataList).map(crystal -> crystal.name).toArray(String[]::new);
}
/**
* For a given crystal name, returns the corresponding @see Crystal_Struct instance
*
* @param material The name of the crystal
* @return an instance of @see Crystal_Struct
*/
public static Crystal_Struct Crystal_GetCrystal(String material) {
for (Crystal_Struct cs : crystalDataList) {
if (cs.name.equals(material))
return new Crystal_Struct(cs);
}
throw new IllegalArgumentException(String.format("Crystal %s is not present in the array", material));
}
/** Calculates the Bragg angle, given an energy and set of Miller indices
*
* @param cs an instance of @see Crystal_Struct
* @param energy expressed in keV
* @param i_miller Miller index i
* @param j_miller Miller index j
* @param k_miller Miller index k
* @return the Bragg angle
*/
public static double Bragg_angle(Crystal_Struct cs, double energy, int i_miller, int j_miller, int k_miller) {
return cs.Bragg_angle(energy, i_miller, j_miller, k_miller);
}
/** Calculates the crystal structure factor
*
* @param cs an instance of @see Crystal_Struct
* @param energy expressed in keV
* @param i_miller Miller index i
* @param j_miller Miller index j
* @param k_miller Miller index k
* @param debye_factor The Debye factor
* @param rel_angle expressed in radians
* @return the crystal structure factor, as a complex number
*/
public static Complex Crystal_F_H_StructureFactor (Crystal_Struct cs, double energy, int i_miller, int j_miller, int k_miller, double debye_factor, double rel_angle) {
return cs.Crystal_F_H_StructureFactor(energy, i_miller, j_miller, k_miller, debye_factor, rel_angle);
}
/** Calculates the partial crystal structure factor
*
* @param cs an instance of @see Crystal_Struct
* @param energy expressed in keV
* @param i_miller Miller index i
* @param j_miller Miller index j
* @param k_miller Miller index k
* @param debye_factor The Debye factor
* @param rel_angle expressed in radians
* @param f0_flag
* @param f_prime_flag
* @param f_prime2_flag
* @return the crystal structure factor, as a complex number
*/
public static Complex Crystal_F_H_StructureFactor_Partial(Crystal_Struct cs, double energy,
int i_miller, int j_miller, int k_miller, double debye_factor, double rel_angle,
int f0_flag, int f_prime_flag, int f_prime2_flag) {
return cs.Crystal_F_H_StructureFactor_Partial(energy, i_miller, j_miller, k_miller, debye_factor, rel_angle, f0_flag, f_prime_flag, f_prime2_flag);
}
/** Calculate the unit cell volume
*
* @param cs an instance of @see Crystal_Struct
* @return The unit cell volume
*/
public static double Crystal_UnitCellVolume(Crystal_Struct cs) {
return cs.Crystal_UnitCellVolume();
}
/** Calculates the d-spacing for the crystal and Miller indices.
*
* @param cs an instance of @see Crystal_Struct
* @param i_miller Miller index i
* @param j_miller Miller index j
* @param k_miller Miller index k
* @return The crystal D-spacing
*/
public static double Crystal_dSpacing(Crystal_Struct cs, int i_miller, int j_miller, int k_miller) {
return cs.Crystal_dSpacing(i_miller, j_miller, k_miller);
}
/** Calculates the Q scattering amplitude, given an energy, Miller indices and relative angle
*
* @param cs an instance of @see Crystal_Struct
* @param energy expressed in keV
* @param i_miller Miller index i
* @param j_miller Miller index j
* @param k_miller Miller index k
* @param rel_angle expressed in radians
* @return The Q scattering amplitude
*/
public static double Q_scattering_amplitude(Crystal_Struct cs, double energy, int i_miller, int j_miller, int k_miller, double rel_angle) {
return cs.Q_scattering_amplitude(energy, i_miller, j_miller, k_miller, rel_angle);
}
/**
* For a given atomic number, energy, momentum transfer and Debye factor, returns
* an array with the atomic factors f<sub>0</sub>, Δf′ and Δf″.
*
* @param Z The atomic number
* @param energy The energy of the photon, expressed in keV.
* @param q The momentum transfer
* @param debye_factor The Debye factor
* @return an array with the three atomic factors
*/
public static double[] Atomic_Factors(int Z, double energy, double q, double debye_factor) {
if (debye_factor <= 0.0)
throw new IllegalArgumentException(NEGATIVE_DEBYE_FACTOR);
double f0 = FF_Rayl(Z, q) * debye_factor;
double f_prime = Fi(Z, energy) * debye_factor;
double f_prime2 = -Fii(Z, energy) * debye_factor;
return new double[]{f0, f_prime, f_prime2};
}
private static double splint(double[] xa, double[] ya, double[] y2a, int n, double x) {
int klo, khi, k;
double h, b, a;
if (x - xa[n-1] > 1E-7) {
throw new IllegalArgumentException(SPLINT_X_TOO_HIGH);
}
if (x < xa[0]) {
throw new IllegalArgumentException(SPLINT_X_TOO_LOW);
}
klo = 0;
khi = n-1;
while (khi-klo > 1) {
k = (khi + klo) >> 1;
if (xa[k] > x) {
khi = k;
}
else {
klo = k;
}
}
h = xa[khi] - xa[klo];
if (h == 0.0) {
return (ya[klo] + ya[khi])/2.0;
}
a = (xa[khi] - x) / h;
b = (x - xa[klo]) / h;
return a*ya[klo] + b*ya[khi] + ((a*a*a-a)*y2a[klo]
+ (b*b*b-b)*y2a[khi])*(h*h)/6.0;
}
private static double[] AtomicWeight_arr;
private static double[] ElementDensity_arr;
private static double[] EdgeEnergy_arr;
private static double[] AtomicLevelWidth_arr;
private static double[] LineEnergy_arr;
private static double[] FluorYield_arr;
private static double[] JumpFactor_arr;
private static double[] CosKron_arr;
private static double[] RadRate_arr;
private static double[] xrf_cross_sections_constants_full;
private static double[] xrf_cross_sections_constants_auger_only;
private static int[] NE_Photo_arr;
private static double[][] E_Photo_arr;
private static double[][] CS_Photo_arr;
private static double[][] CS_Photo_arr2;
private static int[] NE_Rayl_arr;
private static double[][] E_Rayl_arr;
private static double[][] CS_Rayl_arr;
private static double[][] CS_Rayl_arr2;
private static int[] NE_Compt_arr;
private static double[][] E_Compt_arr;
private static double[][] CS_Compt_arr;
private static double[][] CS_Compt_arr2;
private static int[] NE_Energy_arr;
private static double[][] E_Energy_arr;
private static double[][] CS_Energy_arr;
private static double[][] CS_Energy_arr2;
private static int[] Nq_Rayl_arr;
private static double[][] q_Rayl_arr;
private static double[][] FF_Rayl_arr;
private static double[][] FF_Rayl_arr2;
private static int[] Nq_Compt_arr;
private static double[][] q_Compt_arr;
private static double[][] SF_Compt_arr;
private static double[][] SF_Compt_arr2;
private static int[] NE_Fi_arr;
private static double[][] E_Fi_arr;
private static double[][] Fi_arr;
private static double[][] Fi_arr2;
private static int[] NE_Fii_arr;
private static double[][] E_Fii_arr;
private static double[][] Fii_arr;
private static double[][] Fii_arr2;
private static int[] NE_Photo_Total_Kissel_arr;
private static double[][] E_Photo_Total_Kissel_arr;
private static double[][] Photo_Total_Kissel_arr;
private static double[][] Photo_Total_Kissel_arr2;
private static double[] Electron_Config_Kissel_arr;
private static double[] EdgeEnergy_Kissel_arr;
private static int[][] NE_Photo_Partial_Kissel_arr;
private static double[][][] E_Photo_Partial_Kissel_arr;
private static double[][][] Photo_Partial_Kissel_arr;
private static double[][][] Photo_Partial_Kissel_arr2;
private static int[] NShells_ComptonProfiles_arr;
private static int[] Npz_ComptonProfiles_arr;
private static double[][] UOCCUP_ComptonProfiles_arr;
private static double[][] pz_ComptonProfiles_arr;
private static double[][] Total_ComptonProfiles_arr;
private static double[][] Total_ComptonProfiles_arr2;
private static double[][][] Partial_ComptonProfiles_arr;
private static double[][][] Partial_ComptonProfiles_arr2;
private static double[] Auger_Yields_arr;
private static double[] Auger_Rates_arr;
private static compoundDataNIST[] compoundDataNISTList;
private static radioNuclideData[] nuclideDataList;
private static Crystal_Struct[] crystalDataList;
public static int ZMAX;
public static int SHELLNUM;
public static int SHELLNUM_K;
public static int SHELLNUM_A;
public static int TRANSNUM;
public static int LINENUM;
public static int AUGERNUM;
public static double RE2;
public static double MEC2;
public static double AVOGNUM;
public static double KEV2ANGST;
public static double R_E;
public static final int K_SHELL = 0;
public static final int L1_SHELL = 1;
public static final int L2_SHELL = 2;
public static final int L3_SHELL = 3;
public static final int M1_SHELL = 4;
public static final int M2_SHELL = 5;
public static final int M3_SHELL = 6;
public static final int M4_SHELL = 7;
public static final int M5_SHELL = 8;
public static final int N1_SHELL = 9;
public static final int N2_SHELL = 10;
public static final int N3_SHELL = 11;
public static final int N4_SHELL = 12;
public static final int N5_SHELL = 13;
public static final int N6_SHELL = 14;
public static final int N7_SHELL = 15;
public static final int O1_SHELL = 16;
public static final int O2_SHELL = 17;
public static final int O3_SHELL = 18;
public static final int O4_SHELL = 19;
public static final int O5_SHELL = 20;
public static final int O6_SHELL = 21;
public static final int O7_SHELL = 22;
public static final int P1_SHELL = 23;
public static final int P2_SHELL = 24;
public static final int P3_SHELL = 25;
public static final int P4_SHELL = 26;
public static final int P5_SHELL = 27;
public static final int Q1_SHELL = 28;
public static final int Q2_SHELL = 29;
public static final int Q3_SHELL = 30;
public static final int KL1_LINE = -1;
public static final int KL2_LINE = -2;
public static final int KL3_LINE = -3;
public static final int KM1_LINE = -4;
public static final int KM2_LINE = -5;
public static final int KM3_LINE = -6;
public static final int KM4_LINE = -7;
public static final int KM5_LINE = -8;
public static final int KN1_LINE = -9;
public static final int KN2_LINE = -10;
public static final int KN3_LINE = -11;
public static final int KN4_LINE = -12;
public static final int KN5_LINE = -13;
public static final int KN6_LINE = -14;
public static final int KN7_LINE = -15;
public static final int KO_LINE = -16;
public static final int KO1_LINE = -17;
public static final int KO2_LINE = -18;
public static final int KO3_LINE = -19;
public static final int KO4_LINE = -20;
public static final int KO5_LINE = -21;
public static final int KO6_LINE = -22;
public static final int KO7_LINE = -23;
public static final int KP_LINE = -24;
public static final int KP1_LINE = -25;
public static final int KP2_LINE = -26;
public static final int KP3_LINE = -27;
public static final int KP4_LINE = -28;
public static final int KP5_LINE = -29;
public static final int L1L2_LINE = -30;
public static final int L1L3_LINE = -31;
public static final int L1M1_LINE = -32;
public static final int L1M2_LINE = -33;
public static final int L1M3_LINE = -34;
public static final int L1M4_LINE = -35;
public static final int L1M5_LINE = -36;
public static final int L1N1_LINE = -37;
public static final int L1N2_LINE = -38;
public static final int L1N3_LINE = -39;
public static final int L1N4_LINE = -40;
public static final int L1N5_LINE = -41;
public static final int L1N6_LINE = -42;
public static final int L1N67_LINE = -43;
public static final int L1N7_LINE = -44;
public static final int L1O1_LINE = -45;
public static final int L1O2_LINE = -46;
public static final int L1O3_LINE = -47;
public static final int L1O4_LINE = -48;
public static final int L1O45_LINE = -49;
public static final int L1O5_LINE = -50;
public static final int L1O6_LINE = -51;
public static final int L1O7_LINE = -52;
public static final int L1P1_LINE = -53;
public static final int L1P2_LINE = -54;
public static final int L1P23_LINE = -55;
public static final int L1P3_LINE = -56;
public static final int L1P4_LINE = -57;
public static final int L1P5_LINE = -58;
public static final int L2L3_LINE = -59;
public static final int L2M1_LINE = -60;
public static final int L2M2_LINE = -61;
public static final int L2M3_LINE = -62;
public static final int L2M4_LINE = -63;
public static final int L2M5_LINE = -64;
public static final int L2N1_LINE = -65;
public static final int L2N2_LINE = -66;
public static final int L2N3_LINE = -67;
public static final int L2N4_LINE = -68;
public static final int L2N5_LINE = -69;
public static final int L2N6_LINE = -70;
public static final int L2N7_LINE = -71;
public static final int L2O1_LINE = -72;
public static final int L2O2_LINE = -73;
public static final int L2O3_LINE = -74;
public static final int L2O4_LINE = -75;
public static final int L2O5_LINE = -76;
public static final int L2O6_LINE = -77;
public static final int L2O7_LINE = -78;
public static final int L2P1_LINE = -79;
public static final int L2P2_LINE = -80;
public static final int L2P23_LINE = -81;
public static final int L2P3_LINE = -82;
public static final int L2P4_LINE = -83;
public static final int L2P5_LINE = -84;
public static final int L2Q1_LINE = -85;
public static final int L3M1_LINE = -86;
public static final int L3M2_LINE = -87;
public static final int L3M3_LINE = -88;
public static final int L3M4_LINE = -89;
public static final int L3M5_LINE = -90;
public static final int L3N1_LINE = -91;
public static final int L3N2_LINE = -92;
public static final int L3N3_LINE = -93;
public static final int L3N4_LINE = -94;
public static final int L3N5_LINE = -95;
public static final int L3N6_LINE = -96;
public static final int L3N7_LINE = -97;
public static final int L3O1_LINE = -98;
public static final int L3O2_LINE = -99;
public static final int L3O3_LINE = -100;
public static final int L3O4_LINE = -101;
public static final int L3O45_LINE = -102;
public static final int L3O5_LINE = -103;
public static final int L3O6_LINE = -104;
public static final int L3O7_LINE = -105;
public static final int L3P1_LINE = -106;
public static final int L3P2_LINE = -107;
public static final int L3P23_LINE = -108;
public static final int L3P3_LINE = -109;
public static final int L3P4_LINE = -110;
public static final int L3P45_LINE = -111;
public static final int L3P5_LINE = -112;
public static final int L3Q1_LINE = -113;
public static final int M1M2_LINE = -114;
public static final int M1M3_LINE = -115;
public static final int M1M4_LINE = -116;
public static final int M1M5_LINE = -117;
public static final int M1N1_LINE = -118;
public static final int M1N2_LINE = -119;
public static final int M1N3_LINE = -120;
public static final int M1N4_LINE = -121;
public static final int M1N5_LINE = -122;
public static final int M1N6_LINE = -123;
public static final int M1N7_LINE = -124;
public static final int M1O1_LINE = -125;
public static final int M1O2_LINE = -126;
public static final int M1O3_LINE = -127;
public static final int M1O4_LINE = -128;
public static final int M1O5_LINE = -129;
public static final int M1O6_LINE = -130;
public static final int M1O7_LINE = -131;
public static final int M1P1_LINE = -132;
public static final int M1P2_LINE = -133;
public static final int M1P3_LINE = -134;
public static final int M1P4_LINE = -135;
public static final int M1P5_LINE = -136;
public static final int M2M3_LINE = -137;
public static final int M2M4_LINE = -138;
public static final int M2M5_LINE = -139;
public static final int M2N1_LINE = -140;
public static final int M2N2_LINE = -141;
public static final int M2N3_LINE = -142;
public static final int M2N4_LINE = -143;
public static final int M2N5_LINE = -144;
public static final int M2N6_LINE = -145;
public static final int M2N7_LINE = -146;
public static final int M2O1_LINE = -147;
public static final int M2O2_LINE = -148;
public static final int M2O3_LINE = -149;
public static final int M2O4_LINE = -150;
public static final int M2O5_LINE = -151;
public static final int M2O6_LINE = -152;
public static final int M2O7_LINE = -153;
public static final int M2P1_LINE = -154;
public static final int M2P2_LINE = -155;
public static final int M2P3_LINE = -156;
public static final int M2P4_LINE = -157;
public static final int M2P5_LINE = -158;
public static final int M3M4_LINE = -159;
public static final int M3M5_LINE = -160;
public static final int M3N1_LINE = -161;
public static final int M3N2_LINE = -162;
public static final int M3N3_LINE = -163;
public static final int M3N4_LINE = -164;
public static final int M3N5_LINE = -165;
public static final int M3N6_LINE = -166;
public static final int M3N7_LINE = -167;
public static final int M3O1_LINE = -168;
public static final int M3O2_LINE = -169;
public static final int M3O3_LINE = -170;
public static final int M3O4_LINE = -171;
public static final int M3O5_LINE = -172;
public static final int M3O6_LINE = -173;
public static final int M3O7_LINE = -174;
public static final int M3P1_LINE = -175;
public static final int M3P2_LINE = -176;
public static final int M3P3_LINE = -177;
public static final int M3P4_LINE = -178;
public static final int M3P5_LINE = -179;
public static final int M3Q1_LINE = -180;
public static final int M4M5_LINE = -181;
public static final int M4N1_LINE = -182;
public static final int M4N2_LINE = -183;
public static final int M4N3_LINE = -184;
public static final int M4N4_LINE = -185;
public static final int M4N5_LINE = -186;
public static final int M4N6_LINE = -187;
public static final int M4N7_LINE = -188;
public static final int M4O1_LINE = -189;
public static final int M4O2_LINE = -190;
public static final int M4O3_LINE = -191;
public static final int M4O4_LINE = -192;
public static final int M4O5_LINE = -193;
public static final int M4O6_LINE = -194;
public static final int M4O7_LINE = -195;
public static final int M4P1_LINE = -196;
public static final int M4P2_LINE = -197;
public static final int M4P3_LINE = -198;
public static final int M4P4_LINE = -199;
public static final int M4P5_LINE = -200;
public static final int M5N1_LINE = -201;
public static final int M5N2_LINE = -202;
public static final int M5N3_LINE = -203;
public static final int M5N4_LINE = -204;
public static final int M5N5_LINE = -205;
public static final int M5N6_LINE = -206;
public static final int M5N7_LINE = -207;
public static final int M5O1_LINE = -208;
public static final int M5O2_LINE = -209;
public static final int M5O3_LINE = -210;
public static final int M5O4_LINE = -211;
public static final int M5O5_LINE = -212;
public static final int M5O6_LINE = -213;
public static final int M5O7_LINE = -214;
public static final int M5P1_LINE = -215;
public static final int M5P2_LINE = -216;
public static final int M5P3_LINE = -217;
public static final int M5P4_LINE = -218;
public static final int M5P5_LINE = -219;
public static final int N1N2_LINE = -220;
public static final int N1N3_LINE = -221;
public static final int N1N4_LINE = -222;
public static final int N1N5_LINE = -223;
public static final int N1N6_LINE = -224;
public static final int N1N7_LINE = -225;
public static final int N1O1_LINE = -226;
public static final int N1O2_LINE = -227;
public static final int N1O3_LINE = -228;
public static final int N1O4_LINE = -229;
public static final int N1O5_LINE = -230;
public static final int N1O6_LINE = -231;
public static final int N1O7_LINE = -232;
public static final int N1P1_LINE = -233;
public static final int N1P2_LINE = -234;
public static final int N1P3_LINE = -235;
public static final int N1P4_LINE = -236;
public static final int N1P5_LINE = -237;
public static final int N2N3_LINE = -238;
public static final int N2N4_LINE = -239;
public static final int N2N5_LINE = -240;
public static final int N2N6_LINE = -241;
public static final int N2N7_LINE = -242;
public static final int N2O1_LINE = -243;
public static final int N2O2_LINE = -244;
public static final int N2O3_LINE = -245;
public static final int N2O4_LINE = -246;
public static final int N2O5_LINE = -247;
public static final int N2O6_LINE = -248;
public static final int N2O7_LINE = -249;
public static final int N2P1_LINE = -250;
public static final int N2P2_LINE = -251;
public static final int N2P3_LINE = -252;
public static final int N2P4_LINE = -253;
public static final int N2P5_LINE = -254;
public static final int N3N4_LINE = -255;
public static final int N3N5_LINE = -256;
public static final int N3N6_LINE = -257;
public static final int N3N7_LINE = -258;
public static final int N3O1_LINE = -259;
public static final int N3O2_LINE = -260;
public static final int N3O3_LINE = -261;
public static final int N3O4_LINE = -262;
public static final int N3O5_LINE = -263;
public static final int N3O6_LINE = -264;
public static final int N3O7_LINE = -265;
public static final int N3P1_LINE = -266;
public static final int N3P2_LINE = -267;
public static final int N3P3_LINE = -268;
public static final int N3P4_LINE = -269;
public static final int N3P5_LINE = -270;
public static final int N4N5_LINE = -271;
public static final int N4N6_LINE = -272;
public static final int N4N7_LINE = -273;
public static final int N4O1_LINE = -274;
public static final int N4O2_LINE = -275;
public static final int N4O3_LINE = -276;
public static final int N4O4_LINE = -277;
public static final int N4O5_LINE = -278;
public static final int N4O6_LINE = -279;
public static final int N4O7_LINE = -280;
public static final int N4P1_LINE = -281;
public static final int N4P2_LINE = -282;
public static final int N4P3_LINE = -283;
public static final int N4P4_LINE = -284;
public static final int N4P5_LINE = -285;
public static final int N5N6_LINE = -286;
public static final int N5N7_LINE = -287;
public static final int N5O1_LINE = -288;
public static final int N5O2_LINE = -289;
public static final int N5O3_LINE = -290;
public static final int N5O4_LINE = -291;
public static final int N5O5_LINE = -292;
public static final int N5O6_LINE = -293;
public static final int N5O7_LINE = -294;
public static final int N5P1_LINE = -295;
public static final int N5P2_LINE = -296;
public static final int N5P3_LINE = -297;
public static final int N5P4_LINE = -298;
public static final int N5P5_LINE = -299;
public static final int N6N7_LINE = -300;
public static final int N6O1_LINE = -301;
public static final int N6O2_LINE = -302;
public static final int N6O3_LINE = -303;
public static final int N6O4_LINE = -304;
public static final int N6O5_LINE = -305;
public static final int N6O6_LINE = -306;
public static final int N6O7_LINE = -307;
public static final int N6P1_LINE = -308;
public static final int N6P2_LINE = -309;
public static final int N6P3_LINE = -310;
public static final int N6P4_LINE = -311;
public static final int N6P5_LINE = -312;
public static final int N7O1_LINE = -313;
public static final int N7O2_LINE = -314;
public static final int N7O3_LINE = -315;
public static final int N7O4_LINE = -316;
public static final int N7O5_LINE = -317;
public static final int N7O6_LINE = -318;
public static final int N7O7_LINE = -319;
public static final int N7P1_LINE = -320;
public static final int N7P2_LINE = -321;
public static final int N7P3_LINE = -322;
public static final int N7P4_LINE = -323;
public static final int N7P5_LINE = -324;
public static final int O1O2_LINE = -325;
public static final int O1O3_LINE = -326;
public static final int O1O4_LINE = -327;
public static final int O1O5_LINE = -328;
public static final int O1O6_LINE = -329;
public static final int O1O7_LINE = -330;
public static final int O1P1_LINE = -331;
public static final int O1P2_LINE = -332;
public static final int O1P3_LINE = -333;
public static final int O1P4_LINE = -334;
public static final int O1P5_LINE = -335;
public static final int O2O3_LINE = -336;
public static final int O2O4_LINE = -337;
public static final int O2O5_LINE = -338;
public static final int O2O6_LINE = -339;
public static final int O2O7_LINE = -340;
public static final int O2P1_LINE = -341;
public static final int O2P2_LINE = -342;
public static final int O2P3_LINE = -343;
public static final int O2P4_LINE = -344;
public static final int O2P5_LINE = -345;
public static final int O3O4_LINE = -346;
public static final int O3O5_LINE = -347;
public static final int O3O6_LINE = -348;
public static final int O3O7_LINE = -349;
public static final int O3P1_LINE = -350;
public static final int O3P2_LINE = -351;
public static final int O3P3_LINE = -352;
public static final int O3P4_LINE = -353;
public static final int O3P5_LINE = -354;
public static final int O4O5_LINE = -355;
public static final int O4O6_LINE = -356;
public static final int O4O7_LINE = -357;
public static final int O4P1_LINE = -358;
public static final int O4P2_LINE = -359;
public static final int O4P3_LINE = -360;
public static final int O4P4_LINE = -361;
public static final int O4P5_LINE = -362;
public static final int O5O6_LINE = -363;
public static final int O5O7_LINE = -364;
public static final int O5P1_LINE = -365;
public static final int O5P2_LINE = -366;
public static final int O5P3_LINE = -367;
public static final int O5P4_LINE = -368;
public static final int O5P5_LINE = -369;
public static final int O6O7_LINE = -370;
public static final int O6P4_LINE = -371;
public static final int O6P5_LINE = -372;
public static final int O7P4_LINE = -373;
public static final int O7P5_LINE = -374;
public static final int P1P2_LINE = -375;
public static final int P1P3_LINE = -376;
public static final int P1P4_LINE = -377;
public static final int P1P5_LINE = -378;
public static final int P2P3_LINE = -379;
public static final int P2P4_LINE = -380;
public static final int P2P5_LINE = -381;
public static final int P3P4_LINE = -382;
public static final int P3P5_LINE = -383;
public static final int F1_TRANS = 0;
public static final int F12_TRANS = 1;
public static final int F13_TRANS = 2;
public static final int FP13_TRANS = 3;
public static final int F23_TRANS = 4;
public static final int FL12_TRANS = 1;
public static final int FL13_TRANS = 2;
public static final int FLP13_TRANS = 3;
public static final int FL23_TRANS = 4;
public static final int FM12_TRANS = 5;
public static final int FM13_TRANS = 6;
public static final int FM14_TRANS = 7;
public static final int FM15_TRANS = 8;
public static final int FM23_TRANS = 9;
public static final int FM24_TRANS = 10;
public static final int FM25_TRANS = 11;
public static final int FM34_TRANS = 12;
public static final int FM35_TRANS = 13;
public static final int FM45_TRANS = 14;
/*
* Siegbahn notation
* according to Table VIII.2 from Nomenclature system for X-ray spectroscopy
* Linegroups -> usage is discouraged
*
*/
public static final int KA_LINE = 0;
public static final int KB_LINE = 1;
public static final int LA_LINE = 2;
public static final int LB_LINE = 3;
/* single lines */
public static final int KA1_LINE = KL3_LINE;
public static final int KA2_LINE = KL2_LINE;
public static final int KA3_LINE = KL1_LINE;
public static final int KB1_LINE = KM3_LINE;
public static final int KB2_LINE = KN3_LINE;
public static final int KB3_LINE = KM2_LINE;
public static final int KB4_LINE = KN5_LINE;
public static final int KB5_LINE = KM5_LINE;
public static final int LA1_LINE = L3M5_LINE;
public static final int LA2_LINE = L3M4_LINE;
public static final int LB1_LINE = L2M4_LINE;
public static final int LB2_LINE = L3N5_LINE;
public static final int LB3_LINE = L1M3_LINE;
public static final int LB4_LINE = L1M2_LINE;
public static final int LB5_LINE = L3O45_LINE;
public static final int LB6_LINE = L3N1_LINE;
public static final int LB7_LINE = L3O1_LINE;
public static final int LB9_LINE = L1M5_LINE;
public static final int LB10_LINE = L1M4_LINE;
public static final int LB15_LINE = L3N4_LINE;
public static final int LB17_LINE = L2M3_LINE;
public static final int LG1_LINE = L2N4_LINE;
public static final int LG2_LINE = L1N2_LINE;
public static final int LG3_LINE = L1N3_LINE;
public static final int LG4_LINE = L1O3_LINE;
public static final int LG5_LINE = L2N1_LINE;
public static final int LG6_LINE = L2O4_LINE;
public static final int LG8_LINE = L2O1_LINE;
public static final int LE_LINE = L2M1_LINE;
public static final int LH_LINE = L2M1_LINE;
public static final int LL_LINE = L3M1_LINE;
public static final int LS_LINE = L3M3_LINE;
public static final int LT_LINE = L3M2_LINE;
public static final int LU_LINE = L3N6_LINE;
public static final int LV_LINE = L2N6_LINE;
public static final int MA1_LINE = M5N7_LINE;
public static final int MA2_LINE = M5N6_LINE;
public static final int MB_LINE = M4N6_LINE;
public static final int MG_LINE = M3N5_LINE;
public static final int K_L1L1_AUGER = 0;
public static final int K_L1L2_AUGER = 1;
public static final int K_L1L3_AUGER = 2;
public static final int K_L1M1_AUGER = 3;
public static final int K_L1M2_AUGER = 4;
public static final int K_L1M3_AUGER = 5;
public static final int K_L1M4_AUGER = 6;
public static final int K_L1M5_AUGER = 7;
public static final int K_L1N1_AUGER = 8;
public static final int K_L1N2_AUGER = 9;
public static final int K_L1N3_AUGER = 10;
public static final int K_L1N4_AUGER = 11;
public static final int K_L1N5_AUGER = 12;
public static final int K_L1N6_AUGER = 13;
public static final int K_L1N7_AUGER = 14;
public static final int K_L1O1_AUGER = 15;
public static final int K_L1O2_AUGER = 16;
public static final int K_L1O3_AUGER = 17;
public static final int K_L1O4_AUGER = 18;
public static final int K_L1O5_AUGER = 19;
public static final int K_L1O6_AUGER = 20;
public static final int K_L1O7_AUGER = 21;
public static final int K_L1P1_AUGER = 22;
public static final int K_L1P2_AUGER = 23;
public static final int K_L1P3_AUGER = 24;
public static final int K_L1P4_AUGER = 25;
public static final int K_L1P5_AUGER = 26;
public static final int K_L1Q1_AUGER = 27;
public static final int K_L1Q2_AUGER = 28;
public static final int K_L1Q3_AUGER = 29;
public static final int K_L2L1_AUGER = 30;
public static final int K_L2L2_AUGER = 31;
public static final int K_L2L3_AUGER = 32;
public static final int K_L2M1_AUGER = 33;
public static final int K_L2M2_AUGER = 34;
public static final int K_L2M3_AUGER = 35;
public static final int K_L2M4_AUGER = 36;
public static final int K_L2M5_AUGER = 37;
public static final int K_L2N1_AUGER = 38;
public static final int K_L2N2_AUGER = 39;
public static final int K_L2N3_AUGER = 40;
public static final int K_L2N4_AUGER = 41;
public static final int K_L2N5_AUGER = 42;
public static final int K_L2N6_AUGER = 43;
public static final int K_L2N7_AUGER = 44;
public static final int K_L2O1_AUGER = 45;
public static final int K_L2O2_AUGER = 46;
public static final int K_L2O3_AUGER = 47;
public static final int K_L2O4_AUGER = 48;
public static final int K_L2O5_AUGER = 49;
public static final int K_L2O6_AUGER = 50;
public static final int K_L2O7_AUGER = 51;
public static final int K_L2P1_AUGER = 52;
public static final int K_L2P2_AUGER = 53;
public static final int K_L2P3_AUGER = 54;
public static final int K_L2P4_AUGER = 55;
public static final int K_L2P5_AUGER = 56;
public static final int K_L2Q1_AUGER = 57;
public static final int K_L2Q2_AUGER = 58;
public static final int K_L2Q3_AUGER = 59;
public static final int K_L3L1_AUGER = 60;
public static final int K_L3L2_AUGER = 61;
public static final int K_L3L3_AUGER = 62;
public static final int K_L3M1_AUGER = 63;
public static final int K_L3M2_AUGER = 64;
public static final int K_L3M3_AUGER = 65;
public static final int K_L3M4_AUGER = 66;
public static final int K_L3M5_AUGER = 67;
public static final int K_L3N1_AUGER = 68;
public static final int K_L3N2_AUGER = 69;
public static final int K_L3N3_AUGER = 70;
public static final int K_L3N4_AUGER = 71;
public static final int K_L3N5_AUGER = 72;
public static final int K_L3N6_AUGER = 73;
public static final int K_L3N7_AUGER = 74;
public static final int K_L3O1_AUGER = 75;
public static final int K_L3O2_AUGER = 76;
public static final int K_L3O3_AUGER = 77;
public static final int K_L3O4_AUGER = 78;
public static final int K_L3O5_AUGER = 79;
public static final int K_L3O6_AUGER = 80;
public static final int K_L3O7_AUGER = 81;
public static final int K_L3P1_AUGER = 82;
public static final int K_L3P2_AUGER = 83;
public static final int K_L3P3_AUGER = 84;
public static final int K_L3P4_AUGER = 85;
public static final int K_L3P5_AUGER = 86;
public static final int K_L3Q1_AUGER = 87;
public static final int K_L3Q2_AUGER = 88;
public static final int K_L3Q3_AUGER = 89;
public static final int K_M1L1_AUGER = 90;
public static final int K_M1L2_AUGER = 91;
public static final int K_M1L3_AUGER = 92;
public static final int K_M1M1_AUGER = 93;
public static final int K_M1M2_AUGER = 94;
public static final int K_M1M3_AUGER = 95;
public static final int K_M1M4_AUGER = 96;
public static final int K_M1M5_AUGER = 97;
public static final int K_M1N1_AUGER = 98;
public static final int K_M1N2_AUGER = 99;
public static final int K_M1N3_AUGER = 100;
public static final int K_M1N4_AUGER = 101;
public static final int K_M1N5_AUGER = 102;
public static final int K_M1N6_AUGER = 103;
public static final int K_M1N7_AUGER = 104;
public static final int K_M1O1_AUGER = 105;
public static final int K_M1O2_AUGER = 106;
public static final int K_M1O3_AUGER = 107;
public static final int K_M1O4_AUGER = 108;
public static final int K_M1O5_AUGER = 109;
public static final int K_M1O6_AUGER = 110;
public static final int K_M1O7_AUGER = 111;
public static final int K_M1P1_AUGER = 112;
public static final int K_M1P2_AUGER = 113;
public static final int K_M1P3_AUGER = 114;
public static final int K_M1P4_AUGER = 115;
public static final int K_M1P5_AUGER = 116;
public static final int K_M1Q1_AUGER = 117;
public static final int K_M1Q2_AUGER = 118;
public static final int K_M1Q3_AUGER = 119;
public static final int K_M2L1_AUGER = 120;
public static final int K_M2L2_AUGER = 121;
public static final int K_M2L3_AUGER = 122;
public static final int K_M2M1_AUGER = 123;
public static final int K_M2M2_AUGER = 124;
public static final int K_M2M3_AUGER = 125;
public static final int K_M2M4_AUGER = 126;
public static final int K_M2M5_AUGER = 127;
public static final int K_M2N1_AUGER = 128;
public static final int K_M2N2_AUGER = 129;
public static final int K_M2N3_AUGER = 130;
public static final int K_M2N4_AUGER = 131;
public static final int K_M2N5_AUGER = 132;
public static final int K_M2N6_AUGER = 133;
public static final int K_M2N7_AUGER = 134;
public static final int K_M2O1_AUGER = 135;
public static final int K_M2O2_AUGER = 136;
public static final int K_M2O3_AUGER = 137;
public static final int K_M2O4_AUGER = 138;
public static final int K_M2O5_AUGER = 139;
public static final int K_M2O6_AUGER = 140;
public static final int K_M2O7_AUGER = 141;
public static final int K_M2P1_AUGER = 142;
public static final int K_M2P2_AUGER = 143;
public static final int K_M2P3_AUGER = 144;
public static final int K_M2P4_AUGER = 145;
public static final int K_M2P5_AUGER = 146;
public static final int K_M2Q1_AUGER = 147;
public static final int K_M2Q2_AUGER = 148;
public static final int K_M2Q3_AUGER = 149;
public static final int K_M3L1_AUGER = 150;
public static final int K_M3L2_AUGER = 151;
public static final int K_M3L3_AUGER = 152;
public static final int K_M3M1_AUGER = 153;
public static final int K_M3M2_AUGER = 154;
public static final int K_M3M3_AUGER = 155;
public static final int K_M3M4_AUGER = 156;
public static final int K_M3M5_AUGER = 157;
public static final int K_M3N1_AUGER = 158;
public static final int K_M3N2_AUGER = 159;
public static final int K_M3N3_AUGER = 160;
public static final int K_M3N4_AUGER = 161;
public static final int K_M3N5_AUGER = 162;
public static final int K_M3N6_AUGER = 163;
public static final int K_M3N7_AUGER = 164;
public static final int K_M3O1_AUGER = 165;
public static final int K_M3O2_AUGER = 166;
public static final int K_M3O3_AUGER = 167;
public static final int K_M3O4_AUGER = 168;
public static final int K_M3O5_AUGER = 169;
public static final int K_M3O6_AUGER = 170;
public static final int K_M3O7_AUGER = 171;
public static final int K_M3P1_AUGER = 172;
public static final int K_M3P2_AUGER = 173;
public static final int K_M3P3_AUGER = 174;
public static final int K_M3P4_AUGER = 175;
public static final int K_M3P5_AUGER = 176;
public static final int K_M3Q1_AUGER = 177;
public static final int K_M3Q2_AUGER = 178;
public static final int K_M3Q3_AUGER = 179;
public static final int K_M4L1_AUGER = 180;
public static final int K_M4L2_AUGER = 181;
public static final int K_M4L3_AUGER = 182;
public static final int K_M4M1_AUGER = 183;
public static final int K_M4M2_AUGER = 184;
public static final int K_M4M3_AUGER = 185;
public static final int K_M4M4_AUGER = 186;
public static final int K_M4M5_AUGER = 187;
public static final int K_M4N1_AUGER = 188;
public static final int K_M4N2_AUGER = 189;
public static final int K_M4N3_AUGER = 190;
public static final int K_M4N4_AUGER = 191;
public static final int K_M4N5_AUGER = 192;
public static final int K_M4N6_AUGER = 193;
public static final int K_M4N7_AUGER = 194;
public static final int K_M4O1_AUGER = 195;
public static final int K_M4O2_AUGER = 196;
public static final int K_M4O3_AUGER = 197;
public static final int K_M4O4_AUGER = 198;
public static final int K_M4O5_AUGER = 199;
public static final int K_M4O6_AUGER = 200;
public static final int K_M4O7_AUGER = 201;
public static final int K_M4P1_AUGER = 202;
public static final int K_M4P2_AUGER = 203;
public static final int K_M4P3_AUGER = 204;
public static final int K_M4P4_AUGER = 205;
public static final int K_M4P5_AUGER = 206;
public static final int K_M4Q1_AUGER = 207;
public static final int K_M4Q2_AUGER = 208;
public static final int K_M4Q3_AUGER = 209;
public static final int K_M5L1_AUGER = 210;
public static final int K_M5L2_AUGER = 211;
public static final int K_M5L3_AUGER = 212;
public static final int K_M5M1_AUGER = 213;
public static final int K_M5M2_AUGER = 214;
public static final int K_M5M3_AUGER = 215;
public static final int K_M5M4_AUGER = 216;
public static final int K_M5M5_AUGER = 217;
public static final int K_M5N1_AUGER = 218;
public static final int K_M5N2_AUGER = 219;
public static final int K_M5N3_AUGER = 220;
public static final int K_M5N4_AUGER = 221;
public static final int K_M5N5_AUGER = 222;
public static final int K_M5N6_AUGER = 223;
public static final int K_M5N7_AUGER = 224;
public static final int K_M5O1_AUGER = 225;
public static final int K_M5O2_AUGER = 226;
public static final int K_M5O3_AUGER = 227;
public static final int K_M5O4_AUGER = 228;
public static final int K_M5O5_AUGER = 229;
public static final int K_M5O6_AUGER = 230;
public static final int K_M5O7_AUGER = 231;
public static final int K_M5P1_AUGER = 232;
public static final int K_M5P2_AUGER = 233;
public static final int K_M5P3_AUGER = 234;
public static final int K_M5P4_AUGER = 235;
public static final int K_M5P5_AUGER = 236;
public static final int K_M5Q1_AUGER = 237;
public static final int K_M5Q2_AUGER = 238;
public static final int K_M5Q3_AUGER = 239;
public static final int L1_L2L2_AUGER = 240;
public static final int L1_L2L3_AUGER = 241;
public static final int L1_L2M1_AUGER = 242;
public static final int L1_L2M2_AUGER = 243;
public static final int L1_L2M3_AUGER = 244;
public static final int L1_L2M4_AUGER = 245;
public static final int L1_L2M5_AUGER = 246;
public static final int L1_L2N1_AUGER = 247;
public static final int L1_L2N2_AUGER = 248;
public static final int L1_L2N3_AUGER = 249;
public static final int L1_L2N4_AUGER = 250;
public static final int L1_L2N5_AUGER = 251;
public static final int L1_L2N6_AUGER = 252;
public static final int L1_L2N7_AUGER = 253;
public static final int L1_L2O1_AUGER = 254;
public static final int L1_L2O2_AUGER = 255;
public static final int L1_L2O3_AUGER = 256;
public static final int L1_L2O4_AUGER = 257;
public static final int L1_L2O5_AUGER = 258;
public static final int L1_L2O6_AUGER = 259;
public static final int L1_L2O7_AUGER = 260;
public static final int L1_L2P1_AUGER = 261;
public static final int L1_L2P2_AUGER = 262;
public static final int L1_L2P3_AUGER = 263;
public static final int L1_L2P4_AUGER = 264;
public static final int L1_L2P5_AUGER = 265;
public static final int L1_L2Q1_AUGER = 266;
public static final int L1_L2Q2_AUGER = 267;
public static final int L1_L2Q3_AUGER = 268;
public static final int L1_L3L2_AUGER = 269;
public static final int L1_L3L3_AUGER = 270;
public static final int L1_L3M1_AUGER = 271;
public static final int L1_L3M2_AUGER = 272;
public static final int L1_L3M3_AUGER = 273;
public static final int L1_L3M4_AUGER = 274;
public static final int L1_L3M5_AUGER = 275;
public static final int L1_L3N1_AUGER = 276;
public static final int L1_L3N2_AUGER = 277;
public static final int L1_L3N3_AUGER = 278;
public static final int L1_L3N4_AUGER = 279;
public static final int L1_L3N5_AUGER = 280;
public static final int L1_L3N6_AUGER = 281;
public static final int L1_L3N7_AUGER = 282;
public static final int L1_L3O1_AUGER = 283;
public static final int L1_L3O2_AUGER = 284;
public static final int L1_L3O3_AUGER = 285;
public static final int L1_L3O4_AUGER = 286;
public static final int L1_L3O5_AUGER = 287;
public static final int L1_L3O6_AUGER = 288;
public static final int L1_L3O7_AUGER = 289;
public static final int L1_L3P1_AUGER = 290;
public static final int L1_L3P2_AUGER = 291;
public static final int L1_L3P3_AUGER = 292;
public static final int L1_L3P4_AUGER = 293;
public static final int L1_L3P5_AUGER = 294;
public static final int L1_L3Q1_AUGER = 295;
public static final int L1_L3Q2_AUGER = 296;
public static final int L1_L3Q3_AUGER = 297;
public static final int L1_M1L2_AUGER = 298;
public static final int L1_M1L3_AUGER = 299;
public static final int L1_M1M1_AUGER = 300;
public static final int L1_M1M2_AUGER = 301;
public static final int L1_M1M3_AUGER = 302;
public static final int L1_M1M4_AUGER = 303;
public static final int L1_M1M5_AUGER = 304;
public static final int L1_M1N1_AUGER = 305;
public static final int L1_M1N2_AUGER = 306;
public static final int L1_M1N3_AUGER = 307;
public static final int L1_M1N4_AUGER = 308;
public static final int L1_M1N5_AUGER = 309;
public static final int L1_M1N6_AUGER = 310;
public static final int L1_M1N7_AUGER = 311;
public static final int L1_M1O1_AUGER = 312;
public static final int L1_M1O2_AUGER = 313;
public static final int L1_M1O3_AUGER = 314;
public static final int L1_M1O4_AUGER = 315;
public static final int L1_M1O5_AUGER = 316;
public static final int L1_M1O6_AUGER = 317;
public static final int L1_M1O7_AUGER = 318;
public static final int L1_M1P1_AUGER = 319;
public static final int L1_M1P2_AUGER = 320;
public static final int L1_M1P3_AUGER = 321;
public static final int L1_M1P4_AUGER = 322;
public static final int L1_M1P5_AUGER = 323;
public static final int L1_M1Q1_AUGER = 324;
public static final int L1_M1Q2_AUGER = 325;
public static final int L1_M1Q3_AUGER = 326;
public static final int L1_M2L2_AUGER = 327;
public static final int L1_M2L3_AUGER = 328;
public static final int L1_M2M1_AUGER = 329;
public static final int L1_M2M2_AUGER = 330;
public static final int L1_M2M3_AUGER = 331;
public static final int L1_M2M4_AUGER = 332;
public static final int L1_M2M5_AUGER = 333;
public static final int L1_M2N1_AUGER = 334;
public static final int L1_M2N2_AUGER = 335;
public static final int L1_M2N3_AUGER = 336;
public static final int L1_M2N4_AUGER = 337;
public static final int L1_M2N5_AUGER = 338;
public static final int L1_M2N6_AUGER = 339;
public static final int L1_M2N7_AUGER = 340;
public static final int L1_M2O1_AUGER = 341;
public static final int L1_M2O2_AUGER = 342;
public static final int L1_M2O3_AUGER = 343;
public static final int L1_M2O4_AUGER = 344;
public static final int L1_M2O5_AUGER = 345;
public static final int L1_M2O6_AUGER = 346;
public static final int L1_M2O7_AUGER = 347;
public static final int L1_M2P1_AUGER = 348;
public static final int L1_M2P2_AUGER = 349;
public static final int L1_M2P3_AUGER = 350;
public static final int L1_M2P4_AUGER = 351;
public static final int L1_M2P5_AUGER = 352;
public static final int L1_M2Q1_AUGER = 353;
public static final int L1_M2Q2_AUGER = 354;
public static final int L1_M2Q3_AUGER = 355;
public static final int L1_M3L2_AUGER = 356;
public static final int L1_M3L3_AUGER = 357;
public static final int L1_M3M1_AUGER = 358;
public static final int L1_M3M2_AUGER = 359;
public static final int L1_M3M3_AUGER = 360;
public static final int L1_M3M4_AUGER = 361;
public static final int L1_M3M5_AUGER = 362;
public static final int L1_M3N1_AUGER = 363;
public static final int L1_M3N2_AUGER = 364;
public static final int L1_M3N3_AUGER = 365;
public static final int L1_M3N4_AUGER = 366;
public static final int L1_M3N5_AUGER = 367;
public static final int L1_M3N6_AUGER = 368;
public static final int L1_M3N7_AUGER = 369;
public static final int L1_M3O1_AUGER = 370;
public static final int L1_M3O2_AUGER = 371;
public static final int L1_M3O3_AUGER = 372;
public static final int L1_M3O4_AUGER = 373;
public static final int L1_M3O5_AUGER = 374;
public static final int L1_M3O6_AUGER = 375;
public static final int L1_M3O7_AUGER = 376;
public static final int L1_M3P1_AUGER = 377;
public static final int L1_M3P2_AUGER = 378;
public static final int L1_M3P3_AUGER = 379;
public static final int L1_M3P4_AUGER = 380;
public static final int L1_M3P5_AUGER = 381;
public static final int L1_M3Q1_AUGER = 382;
public static final int L1_M3Q2_AUGER = 383;
public static final int L1_M3Q3_AUGER = 384;
public static final int L1_M4L2_AUGER = 385;
public static final int L1_M4L3_AUGER = 386;
public static final int L1_M4M1_AUGER = 387;
public static final int L1_M4M2_AUGER = 388;
public static final int L1_M4M3_AUGER = 389;
public static final int L1_M4M4_AUGER = 390;
public static final int L1_M4M5_AUGER = 391;
public static final int L1_M4N1_AUGER = 392;
public static final int L1_M4N2_AUGER = 393;
public static final int L1_M4N3_AUGER = 394;
public static final int L1_M4N4_AUGER = 395;
public static final int L1_M4N5_AUGER = 396;
public static final int L1_M4N6_AUGER = 397;
public static final int L1_M4N7_AUGER = 398;
public static final int L1_M4O1_AUGER = 399;
public static final int L1_M4O2_AUGER = 400;
public static final int L1_M4O3_AUGER = 401;
public static final int L1_M4O4_AUGER = 402;
public static final int L1_M4O5_AUGER = 403;
public static final int L1_M4O6_AUGER = 404;
public static final int L1_M4O7_AUGER = 405;
public static final int L1_M4P1_AUGER = 406;
public static final int L1_M4P2_AUGER = 407;
public static final int L1_M4P3_AUGER = 408;
public static final int L1_M4P4_AUGER = 409;
public static final int L1_M4P5_AUGER = 410;
public static final int L1_M4Q1_AUGER = 411;
public static final int L1_M4Q2_AUGER = 412;
public static final int L1_M4Q3_AUGER = 413;
public static final int L1_M5L2_AUGER = 414;
public static final int L1_M5L3_AUGER = 415;
public static final int L1_M5M1_AUGER = 416;
public static final int L1_M5M2_AUGER = 417;
public static final int L1_M5M3_AUGER = 418;
public static final int L1_M5M4_AUGER = 419;
public static final int L1_M5M5_AUGER = 420;
public static final int L1_M5N1_AUGER = 421;
public static final int L1_M5N2_AUGER = 422;
public static final int L1_M5N3_AUGER = 423;
public static final int L1_M5N4_AUGER = 424;
public static final int L1_M5N5_AUGER = 425;
public static final int L1_M5N6_AUGER = 426;
public static final int L1_M5N7_AUGER = 427;
public static final int L1_M5O1_AUGER = 428;
public static final int L1_M5O2_AUGER = 429;
public static final int L1_M5O3_AUGER = 430;
public static final int L1_M5O4_AUGER = 431;
public static final int L1_M5O5_AUGER = 432;
public static final int L1_M5O6_AUGER = 433;
public static final int L1_M5O7_AUGER = 434;
public static final int L1_M5P1_AUGER = 435;
public static final int L1_M5P2_AUGER = 436;
public static final int L1_M5P3_AUGER = 437;
public static final int L1_M5P4_AUGER = 438;
public static final int L1_M5P5_AUGER = 439;
public static final int L1_M5Q1_AUGER = 440;
public static final int L1_M5Q2_AUGER = 441;
public static final int L1_M5Q3_AUGER = 442;
public static final int L2_L3L3_AUGER = 443;
public static final int L2_L3M1_AUGER = 444;
public static final int L2_L3M2_AUGER = 445;
public static final int L2_L3M3_AUGER = 446;
public static final int L2_L3M4_AUGER = 447;
public static final int L2_L3M5_AUGER = 448;
public static final int L2_L3N1_AUGER = 449;
public static final int L2_L3N2_AUGER = 450;
public static final int L2_L3N3_AUGER = 451;
public static final int L2_L3N4_AUGER = 452;
public static final int L2_L3N5_AUGER = 453;
public static final int L2_L3N6_AUGER = 454;
public static final int L2_L3N7_AUGER = 455;
public static final int L2_L3O1_AUGER = 456;
public static final int L2_L3O2_AUGER = 457;
public static final int L2_L3O3_AUGER = 458;
public static final int L2_L3O4_AUGER = 459;
public static final int L2_L3O5_AUGER = 460;
public static final int L2_L3O6_AUGER = 461;
public static final int L2_L3O7_AUGER = 462;
public static final int L2_L3P1_AUGER = 463;
public static final int L2_L3P2_AUGER = 464;
public static final int L2_L3P3_AUGER = 465;
public static final int L2_L3P4_AUGER = 466;
public static final int L2_L3P5_AUGER = 467;
public static final int L2_L3Q1_AUGER = 468;
public static final int L2_L3Q2_AUGER = 469;
public static final int L2_L3Q3_AUGER = 470;
public static final int L2_M1L3_AUGER = 471;
public static final int L2_M1M1_AUGER = 472;
public static final int L2_M1M2_AUGER = 473;
public static final int L2_M1M3_AUGER = 474;
public static final int L2_M1M4_AUGER = 475;
public static final int L2_M1M5_AUGER = 476;
public static final int L2_M1N1_AUGER = 477;
public static final int L2_M1N2_AUGER = 478;
public static final int L2_M1N3_AUGER = 479;
public static final int L2_M1N4_AUGER = 480;
public static final int L2_M1N5_AUGER = 481;
public static final int L2_M1N6_AUGER = 482;
public static final int L2_M1N7_AUGER = 483;
public static final int L2_M1O1_AUGER = 484;
public static final int L2_M1O2_AUGER = 485;
public static final int L2_M1O3_AUGER = 486;
public static final int L2_M1O4_AUGER = 487;
public static final int L2_M1O5_AUGER = 488;
public static final int L2_M1O6_AUGER = 489;
public static final int L2_M1O7_AUGER = 490;
public static final int L2_M1P1_AUGER = 491;
public static final int L2_M1P2_AUGER = 492;
public static final int L2_M1P3_AUGER = 493;
public static final int L2_M1P4_AUGER = 494;
public static final int L2_M1P5_AUGER = 495;
public static final int L2_M1Q1_AUGER = 496;
public static final int L2_M1Q2_AUGER = 497;
public static final int L2_M1Q3_AUGER = 498;
public static final int L2_M2L3_AUGER = 499;
public static final int L2_M2M1_AUGER = 500;
public static final int L2_M2M2_AUGER = 501;
public static final int L2_M2M3_AUGER = 502;
public static final int L2_M2M4_AUGER = 503;
public static final int L2_M2M5_AUGER = 504;
public static final int L2_M2N1_AUGER = 505;
public static final int L2_M2N2_AUGER = 506;
public static final int L2_M2N3_AUGER = 507;
public static final int L2_M2N4_AUGER = 508;
public static final int L2_M2N5_AUGER = 509;
public static final int L2_M2N6_AUGER = 510;
public static final int L2_M2N7_AUGER = 511;
public static final int L2_M2O1_AUGER = 512;
public static final int L2_M2O2_AUGER = 513;
public static final int L2_M2O3_AUGER = 514;
public static final int L2_M2O4_AUGER = 515;
public static final int L2_M2O5_AUGER = 516;
public static final int L2_M2O6_AUGER = 517;
public static final int L2_M2O7_AUGER = 518;
public static final int L2_M2P1_AUGER = 519;
public static final int L2_M2P2_AUGER = 520;
public static final int L2_M2P3_AUGER = 521;
public static final int L2_M2P4_AUGER = 522;
public static final int L2_M2P5_AUGER = 523;
public static final int L2_M2Q1_AUGER = 524;
public static final int L2_M2Q2_AUGER = 525;
public static final int L2_M2Q3_AUGER = 526;
public static final int L2_M3L3_AUGER = 527;
public static final int L2_M3M1_AUGER = 528;
public static final int L2_M3M2_AUGER = 529;
public static final int L2_M3M3_AUGER = 530;
public static final int L2_M3M4_AUGER = 531;
public static final int L2_M3M5_AUGER = 532;
public static final int L2_M3N1_AUGER = 533;
public static final int L2_M3N2_AUGER = 534;
public static final int L2_M3N3_AUGER = 535;
public static final int L2_M3N4_AUGER = 536;
public static final int L2_M3N5_AUGER = 537;
public static final int L2_M3N6_AUGER = 538;
public static final int L2_M3N7_AUGER = 539;
public static final int L2_M3O1_AUGER = 540;
public static final int L2_M3O2_AUGER = 541;
public static final int L2_M3O3_AUGER = 542;
public static final int L2_M3O4_AUGER = 543;
public static final int L2_M3O5_AUGER = 544;
public static final int L2_M3O6_AUGER = 545;
public static final int L2_M3O7_AUGER = 546;
public static final int L2_M3P1_AUGER = 547;
public static final int L2_M3P2_AUGER = 548;
public static final int L2_M3P3_AUGER = 549;
public static final int L2_M3P4_AUGER = 550;
public static final int L2_M3P5_AUGER = 551;
public static final int L2_M3Q1_AUGER = 552;
public static final int L2_M3Q2_AUGER = 553;
public static final int L2_M3Q3_AUGER = 554;
public static final int L2_M4L3_AUGER = 555;
public static final int L2_M4M1_AUGER = 556;
public static final int L2_M4M2_AUGER = 557;
public static final int L2_M4M3_AUGER = 558;
public static final int L2_M4M4_AUGER = 559;
public static final int L2_M4M5_AUGER = 560;
public static final int L2_M4N1_AUGER = 561;
public static final int L2_M4N2_AUGER = 562;
public static final int L2_M4N3_AUGER = 563;
public static final int L2_M4N4_AUGER = 564;
public static final int L2_M4N5_AUGER = 565;
public static final int L2_M4N6_AUGER = 566;
public static final int L2_M4N7_AUGER = 567;
public static final int L2_M4O1_AUGER = 568;
public static final int L2_M4O2_AUGER = 569;
public static final int L2_M4O3_AUGER = 570;
public static final int L2_M4O4_AUGER = 571;
public static final int L2_M4O5_AUGER = 572;
public static final int L2_M4O6_AUGER = 573;
public static final int L2_M4O7_AUGER = 574;
public static final int L2_M4P1_AUGER = 575;
public static final int L2_M4P2_AUGER = 576;
public static final int L2_M4P3_AUGER = 577;
public static final int L2_M4P4_AUGER = 578;
public static final int L2_M4P5_AUGER = 579;
public static final int L2_M4Q1_AUGER = 580;
public static final int L2_M4Q2_AUGER = 581;
public static final int L2_M4Q3_AUGER = 582;
public static final int L2_M5L3_AUGER = 583;
public static final int L2_M5M1_AUGER = 584;
public static final int L2_M5M2_AUGER = 585;
public static final int L2_M5M3_AUGER = 586;
public static final int L2_M5M4_AUGER = 587;
public static final int L2_M5M5_AUGER = 588;
public static final int L2_M5N1_AUGER = 589;
public static final int L2_M5N2_AUGER = 590;
public static final int L2_M5N3_AUGER = 591;
public static final int L2_M5N4_AUGER = 592;
public static final int L2_M5N5_AUGER = 593;
public static final int L2_M5N6_AUGER = 594;
public static final int L2_M5N7_AUGER = 595;
public static final int L2_M5O1_AUGER = 596;
public static final int L2_M5O2_AUGER = 597;
public static final int L2_M5O3_AUGER = 598;
public static final int L2_M5O4_AUGER = 599;
public static final int L2_M5O5_AUGER = 600;
public static final int L2_M5O6_AUGER = 601;
public static final int L2_M5O7_AUGER = 602;
public static final int L2_M5P1_AUGER = 603;
public static final int L2_M5P2_AUGER = 604;
public static final int L2_M5P3_AUGER = 605;
public static final int L2_M5P4_AUGER = 606;
public static final int L2_M5P5_AUGER = 607;
public static final int L2_M5Q1_AUGER = 608;
public static final int L2_M5Q2_AUGER = 609;
public static final int L2_M5Q3_AUGER = 610;
public static final int L3_M1M1_AUGER = 611;
public static final int L3_M1M2_AUGER = 612;
public static final int L3_M1M3_AUGER = 613;
public static final int L3_M1M4_AUGER = 614;
public static final int L3_M1M5_AUGER = 615;
public static final int L3_M1N1_AUGER = 616;
public static final int L3_M1N2_AUGER = 617;
public static final int L3_M1N3_AUGER = 618;
public static final int L3_M1N4_AUGER = 619;
public static final int L3_M1N5_AUGER = 620;
public static final int L3_M1N6_AUGER = 621;
public static final int L3_M1N7_AUGER = 622;
public static final int L3_M1O1_AUGER = 623;
public static final int L3_M1O2_AUGER = 624;
public static final int L3_M1O3_AUGER = 625;
public static final int L3_M1O4_AUGER = 626;
public static final int L3_M1O5_AUGER = 627;
public static final int L3_M1O6_AUGER = 628;
public static final int L3_M1O7_AUGER = 629;
public static final int L3_M1P1_AUGER = 630;
public static final int L3_M1P2_AUGER = 631;
public static final int L3_M1P3_AUGER = 632;
public static final int L3_M1P4_AUGER = 633;
public static final int L3_M1P5_AUGER = 634;
public static final int L3_M1Q1_AUGER = 635;
public static final int L3_M1Q2_AUGER = 636;
public static final int L3_M1Q3_AUGER = 637;
public static final int L3_M2M1_AUGER = 638;
public static final int L3_M2M2_AUGER = 639;
public static final int L3_M2M3_AUGER = 640;
public static final int L3_M2M4_AUGER = 641;
public static final int L3_M2M5_AUGER = 642;
public static final int L3_M2N1_AUGER = 643;
public static final int L3_M2N2_AUGER = 644;
public static final int L3_M2N3_AUGER = 645;
public static final int L3_M2N4_AUGER = 646;
public static final int L3_M2N5_AUGER = 647;
public static final int L3_M2N6_AUGER = 648;
public static final int L3_M2N7_AUGER = 649;
public static final int L3_M2O1_AUGER = 650;
public static final int L3_M2O2_AUGER = 651;
public static final int L3_M2O3_AUGER = 652;
public static final int L3_M2O4_AUGER = 653;
public static final int L3_M2O5_AUGER = 654;
public static final int L3_M2O6_AUGER = 655;
public static final int L3_M2O7_AUGER = 656;
public static final int L3_M2P1_AUGER = 657;
public static final int L3_M2P2_AUGER = 658;
public static final int L3_M2P3_AUGER = 659;
public static final int L3_M2P4_AUGER = 660;
public static final int L3_M2P5_AUGER = 661;
public static final int L3_M2Q1_AUGER = 662;
public static final int L3_M2Q2_AUGER = 663;
public static final int L3_M2Q3_AUGER = 664;
public static final int L3_M3M1_AUGER = 665;
public static final int L3_M3M2_AUGER = 666;
public static final int L3_M3M3_AUGER = 667;
public static final int L3_M3M4_AUGER = 668;
public static final int L3_M3M5_AUGER = 669;
public static final int L3_M3N1_AUGER = 670;
public static final int L3_M3N2_AUGER = 671;
public static final int L3_M3N3_AUGER = 672;
public static final int L3_M3N4_AUGER = 673;
public static final int L3_M3N5_AUGER = 674;
public static final int L3_M3N6_AUGER = 675;
public static final int L3_M3N7_AUGER = 676;
public static final int L3_M3O1_AUGER = 677;
public static final int L3_M3O2_AUGER = 678;
public static final int L3_M3O3_AUGER = 679;
public static final int L3_M3O4_AUGER = 680;
public static final int L3_M3O5_AUGER = 681;
public static final int L3_M3O6_AUGER = 682;
public static final int L3_M3O7_AUGER = 683;
public static final int L3_M3P1_AUGER = 684;
public static final int L3_M3P2_AUGER = 685;
public static final int L3_M3P3_AUGER = 686;
public static final int L3_M3P4_AUGER = 687;
public static final int L3_M3P5_AUGER = 688;
public static final int L3_M3Q1_AUGER = 689;
public static final int L3_M3Q2_AUGER = 690;
public static final int L3_M3Q3_AUGER = 691;
public static final int L3_M4M1_AUGER = 692;
public static final int L3_M4M2_AUGER = 693;
public static final int L3_M4M3_AUGER = 694;
public static final int L3_M4M4_AUGER = 695;
public static final int L3_M4M5_AUGER = 696;
public static final int L3_M4N1_AUGER = 697;
public static final int L3_M4N2_AUGER = 698;
public static final int L3_M4N3_AUGER = 699;
public static final int L3_M4N4_AUGER = 700;
public static final int L3_M4N5_AUGER = 701;
public static final int L3_M4N6_AUGER = 702;
public static final int L3_M4N7_AUGER = 703;
public static final int L3_M4O1_AUGER = 704;
public static final int L3_M4O2_AUGER = 705;
public static final int L3_M4O3_AUGER = 706;
public static final int L3_M4O4_AUGER = 707;
public static final int L3_M4O5_AUGER = 708;
public static final int L3_M4O6_AUGER = 709;
public static final int L3_M4O7_AUGER = 710;
public static final int L3_M4P1_AUGER = 711;
public static final int L3_M4P2_AUGER = 712;
public static final int L3_M4P3_AUGER = 713;
public static final int L3_M4P4_AUGER = 714;
public static final int L3_M4P5_AUGER = 715;
public static final int L3_M4Q1_AUGER = 716;
public static final int L3_M4Q2_AUGER = 717;
public static final int L3_M4Q3_AUGER = 718;
public static final int L3_M5M1_AUGER = 719;
public static final int L3_M5M2_AUGER = 720;
public static final int L3_M5M3_AUGER = 721;
public static final int L3_M5M4_AUGER = 722;
public static final int L3_M5M5_AUGER = 723;
public static final int L3_M5N1_AUGER = 724;
public static final int L3_M5N2_AUGER = 725;
public static final int L3_M5N3_AUGER = 726;
public static final int L3_M5N4_AUGER = 727;
public static final int L3_M5N5_AUGER = 728;
public static final int L3_M5N6_AUGER = 729;
public static final int L3_M5N7_AUGER = 730;
public static final int L3_M5O1_AUGER = 731;
public static final int L3_M5O2_AUGER = 732;
public static final int L3_M5O3_AUGER = 733;
public static final int L3_M5O4_AUGER = 734;
public static final int L3_M5O5_AUGER = 735;
public static final int L3_M5O6_AUGER = 736;
public static final int L3_M5O7_AUGER = 737;
public static final int L3_M5P1_AUGER = 738;
public static final int L3_M5P2_AUGER = 739;
public static final int L3_M5P3_AUGER = 740;
public static final int L3_M5P4_AUGER = 741;
public static final int L3_M5P5_AUGER = 742;
public static final int L3_M5Q1_AUGER = 743;
public static final int L3_M5Q2_AUGER = 744;
public static final int L3_M5Q3_AUGER = 745;
public static final int M1_M2M2_AUGER = 746;
public static final int M1_M2M3_AUGER = 747;
public static final int M1_M2M4_AUGER = 748;
public static final int M1_M2M5_AUGER = 749;
public static final int M1_M2N1_AUGER = 750;
public static final int M1_M2N2_AUGER = 751;
public static final int M1_M2N3_AUGER = 752;
public static final int M1_M2N4_AUGER = 753;
public static final int M1_M2N5_AUGER = 754;
public static final int M1_M2N6_AUGER = 755;
public static final int M1_M2N7_AUGER = 756;
public static final int M1_M2O1_AUGER = 757;
public static final int M1_M2O2_AUGER = 758;
public static final int M1_M2O3_AUGER = 759;
public static final int M1_M2O4_AUGER = 760;
public static final int M1_M2O5_AUGER = 761;
public static final int M1_M2O6_AUGER = 762;
public static final int M1_M2O7_AUGER = 763;
public static final int M1_M2P1_AUGER = 764;
public static final int M1_M2P2_AUGER = 765;
public static final int M1_M2P3_AUGER = 766;
public static final int M1_M2P4_AUGER = 767;
public static final int M1_M2P5_AUGER = 768;
public static final int M1_M2Q1_AUGER = 769;
public static final int M1_M2Q2_AUGER = 770;
public static final int M1_M2Q3_AUGER = 771;
public static final int M1_M3M2_AUGER = 772;
public static final int M1_M3M3_AUGER = 773;
public static final int M1_M3M4_AUGER = 774;
public static final int M1_M3M5_AUGER = 775;
public static final int M1_M3N1_AUGER = 776;
public static final int M1_M3N2_AUGER = 777;
public static final int M1_M3N3_AUGER = 778;
public static final int M1_M3N4_AUGER = 779;
public static final int M1_M3N5_AUGER = 780;
public static final int M1_M3N6_AUGER = 781;
public static final int M1_M3N7_AUGER = 782;
public static final int M1_M3O1_AUGER = 783;
public static final int M1_M3O2_AUGER = 784;
public static final int M1_M3O3_AUGER = 785;
public static final int M1_M3O4_AUGER = 786;
public static final int M1_M3O5_AUGER = 787;
public static final int M1_M3O6_AUGER = 788;
public static final int M1_M3O7_AUGER = 789;
public static final int M1_M3P1_AUGER = 790;
public static final int M1_M3P2_AUGER = 791;
public static final int M1_M3P3_AUGER = 792;
public static final int M1_M3P4_AUGER = 793;
public static final int M1_M3P5_AUGER = 794;
public static final int M1_M3Q1_AUGER = 795;
public static final int M1_M3Q2_AUGER = 796;
public static final int M1_M3Q3_AUGER = 797;
public static final int M1_M4M2_AUGER = 798;
public static final int M1_M4M3_AUGER = 799;
public static final int M1_M4M4_AUGER = 800;
public static final int M1_M4M5_AUGER = 801;
public static final int M1_M4N1_AUGER = 802;
public static final int M1_M4N2_AUGER = 803;
public static final int M1_M4N3_AUGER = 804;
public static final int M1_M4N4_AUGER = 805;
public static final int M1_M4N5_AUGER = 806;
public static final int M1_M4N6_AUGER = 807;
public static final int M1_M4N7_AUGER = 808;
public static final int M1_M4O1_AUGER = 809;
public static final int M1_M4O2_AUGER = 810;
public static final int M1_M4O3_AUGER = 811;
public static final int M1_M4O4_AUGER = 812;
public static final int M1_M4O5_AUGER = 813;
public static final int M1_M4O6_AUGER = 814;
public static final int M1_M4O7_AUGER = 815;
public static final int M1_M4P1_AUGER = 816;
public static final int M1_M4P2_AUGER = 817;
public static final int M1_M4P3_AUGER = 818;
public static final int M1_M4P4_AUGER = 819;
public static final int M1_M4P5_AUGER = 820;
public static final int M1_M4Q1_AUGER = 821;
public static final int M1_M4Q2_AUGER = 822;
public static final int M1_M4Q3_AUGER = 823;
public static final int M1_M5M2_AUGER = 824;
public static final int M1_M5M3_AUGER = 825;
public static final int M1_M5M4_AUGER = 826;
public static final int M1_M5M5_AUGER = 827;
public static final int M1_M5N1_AUGER = 828;
public static final int M1_M5N2_AUGER = 829;
public static final int M1_M5N3_AUGER = 830;
public static final int M1_M5N4_AUGER = 831;
public static final int M1_M5N5_AUGER = 832;
public static final int M1_M5N6_AUGER = 833;
public static final int M1_M5N7_AUGER = 834;
public static final int M1_M5O1_AUGER = 835;
public static final int M1_M5O2_AUGER = 836;
public static final int M1_M5O3_AUGER = 837;
public static final int M1_M5O4_AUGER = 838;
public static final int M1_M5O5_AUGER = 839;
public static final int M1_M5O6_AUGER = 840;
public static final int M1_M5O7_AUGER = 841;
public static final int M1_M5P1_AUGER = 842;
public static final int M1_M5P2_AUGER = 843;
public static final int M1_M5P3_AUGER = 844;
public static final int M1_M5P4_AUGER = 845;
public static final int M1_M5P5_AUGER = 846;
public static final int M1_M5Q1_AUGER = 847;
public static final int M1_M5Q2_AUGER = 848;
public static final int M1_M5Q3_AUGER = 849;
public static final int M2_M3M3_AUGER = 850;
public static final int M2_M3M4_AUGER = 851;
public static final int M2_M3M5_AUGER = 852;
public static final int M2_M3N1_AUGER = 853;
public static final int M2_M3N2_AUGER = 854;
public static final int M2_M3N3_AUGER = 855;
public static final int M2_M3N4_AUGER = 856;
public static final int M2_M3N5_AUGER = 857;
public static final int M2_M3N6_AUGER = 858;
public static final int M2_M3N7_AUGER = 859;
public static final int M2_M3O1_AUGER = 860;
public static final int M2_M3O2_AUGER = 861;
public static final int M2_M3O3_AUGER = 862;
public static final int M2_M3O4_AUGER = 863;
public static final int M2_M3O5_AUGER = 864;
public static final int M2_M3O6_AUGER = 865;
public static final int M2_M3O7_AUGER = 866;
public static final int M2_M3P1_AUGER = 867;
public static final int M2_M3P2_AUGER = 868;
public static final int M2_M3P3_AUGER = 869;
public static final int M2_M3P4_AUGER = 870;
public static final int M2_M3P5_AUGER = 871;
public static final int M2_M3Q1_AUGER = 872;
public static final int M2_M3Q2_AUGER = 873;
public static final int M2_M3Q3_AUGER = 874;
public static final int M2_M4M3_AUGER = 875;
public static final int M2_M4M4_AUGER = 876;
public static final int M2_M4M5_AUGER = 877;
public static final int M2_M4N1_AUGER = 878;
public static final int M2_M4N2_AUGER = 879;
public static final int M2_M4N3_AUGER = 880;
public static final int M2_M4N4_AUGER = 881;
public static final int M2_M4N5_AUGER = 882;
public static final int M2_M4N6_AUGER = 883;
public static final int M2_M4N7_AUGER = 884;
public static final int M2_M4O1_AUGER = 885;
public static final int M2_M4O2_AUGER = 886;
public static final int M2_M4O3_AUGER = 887;
public static final int M2_M4O4_AUGER = 888;
public static final int M2_M4O5_AUGER = 889;
public static final int M2_M4O6_AUGER = 890;
public static final int M2_M4O7_AUGER = 891;
public static final int M2_M4P1_AUGER = 892;
public static final int M2_M4P2_AUGER = 893;
public static final int M2_M4P3_AUGER = 894;
public static final int M2_M4P4_AUGER = 895;
public static final int M2_M4P5_AUGER = 896;
public static final int M2_M4Q1_AUGER = 897;
public static final int M2_M4Q2_AUGER = 898;
public static final int M2_M4Q3_AUGER = 899;
public static final int M2_M5M3_AUGER = 900;
public static final int M2_M5M4_AUGER = 901;
public static final int M2_M5M5_AUGER = 902;
public static final int M2_M5N1_AUGER = 903;
public static final int M2_M5N2_AUGER = 904;
public static final int M2_M5N3_AUGER = 905;
public static final int M2_M5N4_AUGER = 906;
public static final int M2_M5N5_AUGER = 907;
public static final int M2_M5N6_AUGER = 908;
public static final int M2_M5N7_AUGER = 909;
public static final int M2_M5O1_AUGER = 910;
public static final int M2_M5O2_AUGER = 911;
public static final int M2_M5O3_AUGER = 912;
public static final int M2_M5O4_AUGER = 913;
public static final int M2_M5O5_AUGER = 914;
public static final int M2_M5O6_AUGER = 915;
public static final int M2_M5O7_AUGER = 916;
public static final int M2_M5P1_AUGER = 917;
public static final int M2_M5P2_AUGER = 918;
public static final int M2_M5P3_AUGER = 919;
public static final int M2_M5P4_AUGER = 920;
public static final int M2_M5P5_AUGER = 921;
public static final int M2_M5Q1_AUGER = 922;
public static final int M2_M5Q2_AUGER = 923;
public static final int M2_M5Q3_AUGER = 924;
public static final int M3_M4M4_AUGER = 925;
public static final int M3_M4M5_AUGER = 926;
public static final int M3_M4N1_AUGER = 927;
public static final int M3_M4N2_AUGER = 928;
public static final int M3_M4N3_AUGER = 929;
public static final int M3_M4N4_AUGER = 930;
public static final int M3_M4N5_AUGER = 931;
public static final int M3_M4N6_AUGER = 932;
public static final int M3_M4N7_AUGER = 933;
public static final int M3_M4O1_AUGER = 934;
public static final int M3_M4O2_AUGER = 935;
public static final int M3_M4O3_AUGER = 936;
public static final int M3_M4O4_AUGER = 937;
public static final int M3_M4O5_AUGER = 938;
public static final int M3_M4O6_AUGER = 939;
public static final int M3_M4O7_AUGER = 940;
public static final int M3_M4P1_AUGER = 941;
public static final int M3_M4P2_AUGER = 942;
public static final int M3_M4P3_AUGER = 943;
public static final int M3_M4P4_AUGER = 944;
public static final int M3_M4P5_AUGER = 945;
public static final int M3_M4Q1_AUGER = 946;
public static final int M3_M4Q2_AUGER = 947;
public static final int M3_M4Q3_AUGER = 948;
public static final int M3_M5M4_AUGER = 949;
public static final int M3_M5M5_AUGER = 950;
public static final int M3_M5N1_AUGER = 951;
public static final int M3_M5N2_AUGER = 952;
public static final int M3_M5N3_AUGER = 953;
public static final int M3_M5N4_AUGER = 954;
public static final int M3_M5N5_AUGER = 955;
public static final int M3_M5N6_AUGER = 956;
public static final int M3_M5N7_AUGER = 957;
public static final int M3_M5O1_AUGER = 958;
public static final int M3_M5O2_AUGER = 959;
public static final int M3_M5O3_AUGER = 960;
public static final int M3_M5O4_AUGER = 961;
public static final int M3_M5O5_AUGER = 962;
public static final int M3_M5O6_AUGER = 963;
public static final int M3_M5O7_AUGER = 964;
public static final int M3_M5P1_AUGER = 965;
public static final int M3_M5P2_AUGER = 966;
public static final int M3_M5P3_AUGER = 967;
public static final int M3_M5P4_AUGER = 968;
public static final int M3_M5P5_AUGER = 969;
public static final int M3_M5Q1_AUGER = 970;
public static final int M3_M5Q2_AUGER = 971;
public static final int M3_M5Q3_AUGER = 972;
public static final int M4_M5M5_AUGER = 973;
public static final int M4_M5N1_AUGER = 974;
public static final int M4_M5N2_AUGER = 975;
public static final int M4_M5N3_AUGER = 976;
public static final int M4_M5N4_AUGER = 977;
public static final int M4_M5N5_AUGER = 978;
public static final int M4_M5N6_AUGER = 979;
public static final int M4_M5N7_AUGER = 980;
public static final int M4_M5O1_AUGER = 981;
public static final int M4_M5O2_AUGER = 982;
public static final int M4_M5O3_AUGER = 983;
public static final int M4_M5O4_AUGER = 984;
public static final int M4_M5O5_AUGER = 985;
public static final int M4_M5O6_AUGER = 986;
public static final int M4_M5O7_AUGER = 987;
public static final int M4_M5P1_AUGER = 988;
public static final int M4_M5P2_AUGER = 989;
public static final int M4_M5P3_AUGER = 990;
public static final int M4_M5P4_AUGER = 991;
public static final int M4_M5P5_AUGER = 992;
public static final int M4_M5Q1_AUGER = 993;
public static final int M4_M5Q2_AUGER = 994;
public static final int M4_M5Q3_AUGER = 995;
public static final int NIST_COMPOUND_A_150_TISSUE_EQUIVALENT_PLASTIC = 0;
public static final int NIST_COMPOUND_ACETONE = 1;
public static final int NIST_COMPOUND_ACETYLENE = 2;
public static final int NIST_COMPOUND_ADENINE = 3;
public static final int NIST_COMPOUND_ADIPOSE_TISSUE_ICRP = 4;
public static final int NIST_COMPOUND_AIR_DRY_NEAR_SEA_LEVEL = 5;
public static final int NIST_COMPOUND_ALANINE = 6;
public static final int NIST_COMPOUND_ALUMINUM_OXIDE = 7;
public static final int NIST_COMPOUND_AMBER = 8;
public static final int NIST_COMPOUND_AMMONIA = 9;
public static final int NIST_COMPOUND_ANILINE = 10;
public static final int NIST_COMPOUND_ANTHRACENE = 11;
public static final int NIST_COMPOUND_B_100_BONE_EQUIVALENT_PLASTIC = 12;
public static final int NIST_COMPOUND_BAKELITE = 13;
public static final int NIST_COMPOUND_BARIUM_FLUORIDE = 14;
public static final int NIST_COMPOUND_BARIUM_SULFATE = 15;
public static final int NIST_COMPOUND_BENZENE = 16;
public static final int NIST_COMPOUND_BERYLLIUM_OXIDE = 17;
public static final int NIST_COMPOUND_BISMUTH_GERMANIUM_OXIDE = 18;
public static final int NIST_COMPOUND_BLOOD_ICRP = 19;
public static final int NIST_COMPOUND_BONE_COMPACT_ICRU = 20;
public static final int NIST_COMPOUND_BONE_CORTICAL_ICRP = 21;
public static final int NIST_COMPOUND_BORON_CARBIDE = 22;
public static final int NIST_COMPOUND_BORON_OXIDE = 23;
public static final int NIST_COMPOUND_BRAIN_ICRP = 24;
public static final int NIST_COMPOUND_BUTANE = 25;
public static final int NIST_COMPOUND_N_BUTYL_ALCOHOL = 26;
public static final int NIST_COMPOUND_C_552_AIR_EQUIVALENT_PLASTIC = 27;
public static final int NIST_COMPOUND_CADMIUM_TELLURIDE = 28;
public static final int NIST_COMPOUND_CADMIUM_TUNGSTATE = 29;
public static final int NIST_COMPOUND_CALCIUM_CARBONATE = 30;
public static final int NIST_COMPOUND_CALCIUM_FLUORIDE = 31;
public static final int NIST_COMPOUND_CALCIUM_OXIDE = 32;
public static final int NIST_COMPOUND_CALCIUM_SULFATE = 33;
public static final int NIST_COMPOUND_CALCIUM_TUNGSTATE = 34;
public static final int NIST_COMPOUND_CARBON_DIOXIDE = 35;
public static final int NIST_COMPOUND_CARBON_TETRACHLORIDE = 36;
public static final int NIST_COMPOUND_CELLULOSE_ACETATE_CELLOPHANE = 37;
public static final int NIST_COMPOUND_CELLULOSE_ACETATE_BUTYRATE = 38;
public static final int NIST_COMPOUND_CELLULOSE_NITRATE = 39;
public static final int NIST_COMPOUND_CERIC_SULFATE_DOSIMETER_SOLUTION = 40;
public static final int NIST_COMPOUND_CESIUM_FLUORIDE = 41;
public static final int NIST_COMPOUND_CESIUM_IODIDE = 42;
public static final int NIST_COMPOUND_CHLOROBENZENE = 43;
public static final int NIST_COMPOUND_CHLOROFORM = 44;
public static final int NIST_COMPOUND_CONCRETE_PORTLAND = 45;
public static final int NIST_COMPOUND_CYCLOHEXANE = 46;
public static final int NIST_COMPOUND_12_DDIHLOROBENZENE = 47;
public static final int NIST_COMPOUND_DICHLORODIETHYL_ETHER = 48;
public static final int NIST_COMPOUND_12_DICHLOROETHANE = 49;
public static final int NIST_COMPOUND_DIETHYL_ETHER = 50;
public static final int NIST_COMPOUND_NN_DIMETHYL_FORMAMIDE = 51;
public static final int NIST_COMPOUND_DIMETHYL_SULFOXIDE = 52;
public static final int NIST_COMPOUND_ETHANE = 53;
public static final int NIST_COMPOUND_ETHYL_ALCOHOL = 54;
public static final int NIST_COMPOUND_ETHYL_CELLULOSE = 55;
public static final int NIST_COMPOUND_ETHYLENE = 56;
public static final int NIST_COMPOUND_EYE_LENS_ICRP = 57;
public static final int NIST_COMPOUND_FERRIC_OXIDE = 58;
public static final int NIST_COMPOUND_FERROBORIDE = 59;
public static final int NIST_COMPOUND_FERROUS_OXIDE = 60;
public static final int NIST_COMPOUND_FERROUS_SULFATE_DOSIMETER_SOLUTION = 61;
public static final int NIST_COMPOUND_FREON_12 = 62;
public static final int NIST_COMPOUND_FREON_12B2 = 63;
public static final int NIST_COMPOUND_FREON_13 = 64;
public static final int NIST_COMPOUND_FREON_13B1 = 65;
public static final int NIST_COMPOUND_FREON_13I1 = 66;
public static final int NIST_COMPOUND_GADOLINIUM_OXYSULFIDE = 67;
public static final int NIST_COMPOUND_GALLIUM_ARSENIDE = 68;
public static final int NIST_COMPOUND_GEL_IN_PHOTOGRAPHIC_EMULSION = 69;
public static final int NIST_COMPOUND_GLASS_PYREX = 70;
public static final int NIST_COMPOUND_GLASS_LEAD = 71;
public static final int NIST_COMPOUND_GLASS_PLATE = 72;
public static final int NIST_COMPOUND_GLUCOSE = 73;
public static final int NIST_COMPOUND_GLUTAMINE = 74;
public static final int NIST_COMPOUND_GLYCEROL = 75;
public static final int NIST_COMPOUND_GUANINE = 76;
public static final int NIST_COMPOUND_GYPSUM_PLASTER_OF_PARIS = 77;
public static final int NIST_COMPOUND_N_HEPTANE = 78;
public static final int NIST_COMPOUND_N_HEXANE = 79;
public static final int NIST_COMPOUND_KAPTON_POLYIMIDE_FILM = 80;
public static final int NIST_COMPOUND_LANTHANUM_OXYBROMIDE = 81;
public static final int NIST_COMPOUND_LANTHANUM_OXYSULFIDE = 82;
public static final int NIST_COMPOUND_LEAD_OXIDE = 83;
public static final int NIST_COMPOUND_LITHIUM_AMIDE = 84;
public static final int NIST_COMPOUND_LITHIUM_CARBONATE = 85;
public static final int NIST_COMPOUND_LITHIUM_FLUORIDE = 86;
public static final int NIST_COMPOUND_LITHIUM_HYDRIDE = 87;
public static final int NIST_COMPOUND_LITHIUM_IODIDE = 88;
public static final int NIST_COMPOUND_LITHIUM_OXIDE = 89;
public static final int NIST_COMPOUND_LITHIUM_TETRABORATE = 90;
public static final int NIST_COMPOUND_LUNG_ICRP = 91;
public static final int NIST_COMPOUND_M3_WAX = 92;
public static final int NIST_COMPOUND_MAGNESIUM_CARBONATE = 93;
public static final int NIST_COMPOUND_MAGNESIUM_FLUORIDE = 94;
public static final int NIST_COMPOUND_MAGNESIUM_OXIDE = 95;
public static final int NIST_COMPOUND_MAGNESIUM_TETRABORATE = 96;
public static final int NIST_COMPOUND_MERCURIC_IODIDE = 97;
public static final int NIST_COMPOUND_METHANE = 98;
public static final int NIST_COMPOUND_METHANOL = 99;
public static final int NIST_COMPOUND_MIX_D_WAX = 100;
public static final int NIST_COMPOUND_MS20_TISSUE_SUBSTITUTE = 101;
public static final int NIST_COMPOUND_MUSCLE_SKELETAL = 102;
public static final int NIST_COMPOUND_MUSCLE_STRIATED = 103;
public static final int NIST_COMPOUND_MUSCLE_EQUIVALENT_LIQUID_WITH_SUCROSE = 104;
public static final int NIST_COMPOUND_MUSCLE_EQUIVALENT_LIQUID_WITHOUT_SUCROSE = 105;
public static final int NIST_COMPOUND_NAPHTHALENE = 106;
public static final int NIST_COMPOUND_NITROBENZENE = 107;
public static final int NIST_COMPOUND_NITROUS_OXIDE = 108;
public static final int NIST_COMPOUND_NYLON_DU_PONT_ELVAMIDE_8062 = 109;
public static final int NIST_COMPOUND_NYLON_TYPE_6_AND_TYPE_66 = 110;
public static final int NIST_COMPOUND_NYLON_TYPE_610 = 111;
public static final int NIST_COMPOUND_NYLON_TYPE_11_RILSAN = 112;
public static final int NIST_COMPOUND_OCTANE_LIQUID = 113;
public static final int NIST_COMPOUND_PARAFFIN_WAX = 114;
public static final int NIST_COMPOUND_N_PENTANE = 115;
public static final int NIST_COMPOUND_PHOTOGRAPHIC_EMULSION = 116;
public static final int NIST_COMPOUND_PLASTIC_SCINTILLATOR_VINYLTOLUENE_BASED = 117;
public static final int NIST_COMPOUND_PLUTONIUM_DIOXIDE = 118;
public static final int NIST_COMPOUND_POLYACRYLONITRILE = 119;
public static final int NIST_COMPOUND_POLYCARBONATE_MAKROLON_LEXAN = 120;
public static final int NIST_COMPOUND_POLYCHLOROSTYRENE = 121;
public static final int NIST_COMPOUND_POLYETHYLENE = 122;
public static final int NIST_COMPOUND_POLYETHYLENE_TEREPHTHALATE_MYLAR = 123;
public static final int NIST_COMPOUND_POLYMETHYL_METHACRALATE_LUCITE_PERSPEX = 124;
public static final int NIST_COMPOUND_POLYOXYMETHYLENE = 125;
public static final int NIST_COMPOUND_POLYPROPYLENE = 126;
public static final int NIST_COMPOUND_POLYSTYRENE = 127;
public static final int NIST_COMPOUND_POLYTETRAFLUOROETHYLENE_TEFLON = 128;
public static final int NIST_COMPOUND_POLYTRIFLUOROCHLOROETHYLENE = 129;
public static final int NIST_COMPOUND_POLYVINYL_ACETATE = 130;
public static final int NIST_COMPOUND_POLYVINYL_ALCOHOL = 131;
public static final int NIST_COMPOUND_POLYVINYL_BUTYRAL = 132;
public static final int NIST_COMPOUND_POLYVINYL_CHLORIDE = 133;
public static final int NIST_COMPOUND_POLYVINYLIDENE_CHLORIDE_SARAN = 134;
public static final int NIST_COMPOUND_POLYVINYLIDENE_FLUORIDE = 135;
public static final int NIST_COMPOUND_POLYVINYL_PYRROLIDONE = 136;
public static final int NIST_COMPOUND_POTASSIUM_IODIDE = 137;
public static final int NIST_COMPOUND_POTASSIUM_OXIDE = 138;
public static final int NIST_COMPOUND_PROPANE = 139;
public static final int NIST_COMPOUND_PROPANE_LIQUID = 140;
public static final int NIST_COMPOUND_N_PROPYL_ALCOHOL = 141;
public static final int NIST_COMPOUND_PYRIDINE = 142;
public static final int NIST_COMPOUND_RUBBER_BUTYL = 143;
public static final int NIST_COMPOUND_RUBBER_NATURAL = 144;
public static final int NIST_COMPOUND_RUBBER_NEOPRENE = 145;
public static final int NIST_COMPOUND_SILICON_DIOXIDE = 146;
public static final int NIST_COMPOUND_SILVER_BROMIDE = 147;
public static final int NIST_COMPOUND_SILVER_CHLORIDE = 148;
public static final int NIST_COMPOUND_SILVER_HALIDES_IN_PHOTOGRAPHIC_EMULSION = 149;
public static final int NIST_COMPOUND_SILVER_IODIDE = 150;
public static final int NIST_COMPOUND_SKIN_ICRP = 151;
public static final int NIST_COMPOUND_SODIUM_CARBONATE = 152;
public static final int NIST_COMPOUND_SODIUM_IODIDE = 153;
public static final int NIST_COMPOUND_SODIUM_MONOXIDE = 154;
public static final int NIST_COMPOUND_SODIUM_NITRATE = 155;
public static final int NIST_COMPOUND_STILBENE = 156;
public static final int NIST_COMPOUND_SUCROSE = 157;
public static final int NIST_COMPOUND_TERPHENYL = 158;
public static final int NIST_COMPOUND_TESTES_ICRP = 159;
public static final int NIST_COMPOUND_TETRACHLOROETHYLENE = 160;
public static final int NIST_COMPOUND_THALLIUM_CHLORIDE = 161;
public static final int NIST_COMPOUND_TISSUE_SOFT_ICRP = 162;
public static final int NIST_COMPOUND_TISSUE_SOFT_ICRU_FOUR_COMPONENT = 163;
public static final int NIST_COMPOUND_TISSUE_EQUIVALENT_GAS_METHANE_BASED = 164;
public static final int NIST_COMPOUND_TISSUE_EQUIVALENT_GAS_PROPANE_BASED = 165;
public static final int NIST_COMPOUND_TITANIUM_DIOXIDE = 166;
public static final int NIST_COMPOUND_TOLUENE = 167;
public static final int NIST_COMPOUND_TRICHLOROETHYLENE = 168;
public static final int NIST_COMPOUND_TRIETHYL_PHOSPHATE = 169;
public static final int NIST_COMPOUND_TUNGSTEN_HEXAFLUORIDE = 170;
public static final int NIST_COMPOUND_URANIUM_DICARBIDE = 171;
public static final int NIST_COMPOUND_URANIUM_MONOCARBIDE = 172;
public static final int NIST_COMPOUND_URANIUM_OXIDE = 173;
public static final int NIST_COMPOUND_UREA = 174;
public static final int NIST_COMPOUND_VALINE = 175;
public static final int NIST_COMPOUND_VITON_FLUOROELASTOMER = 176;
public static final int NIST_COMPOUND_WATER_LIQUID = 177;
public static final int NIST_COMPOUND_WATER_VAPOR = 178;
public static final int NIST_COMPOUND_XYLENE = 179;
private static final String[] MendelArray = { "",
"H", "He", "Li", "Be", "B", "C", "N", "O", "F", "Ne",
"Na", "Mg", "Al", "Si", "P", "S", "Cl", "Ar", "K", "Ca",
"Sc", "Ti", "V", "Cr", "Mn", "Fe", "Co", "Ni", "Cu", "Zn",
"Ga", "Ge", "As", "Se", "Br", "Kr", "Rb", "Sr", "Y", "Zr",
"Nb", "Mo", "Tc", "Ru", "Rh", "Pd", "Ag", "Cd", "In", "Sn",
"Sb", "Te", "I", "Xe", "Cs", "Ba", "La", "Ce", "Pr", "Nd",
"Pm", "Sm", "Eu", "Gd", "Tb", "Dy", "Ho", "Er", "Tm", "Yb",
"Lu", "Hf", "Ta", "W", "Re", "Os", "Ir", "Pt", "Au", "Hg",
"Tl", "Pb", "Bi", "Po", "At", "Rn", "Fr", "Ra", "Ac", "Th",
"Pa", "U", "Np", "Pu", "Am", "Cm", "Bk", "Cf", "Es", "Fm",
"Md", "No", "Lr", "Rf", "Db", "Sg", "Bh"
};
public static final int RADIO_NUCLIDE_55FE = 0;
public static final int RADIO_NUCLIDE_57CO = 1;
public static final int RADIO_NUCLIDE_109CD = 2;
public static final int RADIO_NUCLIDE_125I = 3;
public static final int RADIO_NUCLIDE_137CS = 4;
public static final int RADIO_NUCLIDE_133BA = 5;
public static final int RADIO_NUCLIDE_153GD = 6;
public static final int RADIO_NUCLIDE_238PU = 7;
public static final int RADIO_NUCLIDE_241AM = 8;
public static final int RADIO_NUCLIDE_244CM = 9;
private static final int[] LB_LINE_MACROS = new int[]{
L2M4_LINE,
L2M3_LINE,
L3N5_LINE,
L3O4_LINE,
L3O5_LINE,
L3O45_LINE,
L3N1_LINE,
L3O1_LINE,
L3N6_LINE,
L3N7_LINE,
L3N4_LINE,
L1M3_LINE,
L1M2_LINE,
L1M5_LINE,
L1M4_LINE
};
private static class LineShellPair {
public final int line;
public final int shell;
public LineShellPair(int line, int shell) {
this.line = line;
this.shell = shell;
}
}
private static final LineShellPair[] lb_pairs = new LineShellPair[]{
new LineShellPair(L2M4_LINE, L2_SHELL), /* b1 */
new LineShellPair(L3N5_LINE, L3_SHELL), /* b2 */
new LineShellPair(L1M3_LINE, L1_SHELL), /* b3 */
new LineShellPair(L1M2_LINE, L1_SHELL), /* b4 */
new LineShellPair(L3O3_LINE, L3_SHELL), /* b5 */
new LineShellPair(L3O4_LINE, L3_SHELL), /* b5 */
new LineShellPair(L3N1_LINE, L3_SHELL) /* b6 */
};
private static final int KL1 = -KL1_LINE - 1;
private static final int KL2 = -KL2_LINE - 1;
private static final int KL3 = -KL3_LINE - 1;
private static final int KM1 = -KM1_LINE - 1;
private static final int KM2 = -KM2_LINE - 1;
private static final int KM3 = -KM3_LINE - 1;
private static final int KP5 = -KP5_LINE - 1;
private Xraylib() {
// intentionally empty constructor
}
}
|