3.10.1.21.1.5. opengate.sources.phidsources¶
3.10.1.21.1.5.1. Attributes¶
3.10.1.21.1.5.2. Classes¶
Manage a set of sources, one for each nuclide gamma lines, for all daughters of the given ion. |
|
For a given ion, extract all possible gamma emission, with corresponding intensity |
|
3.10.1.21.1.5.3. Functions¶
3.10.1.21.1.5.4. Module Contents¶
- class opengate.sources.phidsources.PhotonFromIonDecaySource(user_info)[source]¶
Bases:
opengate.sources.generic.GenericSourceManage a set of sources, one for each nuclide gamma lines, for all daughters of the given ion. Each source will have: - activity managed by a TAC, corresponding to the Bateman equation during the time range - spectrum energy line for isomeric transition - spectrum energy line for atomic relaxation (fluo)
- class opengate.sources.phidsources.PhotonIonDecayIsomericTransitionExtractor(z, a, verbose=False)[source]¶
For a given ion, extract all possible gamma emission, with corresponding intensity
1. Create a ‘fake’ gate simulation because G4 engine must be initialized. This is done in a separate process. The function “_get_all_gamma_emissions” is used.
- From the IonTable all the Decay Channels are extracted
-> function ‘_get_all_decay_channels’
- For one decay channel, we look all possible excitation levels
This is read in the G4 data file G4LEVELGAMMADATA of the corresponding ion -> _get_gammas_for_one_channel -> _get_gammas_for_one_level
- opengate.sources.phidsources.atomic_relaxation_store_to_file(nuclide_name, df, filename=None)[source]¶
- opengate.sources.phidsources.isomeric_transition_load(nuclide, filename=None, half_life=None)[source]¶
- opengate.sources.phidsources.isomeric_transition_store(nuclide_name, data_to_save, filename)[source]¶
- opengate.sources.phidsources.isomeric_transition_store_df_to_file(nuclide_name, df, filename=None)[source]¶
- opengate.sources.phidsources.isomeric_transition_load_from_df_file(nuclide_name, half_life, filename=None)[source]¶
- opengate.sources.phidsources.isomeric_transition_extract_from_ion_decay(nuclide, verbose=False)[source]¶
- opengate.sources.phidsources.get_tac_from_decay(ion_name, daughter, start_activity, start_time, end_time, bins)[source]¶
The following will be modified according to the TAC: ui.start_time, ui.end_time, ui.activity.
param is ui.tac_from_decay_parameters param is a dict with: - nuclide: a Nuclide object from radioactivedecay module, with the main ion - daughter: the daughter for which we compute the intensity in the time intervals - bins: number of bins for the discretised TAC
run_timing_intervals: is the list of time range from the Simulation
- class opengate.sources.phidsources.NumpyArrayHandler[source]¶
Bases:
jsonpickle.handlers.BaseHandler
- opengate.sources.phidsources.gid_build_all_sub_sources(source)[source]¶
Build all gamma sources for the given nuclide all isomeric transition gammas and all atomic relaxation fluo x-rays
- opengate.sources.phidsources.gid_build_all_sub_sources_atomic_relaxation(ui, z, a, debug_first_daughter_only=False)[source]¶
- opengate.sources.phidsources.gid_build_all_sub_sources_isomeric_transition(ui, z, a)[source]¶
Build (or read from file) all isomeric transition gammas for all daughters in the decay