CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
include/datafile/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 
18 class iEventHistoPET : public iEventPET
19 {
20  // -------------------------------------------------------------------
21  // Constructor & Destructor
22  public:
32 
33  // -------------------------------------------------------------------
34  // Public member functions
35  public:
47  void Describe();
48 
49  // -------------------------------------------------------------------
50  // Public Get & Set functions
51  public:
57  inline FLTNB GetEventScatRate(int a_bin)
58  {return mp_eventScatRate[a_bin];}
63  inline uint16_t GetEventNbTOFBins()
64  {return m_eventNbTOFBins;}
70  inline FLTNB GetEventValue(int a_bin)
71  {return mp_eventValue[a_bin];}
78  inline void SetScatterRate(int a_bin, FLTNBDATA a_value)
79  {mp_eventScatRate[a_bin] = (FLTNB)a_value;}
85  inline void SetEventNbTOFBins(uint16_t a_value)
86  {m_eventNbTOFBins = a_value;}
93  inline void SetEventValue(int a_bin, FLTNBDATA a_value)
94  {mp_eventValue[a_bin] = (FLTNB)a_value;}
101  {return m_eventNbTOFBins;}
106  FLTNB GetAdditiveCorrections(int a_bin);
112  inline void MultiplyAdditiveCorrections(FLTNB a_factor)
113  {m_eventRdmRate *= a_factor; for (uint16_t tof=0; tof<m_eventNbTOFBins; tof++) mp_eventScatRate[tof] *= a_factor;}
114 
115  // -------------------------------------------------------------------
116  // Private member functions
117  private:
118 
119  // -------------------------------------------------------------------
120  // Data members
121  private:
124  uint16_t m_eventNbTOFBins;
125 };
126 
127 #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...
void SetEventNbTOFBins(uint16_t a_value)
void MultiplyAdditiveCorrections(FLTNB a_factor)
iEventHistoPET()
iEventHistoPET constructor. Initialize the member variables to their default values.
Inherit from iEventPET. Class for PET histogram mode events.
void SetEventValue(int a_bin, FLTNBDATA a_value)
void SetScatterRate(int a_bin, FLTNBDATA a_value)
FLTNB GetAdditiveCorrections(int a_bin)
Inherit from vEvent. Main PET class for the Event objects.
INTNB GetNbValueBins()
Get the number of event value bins.
Declaration of class iEventPET.