Returns the energy (center) of pileup peak. And the energies of two components. Parameters ---------- eline: str Name of the pileup peak, e.g. V_Ka1-Co_Ka1 Returns ------- list(float) Energy in keV of pileup peak and
(self, eline)
| 961 | return _elist |
| 962 | |
| 963 | def _get_pileup_lines(self, eline): |
| 964 | """ |
| 965 | Returns the energy (center) of pileup peak. And the energies of two components. |
| 966 | |
| 967 | Parameters |
| 968 | ---------- |
| 969 | eline: str |
| 970 | Name of the pileup peak, e.g. V_Ka1-Co_Ka1 |
| 971 | |
| 972 | Returns |
| 973 | ------- |
| 974 | list(float) |
| 975 | Energy in keV of pileup peak and two components |
| 976 | """ |
| 977 | try: |
| 978 | element_line1, element_line2 = eline.split("-") |
| 979 | e1_cen = get_eline_parameters(element_line1, self.incident_energy)["energy"] |
| 980 | e2_cen = get_eline_parameters(element_line2, self.incident_energy)["energy"] |
| 981 | en = [e1_cen + e2_cen, e1_cen, e2_cen] |
| 982 | except Exception: |
| 983 | en = [] |
| 984 | return en |
| 985 | |
| 986 | def _fill_elist_pileup(self, eline=None): |
| 987 | if eline is None: |
no test coverage detected