3.1.1.7.2.13. opengate.source.helpers_source¶
3.1.1.7.2.13.1. Module Contents¶
3.1.1.7.2.13.1.1. Functions¶
|
read the file downloaded from LNHB |
|
Given a list of (energy) bins center, compute the width of each bin. |
|
|
|
Compute the CDF (Cumulative Density Function) of a list of non-uniform energy bins |
|
like in G4SPSAngDistribution.cc |
|
3.1.1.7.2.13.1.2. Attributes¶
- opengate.source.helpers_source.all_beta_plus_radionuclides = ['F18', 'Ga68', 'Zr89', 'Na22', 'C11', 'N13', 'O15', 'Rb82'][source]¶
- opengate.source.helpers_source.read_beta_plus_spectra(rad_name)[source]¶
read the file downloaded from LNHB there are 15 lines-long header to skip first column is E(keV) second column is dNtot/dE b+ WARNING : bins width is not uniform (need to scale for density)
- opengate.source.helpers_source.compute_bins_density(bins)[source]¶
Given a list of (energy) bins center, compute the width of each bin.
- opengate.source.helpers_source.compute_cdf_and_total_yield(data, bins)[source]¶
Compute the CDF (Cumulative Density Function) of a list of non-uniform energy bins with associated probability. Also return the total probability.