CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
code/include/datafile/iEventCT.hh
Go to the documentation of this file.
1 
8 #ifndef IEVENTCT_HH
9 #define IEVENTCT_HH 1
10 
11 #include "vEvent.hh"
12 
19 class iEventCT : public vEvent
20 {
21  // -------------------------------------------------------------------
22  // Constructor & Destructor
23  public:
28  iEventCT();
32  virtual ~iEventCT();
33 
34  // -------------------------------------------------------------------
35  // Public member functions
36  public:
42  virtual int AllocateSpecificData() = 0;
47  virtual void Describe();
48 
49  // -------------------------------------------------------------------
50  // Public Get & Set functions
51  public:
58  {return m_eventBlankValue;}
64  {return m_eventScatRate;}
70  inline void SetBlankValue(FLTNBDATA a_value)
71  {m_eventBlankValue = (FLTNB)a_value;}
77  inline void SetScatterRate(FLTNBDATA a_value)
78  {m_eventScatRate = (FLTNB)a_value;}
84  inline FLTNB GetAdditiveCorrections(int a_bin)
85  {
86  (void)a_bin; // avoid 'unused parameter' compil. warnings
87  return m_eventScatRate;
88  }
94  {return 1.;}
101  virtual FLTNB GetEventValue(int a_bin) = 0;
108  virtual void SetEventValue(int a_bin, FLTNBDATA a_value) = 0;
114  virtual INTNB GetNbValueBins() = 0;
120  inline void MultiplyAdditiveCorrections(FLTNB a_factor)
121  {m_eventScatRate *= a_factor;}
122 
123  // -------------------------------------------------------------------
124  // Private member functions
125  private:
126 
127  // -------------------------------------------------------------------
128  // Data members
129  protected:
132 };
133 
134 #endif
virtual INTNB GetNbValueBins()=0
Get the number of event value bins.
Declaration of class vEvent.
void SetScatterRate(FLTNBDATA a_value)
Inherit from vEvent. Main CT class for the Event objects.
virtual void SetEventValue(int a_bin, FLTNBDATA a_value)=0
virtual int AllocateSpecificData()=0
Pure virtual function implemented in the child classes, dedicated to the allocation of specific data ...
void MultiplyAdditiveCorrections(FLTNB a_factor)
virtual ~iEventCT()
iEventCT destructor.
virtual void Describe()
This function can be used to get a description of the event printed out.
iEventCT()
iEventCT constructor. Initialize the member variables to their default values.
void SetBlankValue(FLTNBDATA a_value)
Mother class for the Event objects.
FLTNB GetAdditiveCorrections(int a_bin)
virtual FLTNB GetEventValue(int a_bin)=0