32#ifndef __stir_listmode_CListModeDataSAFIR_H__
33#define __stir_listmode_CListModeDataSAFIR_H__
59template <
class CListRecordT>
69 const std::string& crystal_map_filename,
70 const std::string& template_proj_data_filename,
71 const double lor_randomization_sigma = 0.0);
72 CListModeDataSAFIR(
const std::string& listmode_filename,
const shared_ptr<const ProjDataInfo>& proj_data_info_sptr);
74 std::string
get_name()
const override;
94 std::string listmode_filename;
95 mutable shared_ptr<InputStreamWithRecords<CListRecordT, bool>> current_lm_data_ptr;
96 mutable std::vector<unsigned int> saved_get_positions;
98 shared_ptr<DetectorCoordinateMap> map;
Declaration of class stir::CListModeData.
Declaration of class stir::CListEventSAFIR and stir::CListRecordSAFIR with supporting classes.
Declarations of classes stir::CListRecord, and stir::CListEvent which are used for list mode data.
Declaration of class stir::DetectorCoordinateMap.
Declaration of class stir::ProjDataInfo.
Declaration of class stir::ProjData.
Succeeded reset() override
Call this function if you want to re-start reading at the beginning.
Definition CListModeDataSAFIR.cxx:127
SavedPosition save_get_position() override
Definition CListModeDataSAFIR.h:84
bool has_delayeds() const override
Definition CListModeDataSAFIR.h:91
Succeeded get_next_record(CListRecord &record_of_general_type) const override
Gets the next record in the listmode sequence.
Definition CListModeDataSAFIR.cxx:117
shared_ptr< CListRecord > get_empty_record_sptr() const override
Get a pointer to an empty record.
Definition CListModeDataSAFIR.cxx:107
CListModeDataSAFIR(const std::string &listmode_filename, const std::string &crystal_map_filename, const std::string &template_proj_data_filename, const double lor_randomization_sigma=0.0)
Definition CListModeDataSAFIR.cxx:53
Succeeded set_get_position(const SavedPosition &pos) override
Set the position for reading to a previously saved point.
Definition CListModeDataSAFIR.h:85
std::string get_name() const override
Returns the name of the list mode data.
Definition CListModeDataSAFIR.cxx:100
The base class for reading PET (i.e. coincidence) list mode data.
Definition CListModeData.h:51
Class for records in a PET list mode file.
Definition CListRecord.h:67
unsigned int SavedPosition
Use this typedef for save/set_get_position.
Definition ListModeData.h:129
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...