CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
code/include/datafile/iEventPET.hh
Go to the documentation of this file.
1 
8 #ifndef IEVENTPET_HH
9 #define IEVENTPET_HH 1
10 
11 #include "vEvent.hh"
12 
19 class iEventPET : public vEvent
20 {
21  // -------------------------------------------------------------------
22  // Constructor & Destructor
23  public:
28  iEventPET();
32  virtual ~iEventPET();
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:
57  {return m_eventRdmRate;}
63  {return m_eventNormFactor;}
69  {return m_atnCorrFactor;}
75  inline void SetRandomRate(FLTNBDATA a_value)
76  {m_eventRdmRate = (FLTNB)a_value;}
82  inline void SetNormalizationFactor(FLTNBDATA a_value)
83  {m_eventNormFactor = (FLTNB)a_value;}
90  {m_atnCorrFactor = (FLTNB)a_value;}
103  virtual FLTNB GetEventValue(int a_bin) = 0;
110  virtual FLTNB GetAdditiveCorrections(int a_bin) = 0;
117  virtual void SetEventValue(int a_bin, FLTNBDATA a_value) = 0;
124  virtual void SetScatterRate(int a_bin, FLTNBDATA a_value) = 0;
130  virtual INTNB GetNbValueBins() = 0;
131 
132  // -------------------------------------------------------------------
133  // Private member functions
134  private:
135 
136  // -------------------------------------------------------------------
137  // Data members
138  protected:
142 };
143 
144 #endif
iEventPET()
iEventPET constructor. Initialize the member variables to their default values.
Declaration of class vEvent.
void SetNormalizationFactor(FLTNBDATA a_value)
virtual FLTNB GetEventValue(int a_bin)=0
virtual int AllocateSpecificData()=0
Pure virtual function implemented in the child classes, dedicated to the allocation of specific data ...
void SetAttenuationCorrectionFactor(FLTNBDATA a_value)
virtual void SetScatterRate(int a_bin, FLTNBDATA a_value)=0
virtual FLTNB GetAdditiveCorrections(int a_bin)=0
Inherit from vEvent. Main PET class for the Event objects.
Mother class for the Event objects.
virtual ~iEventPET()
iEventPET destructor
void SetRandomRate(FLTNBDATA a_value)
virtual void Describe()
This function can be used to get a description of the event printed out.
virtual void SetEventValue(int a_bin, FLTNBDATA a_value)=0
virtual INTNB GetNbValueBins()=0
Get the number of event value bins.