46 class LmToProjDataNiftyPET :
public LmToProjDataAbstract
50 LmToProjDataNiftyPET();
53 virtual ~LmToProjDataNiftyPET() {}
56 void set_span(
const int span) { _span = span; }
59 void set_cuda_device(
const char cuda_device) { _cuda_device = cuda_device; }
62 void set_cuda_verbosity(
const bool cuda_verbosity) { _cuda_verbosity = cuda_verbosity; }
65 void set_start_time(
const int start_time) { _start_time = start_time; }
68 void set_stop_time(
const int stop_time) { _stop_time = stop_time; }
71 void set_listmode_binary_file(
const std::string& listmode_binary_file) { _listmode_binary_file = listmode_binary_file; }
74 void set_norm_binary_file(
const std::string& norm_binary_file) { _norm_binary_file = norm_binary_file; }
77 virtual void process_data();
80 shared_ptr<const ProjData> get_prompts_sptr()
const {
return _prompts_sptr; }
83 shared_ptr<const ProjData> get_delayeds_sptr()
const {
return _delayeds_sptr; }
86 shared_ptr<const ProjData> get_randoms_sptr()
const {
return _randoms_sptr; }
89 shared_ptr<const ProjData> get_norm_sptr()
const 91 if (_norm_binary_file.empty())
92 error(
"Set norm binary filename before extracting listmode.");
98 void check_input()
const;
102 bool _cuda_verbosity;
103 int _start_time, _stop_time;
104 std::string _listmode_binary_file;
105 std::string _norm_binary_file;
106 shared_ptr<ProjData> _prompts_sptr;
107 shared_ptr<ProjData> _delayeds_sptr;
108 shared_ptr<ProjData> _randoms_sptr;
109 shared_ptr<ProjData> _norm_sptr;
Declaration of stir::error()
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
Abstract base class for listmode to projection data conversion.