CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventSPECT.hh
Go to the documentation of this file.
1 
8 #ifndef IEVENTSPECT_HH
9 #define IEVENTSPECT_HH 1
10 
11 #include "vEvent.hh"
12 
13 
14 
21 class iEventSPECT : public vEvent
22 {
23  // -------------------------------------------------------------------
24  // Constructor & Destructor
25  public:
30  iEventSPECT();
34  virtual ~iEventSPECT();
35 
36 
37  // -------------------------------------------------------------------
38  // Public member functions
39  public:
45  virtual int AllocateSpecificData() = 0;
50  virtual void Describe();
51 
52 
53  // -------------------------------------------------------------------
54  // Public Get & Set functions
55  public:
61  {return m_eventNormFactor;}
67  {return m_eventScatRate;}
73  inline void SetNormalizationFactor(FLTNBDATA a_value)
74  {m_eventNormFactor = (FLTNB)a_value;}
80  inline void SetScatterRate(FLTNBDATA a_value)
81  {m_eventScatRate = (FLTNB)a_value;}
87  inline FLTNB GetAdditiveCorrections(int a_bin)
88  {return m_eventScatRate;}
94  {return m_eventNormFactor;}
101  virtual FLTNB GetEventValue(int a_bin) = 0;
108  virtual void SetEventValue(int a_bin, FLTNBDATA a_value) = 0;
109 
110 
111  // -------------------------------------------------------------------
112  // Private member functions
113  private:
114 
115 
116  // -------------------------------------------------------------------
117  // Data members
118  protected:
121 };
122 
123 #endif
void SetNormalizationFactor(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the normalization term...
Definition: iEventSPECT.hh:73
#define FLTNB
Definition: gVariables.hh:55
virtual void SetEventValue(int a_bin, FLTNBDATA a_value)=0
Set the event value, this is a pure virtual function implemented in the child classes.
virtual int AllocateSpecificData()=0
Pure virtual function implemented in the child classes, dedicated to the allocation of specific data ...
FLTNB GetMultiplicativeCorrections()
Definition: iEventSPECT.hh:93
virtual void Describe()
This function can be used to get a description of the event printed out.
Definition: iEventSPECT.cc:60
#define FLTNBDATA
Definition: gVariables.hh:59
virtual ~iEventSPECT()
iEventSPECT destructor.
Definition: iEventSPECT.cc:48
Declaration of class vEvent.
FLTNB m_eventScatRate
Definition: iEventSPECT.hh:119
FLTNB GetNormFactor()
Definition: iEventSPECT.hh:60
FLTNB m_eventNormFactor
Definition: iEventSPECT.hh:120
iEventSPECT()
iEventSPECT constructor. Initialize the member variables to their default values. ...
Definition: iEventSPECT.cc:32
Mother class for the Event objects.
Definition: vEvent.hh:23
Inherit from vEvent. Main SPECT class for the Event objects.
Definition: iEventSPECT.hh:21
FLTNB GetAdditiveCorrections(int a_bin)
Definition: iEventSPECT.hh:87
virtual FLTNB GetEventValue(int a_bin)=0
Pure virtual function implemented in the child classes.
FLTNB GetEventScatRate()
Definition: iEventSPECT.hh:66
void SetScatterRate(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the scatter correction rate...
Definition: iEventSPECT.hh:80