CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventListSPECT.hh
Go to the documentation of this file.
1 
9 #ifndef IEVENTLISTSPECT_HH
10 #define IEVENTLISTSPECT_HH 1
11 
12 #include "iEventSPECT.hh"
13 
14 
15 
22 {
23  // -------------------------------------------------------------------
24  // Constructor & Destructor
25  public:
35 
36 
37  // -------------------------------------------------------------------
38  // Public member functions
39  public:
45  inline int AllocateSpecificData()
46  {return 0;}
51  void Describe();
52 
53 
54  // -------------------------------------------------------------------
55  // Public Get & Set functions
56  public:
61  inline uint8_t GetKind()
62  {return m_kind;}
67  inline FLTNB* GetPOI()
68  {return mp_POI;}
74  inline FLTNB GetPOI(int a_axis)
75  {return mp_POI[a_axis];}
80  inline FLTNB GetEventValue(int a_bin)
81  {return 1.;}
87  inline void SetKind(uint8_t a_value)
88  {m_kind = a_value;}
95  inline void SetPOI(int a_axis, FLTNBDATA a_value)
96  {mp_POI[a_axis] = (FLTNB)a_value;}
103  void SetEventValue(int a_bin, FLTNBDATA a_value);
104 
105 
106  // -------------------------------------------------------------------
107  // Private member functions
108  private:
109 
110 
111  // -------------------------------------------------------------------
112  // Data members
113  private:
114  uint8_t m_kind;
116 };
117 
118 #endif
#define FLTNB
Definition: gVariables.hh:55
Declaration of class iEventSPECT.
void SetPOI(int a_axis, FLTNBDATA a_value)
Initialize the POI of the crystal with a value for the specific axis.
#define FLTNBDATA
Definition: gVariables.hh:59
~iEventListSPECT()
iEventListSPECT destructor.
int AllocateSpecificData()
Function allowing the allocation of specific data. Return 0 by default for iEventListSPECT.
iEventListSPECT()
iEventListSPECT constructor. Initialize the member variables to their default values.
FLTNB GetEventValue(int a_bin)
void Describe()
This function can be used to get a description of the event printed out.
Inherit from vEvent. Main SPECT class for the Event objects.
Definition: iEventSPECT.hh:21
void SetEventValue(int a_bin, FLTNBDATA a_value)
Throw a warning (depending of verbosity) as the event value of a list-mode Event should be equal to 1...
FLTNB GetPOI(int a_axis)
void SetKind(uint8_t a_value)
Set the kind of coincidence.
Inherit from iEventSPECT. Class for SPECT list-mode events.