17#ifndef __stir_listmode_CListModeDataPENN_H__
18#define __stir_listmode_CListModeDataPENN_H__
33 virtual std::string
get_name()
const;
49 CListRecordPENN& record =
static_cast<CListRecordPENN&
>(*sptr);
51 return lm_data_sptr->get_total_number_of_events(record);
61 inline void set_output_filename(
const std::string ofname) { lm_data_sptr->create_output_file(ofname); }
63 inline void set_event() { lm_data_sptr->set_current_record(); }
65 void set_event(
const bool& is_delay,
67 const unsigned short int& _xa,
68 const unsigned short int& _xb,
69 const unsigned short int& _za,
70 const unsigned short int& _zb,
71 const unsigned short int& _ea,
72 const unsigned short int& _eb);
75 typedef CListRecordPENN CListRecordT;
76 std::string listmode_filename;
77 shared_ptr<InputStreamWithRecordsFromUPENN> lm_data_sptr;
Declaration of class stir::CListModeData.
Classes for listmode events for the PENNPET Explorer scanner.
virtual Succeeded get_next_record(CListRecord &record) const
Gets the next record in the listmode sequence.
Definition CListModeDataPENN.cxx:84
CListModeDataPENN(const std::string &listmode_filename_prefix)
Construct fron the filename of the Interfile header.
Definition CListModeDataPENN.cxx:25
virtual std::string get_name() const
Returns the name of the list mode data.
Definition CListModeDataPENN.cxx:71
virtual Succeeded set_get_position(const SavedPosition &)
Set the position for reading to a previously saved point.
Definition CListModeDataPENN.cxx:103
virtual shared_ptr< CListRecord > get_empty_record_sptr() const
Get a pointer to an empty record.
Definition CListModeDataPENN.cxx:77
virtual Succeeded reset()
Call this function if you want to re-start reading at the beginning.
Definition CListModeDataPENN.cxx:91
virtual SavedPosition save_get_position()
Save the current reading position.
Definition CListModeDataPENN.cxx:97
virtual unsigned long int get_total_number_of_events() const
The safest way to get the total number of events is to count them.
Definition CListModeDataPENN.h:46
virtual bool has_delayeds() const
Return if the file stores delayed events as well (as opposed to prompts)
Definition CListModeDataPENN.h:54
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
virtual shared_ptr< const ProjDataInfo > get_proj_data_info_sptr() const
Get shared pointer to ProjData info.
Definition DataWithProjDataInfo.cxx:37
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...