CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
code/include/datafile/iEventNorm.hh
Go to the documentation of this file.
1 
8 #ifndef IEVENTNORM_HH
9 #define IEVENTNORM_HH 1
10 
11 #include "vEvent.hh"
12 
20 class iEventNorm : public vEvent
21 {
22  // -------------------------------------------------------------------
23  // Constructor & Destructor
24  public:
29  iEventNorm();
33  ~iEventNorm();
34 
35  // -------------------------------------------------------------------
36  // Public member functions
37  public:
44  inline int AllocateSpecificData() {return 0;}
49  void Describe();
50 
51  // -------------------------------------------------------------------
52  // Public Get & Set functions
53  public:
59  inline void SetNormalizationFactor(FLTNBDATA a_value)
60  {m_normalizationFactor = (FLTNB)a_value;}
79  {return m_normalizationFactor;}
86 
87  // -------------------------------------------------------------------
88  // Public functions that should not be used, so they throw an error and crash
89  public:
96  FLTNB GetEventValue(int a_bin);
103  FLTNB GetAdditiveCorrections(int a_bin);
110  void SetEventValue(int a_bin, FLTNBDATA a_value);
122  void MultiplyAdditiveCorrections(FLTNB a_factor);
123 
124  // -------------------------------------------------------------------
125  // Private member functions
126  private:
127 
128  // -------------------------------------------------------------------
129  // Data members
130  protected:
133 };
134 
135 #endif
INTNB GetNbValueBins()
Not used, so throw an error and Exit.
Declaration of class vEvent.
FLTNB GetEventValue(int a_bin)
iEventNorm()
iEventNorm constructor. Initialize the member variables to their default values.
void Describe()
This function can be used to get a description of the event printed out.
void SetEventValue(int a_bin, FLTNBDATA a_value)
void SetAttenuationCorrectionFactor(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the attenuation correction facto...
FLTNB GetAdditiveCorrections(int a_bin)
void SetNormalizationFactor(FLTNBDATA a_value)
Cast the FLTNBDATA value passed as parameter in FLTNB, and set it to the normalization term...
Inherit from vEvent. Used for normalization events for sensitivity computation.
Mother class for the Event objects.
void MultiplyAdditiveCorrections(FLTNB a_factor)
~iEventNorm()
iEventNorm destructor
int AllocateSpecificData()
Inherited and pure virtual from vEvent.