3.10.1.2.1.7. opengate.actors.digitizers¶
3.10.1.2.1.7.1. Classes¶
Simple helper class to reduce the code size when creating a digitizer. |
|
Equivalent to Gate "adder": gather all hits of an event in the same volume. |
|
Digitizer module for blurring an attribute (single value only, not a vector). |
|
Digitizer module for blurring a (global) spatial position. |
|
Digitizer module for simulating efficiency. |
|
Consider a list of hits and arrange them according to energy intervals. |
|
Build a list of hits in a given volume. |
|
This actor takes as input HitsCollections and performed binning in 2D images. |
|
This actor is a DigitizerAdderActor + a discretization step: |
|
Similar to HitsCollectionActor : store a list of hits. |
3.10.1.2.1.7.2. Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3.10.1.2.1.7.3. Module Contents¶
- opengate.actors.digitizers.ene_win_down_scatter(name, peak_min_value, energy_width_percent)[source]¶
- opengate.actors.digitizers.energy_windows_peak_scatter(peak_name, down_scatter_name, up_scatter_name, peak, peak_width, down_scatter_width, up_scatter_width=None)[source]¶
- opengate.actors.digitizers.get_simplified_digitizer_channels_Tc99m(spect_name, scatter_flag)[source]¶
- opengate.actors.digitizers.get_simplified_digitizer_channels_Lu177(spect_name, scatter_flag)[source]¶
- opengate.actors.digitizers.get_simplified_digitizer_channels_In111(spect_name, scatter_flag)[source]¶
- opengate.actors.digitizers.get_simplified_digitizer_channels_I131(spect_name, scatter_flag)[source]¶
- opengate.actors.digitizers.get_simplified_digitizer_channels_rad(spect_name, rad, scatter_flag)[source]¶
- class opengate.actors.digitizers.Digitizer(sim, volume_name, digit_name)[source]¶
Simple helper class to reduce the code size when creating a digitizer. It only avoids repeating attached_to, output and input_digi_collection parameters.
- class opengate.actors.digitizers.DigitizerBase(*args, **kwargs)[source]¶
Bases:
opengate.actors.base.ActorBase- _add_user_output_root(**kwargs)[source]¶
Specialized method to add a root user output in digitizers. The output name is hard-coded at the class-level and the same for all digitizers, i.e. in all digitizers, the user can do: digitizer.user_output.root_output Additionally, the C++ classes expect an output with this name.
- class opengate.actors.digitizers.DigitizerAdderActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerAdderActorEquivalent to Gate “adder”: gather all hits of an event in the same volume. Input: a HitsCollection, need aat least TotalEnergyDeposit and PostPosition attributes Output: a Single collections
Policies: - EnergyWinnerPosition: consider position and energy of the hit with the max energy
for all other attributes (Time, etc.): the value of the winner is used.
- EnergyWeightedCentroidPosition: computed the energy-weighted centroid position
for all other attributes (Time, etc.): the value the last seen hit is used.
- class opengate.actors.digitizers.DigitizerBlurringActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerBlurringActorDigitizer module for blurring an attribute (single value only, not a vector). Usually for energy or time.
- class opengate.actors.digitizers.DigitizerSpatialBlurringActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerSpatialBlurringActorDigitizer module for blurring a (global) spatial position.
- class opengate.actors.digitizers.DigitizerEfficiencyActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerEfficiencyActorDigitizer module for simulating efficiency.
- class opengate.actors.digitizers.DigitizerEnergyWindowsActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerEnergyWindowsActorConsider a list of hits and arrange them according to energy intervals. Input: one DigiCollection Output: as many DigiCollections as the number of energy windows
- class opengate.actors.digitizers.DigitizerHitsCollectionActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerHitsCollectionActorBuild a list of hits in a given volume. - the list of attributes to be stored is given in the ‘attributes’ options - output as root
- class opengate.actors.digitizers.DigitizerProjectionActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GateDigitizerProjectionActorThis actor takes as input HitsCollections and performed binning in 2D images. If there are several HitsCollection as input, the slices will correspond to each HC. If there are several runs, images will also be slice-stacked.
- class opengate.actors.digitizers.DigitizerReadoutActor(*args, **kwargs)[source]¶
Bases:
DigitizerAdderActor,opengate_core.GateDigitizerReadoutActorThis actor is a DigitizerAdderActor + a discretization step: the final position is the center of the volume
- class opengate.actors.digitizers.PhaseSpaceActor(*args, **kwargs)[source]¶
Bases:
DigitizerBase,opengate_core.GatePhaseSpaceActorSimilar to HitsCollectionActor : store a list of hits. However only the first hit of given event is stored here.