17 #ifndef __stir_listmode_CListModeDataPENN_H__ 18 #define __stir_listmode_CListModeDataPENN_H__ 33 virtual std::string get_name()
const;
35 virtual shared_ptr<CListRecord> get_empty_record_sptr()
const;
48 shared_ptr<CListRecord> sptr(
new CListRecordT(this->get_proj_data_info_sptr()->get_scanner_sptr()));
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;
The base class for reading PET (i.e. coincidence) list mode data.The only difference w...
Definition: CListModeData.h:50
unsigned int SavedPosition
Use this typedef for save/set_get_position.
Definition: ListModeData.h:130
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
Class for records in a PET list mode file.
Definition: CListRecord.h:66
Classes for listmode events for the PENNPET Explorer scanner.
Declaration of class stir::CListModeData.
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
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Base class for listmode data for PENNPET Explorer scanner.
Definition: CListModeDataPENN.h:27