11#ifndef __stir_recon_buildblock_DistributedWorker_h__
12# define __stir_recon_buildblock_DistributedWorker_h__
59template <
class TargetT>
63 double* log_likelihood_ptr;
64 bool zero_seg0_end_planes;
65 shared_ptr<ProjectorByBinPair> proj_pair_sptr;
66 shared_ptr<ExamInfo> exam_info_sptr;
67 shared_ptr<const ProjDataInfo> proj_data_info_sptr;
68 shared_ptr<TargetT> target_sptr;
70 int image_buffer_size;
74 shared_ptr<ProjData> proj_data_ptr;
75 shared_ptr<ProjData> binwise_correction;
76 shared_ptr<ProjData> mult_proj_data_sptr;
Declaration of class stir::ProjData.
Declares class stir::ProjectorByBinPair.
declares the stir::TimedObject class
void distributable_computation(RPC_process_related_viewgrams_type *RPC_process_related_viewgrams)
this does the actual computation corresponding to distributable_computation()
Definition DistributedWorker.cxx:236
void setup_distributable_computation()
Get basic information from the master.
Definition DistributedWorker.cxx:183
void set_defaults()
sets defaults for this object
Definition DistributedWorker.cxx:128
void start()
Infinite loop waiting for tasks from the master.
Definition DistributedWorker.cxx:137
base class for all objects which need timers. At the moment, there's only a CPU timer.
Definition TimedObject.h:36
Declaration of the main functions that perform parallel processing.
void RPC_process_related_viewgrams_type(const shared_ptr< ForwardProjectorByBin > &forward_projector_sptr, const shared_ptr< BackProjectorByBin > &back_projector_sptr, RelatedViewgrams< float > *measured_viewgrams_ptr, int &count, int &count2, double *log_likelihood_ptr, const RelatedViewgrams< float > *additive_binwise_correction_ptr, const RelatedViewgrams< float > *mult_viewgrams_ptr)
typedef for callback functions for distributable_computation()
Definition distributable.h:93
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...