CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventHistoPET.hh
Go to the documentation of this file.
1 
8 #ifndef IEVENTHISTOPET_HH
9 #define IEVENTHISTOPET_HH 1
10 
11 #include "iEventPET.hh"
12 
13 
14 
20 class iEventHistoPET : public iEventPET
21 {
22  // -------------------------------------------------------------------
23  // Constructor & Destructor
24  public:
34 
35 
36  // -------------------------------------------------------------------
37  // Public member functions
38  public:
50  void Describe();
51 
52 
53  // -------------------------------------------------------------------
54  // Public Get & Set functions
55  public:
61  inline FLTNB GetEventScatRate(int a_bin)
62  {return mp_eventScatRate[a_bin];}
67  inline uint16_t GetEventNbTOFBins()
68  {return m_eventNbTOFBins;}
74  inline FLTNB GetEventValue(int a_bin)
75  {return mp_eventValue[a_bin];}
82  inline void SetScatterRate(int a_bin, FLTNBDATA a_value)
83  {mp_eventScatRate[a_bin] = (FLTNB)a_value;}
89  inline void SetEventNbTOFBins(uint16_t a_value)
90  {m_eventNbTOFBins = a_value;}
97  inline void SetEventValue(int a_bin, FLTNBDATA a_value)
98  {mp_eventValue[a_bin] = (FLTNB)a_value;}
103  FLTNB GetAdditiveCorrections(int a_bin);
104 
105 
106  // -------------------------------------------------------------------
107  // Private member functions
108  private:
109 
110 
111  // -------------------------------------------------------------------
112  // Data members
113  private:
116  uint16_t m_eventNbTOFBins;
117 };
118 
119 #endif
~iEventHistoPET()
iEventHistoPET destructor.
void Describe()
This function can be used to get a description of the event printed out.
int AllocateSpecificData()
Function allowing the allocation of specific data. Instantiate and initialize the mp_eventValue and...
#define FLTNB
Definition: gVariables.hh:55
FLTNB GetEventScatRate(int a_bin)
void SetEventNbTOFBins(uint16_t a_value)
uint16_t GetEventNbTOFBins()
iEventHistoPET()
iEventHistoPET constructor. Initialize the member variables to their default values.
#define FLTNBDATA
Definition: gVariables.hh:59
FLTNB GetEventValue(int a_bin)
Inherit from iEventPET. Class for PET histogram mode events.
void SetEventValue(int a_bin, FLTNBDATA a_value)
Cast the FLTNBDATA value passed in parameters in FLTNB, and use it to set the event value of the spec...
FLTNB * mp_eventScatRate
void SetScatterRate(int a_bin, FLTNBDATA a_value)
Set the scatter rate correction term in 1/s, this is a pure virtual function implemented in the child...
uint16_t m_eventNbTOFBins
FLTNB GetAdditiveCorrections(int a_bin)
Inherit from vEvent. Main PET class for the Event objects.
Definition: iEventPET.hh:22
Declaration of class iEventPET.