CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventPET.hh
Go to the documentation of this file.
1 
9 #ifndef IEVENTPET_HH
10 #define IEVENTPET_HH 1
11 
12 #include "vEvent.hh"
13 
14 
15 
22 class iEventPET : public vEvent
23 {
24  // -------------------------------------------------------------------
25  // Constructor & Destructor
26  public:
31  iEventPET();
35  virtual ~iEventPET();
36 
37 
38  // -------------------------------------------------------------------
39  // Public member functions
40  public:
46  virtual int AllocateSpecificData() = 0;
51  virtual void Describe();
52 
53  // -------------------------------------------------------------------
54  // Public Get & Set functions
55  public:
61  {return m_eventRdmRate;}
67  {return m_eventNormFactor;}
73  {return m_atnCorrFactor;}
79  inline void SetRandomRate(FLTNBDATA a_value)
80  {m_eventRdmRate = (FLTNB)a_value;}
86  inline void SetNormalizationFactor(FLTNBDATA a_value)
87  {m_eventNormFactor = (FLTNB)a_value;}
94  {m_atnCorrFactor = (FLTNB)a_value;}
107  virtual FLTNB GetEventValue(int a_bin) = 0;
114  virtual FLTNB GetAdditiveCorrections(int a_bin) = 0;
121  virtual void SetEventValue(int a_bin, FLTNBDATA a_value) = 0;
128  virtual void SetScatterRate(int a_bin, FLTNBDATA a_value) = 0;
129 
130 
131  // -------------------------------------------------------------------
132  // Private member functions
133  private:
134 
135 
136  // -------------------------------------------------------------------
137  // Data members
138  protected:
142 };
143 
144 #endif
virtual FLTNB GetEventValue(int a_bin)=0
Pure virtual function implemented in the child classes.
iEventPET()
iEventPET constructor. Initialize the member variables to their default values.
Definition: iEventPET.cc:32
#define FLTNB
Definition: gVariables.hh:55
FLTNB m_eventRdmRate
Definition: iEventPET.hh:139
void SetNormalizationFactor(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the normalization term...
Definition: iEventPET.hh:86
FLTNB m_eventNormFactor
Definition: iEventPET.hh:140
#define FLTNBDATA
Definition: gVariables.hh:59
virtual int AllocateSpecificData()=0
Pure virtual function implemented in the child classes, dedicated to the allocation of specific data ...
void SetAttenuationCorrectionFactor(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the attenuation correction term...
Definition: iEventPET.hh:93
FLTNB m_atnCorrFactor
Definition: iEventPET.hh:141
Declaration of class vEvent.
FLTNB GetNormFactor()
Definition: iEventPET.hh:66
FLTNB GetMultiplicativeCorrections()
Definition: iEventPET.hh:99
virtual FLTNB GetAdditiveCorrections(int a_bin)=0
Pure virtual function implemented in the child classes.
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.
Inherit from vEvent. Main PET class for the Event objects.
Definition: iEventPET.hh:22
Mother class for the Event objects.
Definition: vEvent.hh:23
virtual ~iEventPET()
iEventPET destructor
Definition: iEventPET.cc:51
FLTNB GetAtnCorrFactor()
Definition: iEventPET.hh:72
void SetRandomRate(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the random correction term...
Definition: iEventPET.hh:79
virtual void Describe()
This function can be used to get a description of the event printed out.
Definition: iEventPET.cc:62
FLTNB GetEventRdmRate()
Definition: iEventPET.hh:60
virtual void SetScatterRate(int a_bin, FLTNBDATA a_value)=0
Set the scatter rate correction term in 1/s, this is a pure virtual function implemented in the child...