opengate.actors.arfactors ========================= .. py:module:: opengate.actors.arfactors Attributes ---------- .. autoapisummary:: opengate.actors.arfactors.garf Classes ------- .. autoapisummary:: opengate.actors.arfactors.ARFTrainingDatasetActor opengate.actors.arfactors.ARFActor Functions --------- .. autoapisummary:: opengate.actors.arfactors.check_channel_overlap opengate.actors.arfactors._setter_hook_image_spacing Module Contents --------------- .. py:data:: garf .. py:function:: check_channel_overlap(ch1, ch2) .. py:class:: ARFTrainingDatasetActor(*args, **kwargs) Bases: :py:obj:`opengate.actors.base.ActorBase`, :py:obj:`opengate_core.GateARFTrainingDatasetActor` The ARFTrainingDatasetActor build a root file with energy, angles, positions and energy windows of a spect detector. To be used by garf_train to train a ARF neural network. Note: Must inherit from ActorBase not from HitsCollectionActor, even if the cpp part inherit from HitsCollectionActor .. py:attribute:: user_info_defaults .. py:method:: __initcpp__() .. py:method:: initialize() .. py:method:: StartSimulationAction() .. py:method:: check_energy_window_actor() .. py:method:: EndSimulationAction() .. py:function:: _setter_hook_image_spacing(self, image_spacing) .. py:class:: ARFActor(*args, **kwargs) Bases: :py:obj:`opengate.actors.base.ActorBase`, :py:obj:`opengate_core.GateARFActor` The ARF Actor is attached to a volume. Every time a particle enter, it considers the energy and the direction of the particle. It runs the neural network model to provide the probability of detection in all energy windows. Output is an ITK image that can be retrieved with self.output_image .. py:attribute:: user_info_defaults .. py:attribute:: debug_nb_hits_before :value: None .. py:attribute:: debug_nb_hits :value: 0 .. py:attribute:: nn :value: None .. py:attribute:: model :value: None .. py:attribute:: model_data :value: None .. py:attribute:: batch_nb :value: 0 .. py:attribute:: detected_particles :value: 0 .. py:attribute:: lock .. py:attribute:: image_plane_spacing :value: None .. py:attribute:: image_plane_size_pixel :value: None .. py:attribute:: image_plane_size_mm :value: None .. py:attribute:: output_image :value: None .. py:attribute:: output_array :value: None .. py:attribute:: output_size :value: None .. py:attribute:: nb_ene :value: None .. py:method:: __initcpp__() .. py:method:: __getstate__() .. py:method:: initialize() .. py:method:: initialize_model() .. py:method:: initialize_device() .. py:method:: initialize_params() .. py:method:: apply(actor) .. py:method:: arf_build_image_from_projected_points(actor) .. py:method:: EndOfRunActionMasterThread(run_index) .. py:method:: EndSimulationAction()