STIR
6.2.0
|
A class that reads the listmode data from an LMF file. More...
#include "stir_experimental/listmode/CListModeDataLMF.h"
Public Member Functions | |
CListModeDataLMF (const std::string &listmode_filename) | |
Constructor taking a filename. | |
virtual std::time_t | get_scan_start_time_in_secs_since_1970 () const |
virtual shared_ptr< CListRecord > | get_empty_record_sptr () const |
Get a pointer to an empty record. More... | |
virtual bool | has_delayeds () const |
LMF listmode data stores delayed events as well (as opposed to prompts) | |
virtual Succeeded | get_next_record (CListRecord &event) const |
Gets the next record in the listmode sequence. | |
virtual Succeeded | reset () |
Call this function if you want to re-start reading at the beginning. | |
virtual SavedPosition | save_get_position () |
Save the current reading position. More... | |
virtual Succeeded | set_get_position (const SavedPosition &) |
Set the position for reading to a previously saved point. | |
![]() | |
ListModeData () | |
Default constructor. | |
virtual std::string | get_name () const =0 |
Returns the name of the list mode data. More... | |
shared_ptr< ListRecord > | get_empty_record_sptr () const |
Get a pointer to an empty record. More... | |
virtual Succeeded | get_next_record (ListRecord &event) const |
Gets the next record in the listmode sequence. | |
const Scanner & | get_scanner () const |
Get reference to scanner. More... | |
virtual unsigned long int | get_total_number_of_events () const |
Returns the total number of events in the listmode file. More... | |
virtual shared_ptr< const ProjDataInfo > | get_proj_data_info_sptr () const |
![]() | |
ExamData () | |
ExamData. More... | |
ExamData (const shared_ptr< const ExamInfo > &_this_exam) | |
virtual const ExamInfo & | get_exam_info () const |
virtual shared_ptr< const ExamInfo > | get_exam_info_sptr () const |
Get shared pointer to exam info. | |
virtual void | set_exam_info (ExamInfo const &) |
change exam info More... | |
void | set_exam_info_sptr (shared_ptr< const ExamInfo > new_exam_info_sptr) |
Additional Inherited Members | |
![]() | |
typedef ListModeData | hierarchy_base_type |
typedef used by read_from_file | |
typedef unsigned int | SavedPosition |
Use this typedef for save/set_get_position. | |
![]() | |
shared_ptr< ListRecord > | get_empty_record_helper_sptr () const override |
Succeeded | get_next (ListRecord &event) const override |
![]() | |
virtual void | set_proj_data_info_sptr (shared_ptr< const ProjDataInfo >) |
![]() | |
shared_ptr< const ProjDataInfo > | proj_data_info_sptr |
Has to be set by the derived class. More... | |
![]() | |
shared_ptr< const ExamInfo > | exam_info_sptr |
A class that reads the listmode data from an LMF file.
|
virtual |
Get a pointer to an empty record.
This is mainly/only useful to get a record of the correct type, that can then be passed to get_next_record().
Implements stir::CListModeData.
|
virtual |
Save the current reading position.
Note that the return value is not related to the number of events already read. In particular, you cannot do any arithmetic on it to skip a few events. This is different from e.g. std::streampos.
Implements stir::ListModeData.