17#ifndef __stir_listmode_CListRecordPENN_H__
18#define __stir_listmode_CListRecordPENN_H__
33 CListEventPENN(
const shared_ptr<Scanner>& scanner_sptr);
39 void init_from_data(
bool d,
int dt,
int xa,
int xb,
int za,
int zb,
int ea,
int eb);
41 inline bool is_prompt()
const {
return delay ==
false; }
49 return Succeeded::yes;
53 std::vector<int> segment_sequence;
54 std::vector<int> sizes;
59 short int orig_tof_bin;
65 unsigned short int orig_z1, orig_z2;
67 int quarter_of_detectors;
72class CListTimePENN :
public ListTime
75 Succeeded init_from_data_ptr(
const void*
const ptr) {
return Succeeded::yes; }
76 bool is_time()
const {
return false; }
77 inline unsigned long get_time_in_millisecs()
const {
return 0; }
78 inline Succeeded set_time_in_millisecs(
const unsigned long time_in_millisecs) {
return Succeeded::yes; }
85class CListRecordPENN :
public CListRecord
90 bool is_time()
const {
return false; }
95 bool is_event()
const {
return true; }
96 virtual CListEventPENN& event() {
return this->event_data; }
97 virtual const CListEventPENN& event()
const {
return this->event_data; }
98 virtual CListTimePENN& time() {
return this->time_data; }
99 virtual const CListTimePENN& time()
const {
return this->time_data; }
101 bool operator==(
const CListRecord& e2)
const {}
104 CListRecordPENN(
const shared_ptr<Scanner>& scanner_sptr)
105 : event_data(scanner_sptr)
108 virtual Succeeded init_from_data(
int is_delay,
int dt,
int xa,
int xb,
int za,
int zb,
int ea,
int eb)
111 this->event_data.init_from_data(is_delay, dt, xa, xb, za, zb, ea, eb);
114 return Succeeded::yes;
118 CListEventPENN event_data;
119 CListTimePENN time_data;
Declarations of class stir::CListEventCylindricalScannerWithDiscreteDetectors.
Class for storing and using a coincidence event from a list mode file for a cylindrical scanner.
Definition CListEventCylindricalScannerWithDiscreteDetectors.h:33
virtual void get_detection_position(DetectionPositionPair<> &) const
This routine returns the corresponding detector pair.
Definition CListRecordPENN.cxx:29
virtual void set_detection_position(const DetectionPositionPair<> &)
This routine sets in a coincidence event from detector "indices".
Definition CListRecordPENN.cxx:42
Succeeded set_prompt(const bool _prompt=true)
Changes the event from prompt to delayed or vice versa.
Definition CListRecordPENN.h:43
A class for storing 2 coordinates-sets of a detection, together with a timing-position index (for TOF...
Definition DetectionPositionPair.h:41
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44