CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
code/src/datafile/iEventNorm.cc
Go to the documentation of this file.
1 
9 #include "iEventNorm.hh"
10 #include "vDataFile.hh"
11 #include "sOutputManager.hh"
12 
13 // =====================================================================
14 // ---------------------------------------------------------------------
15 // ---------------------------------------------------------------------
16 // =====================================================================
17 
19 {
23 }
24 
25 // =====================================================================
26 // ---------------------------------------------------------------------
27 // ---------------------------------------------------------------------
28 // =====================================================================
29 
31 
32 // =====================================================================
33 // ---------------------------------------------------------------------
34 // ---------------------------------------------------------------------
35 // =====================================================================
36 
38 {
40  Cout("iEventNorm::Describe() -> Display contents" << endl);
41  Cout("Number of lines: " << m_nbLines << endl);
42  for (uint16_t l=0; l<m_nbLines; l++) Cout(" --> ID1: " << mp_ID1[l] << " | ID2: " << mp_ID2[l] << endl);
43  Cout("Attenuation correction factor: " << m_attenuationCorrectionFactor << endl);
44  Cout("Normalization factor: " << m_normalizationFactor << endl);
45  Cout(flush);
46 }
47 
48 // =====================================================================
49 // ---------------------------------------------------------------------
50 // ---------------------------------------------------------------------
51 // =====================================================================
52 
54 {
56  // This function is an implementation of inheritance, but has no sense in this context
57  Cerr("***** iEventNorm::GetEventValue() -> This function should not be used ! Alternatives are:" << endl);
58  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
59  Exit(EXIT_FAILURE);
60  return -1.;
61 }
62 
63 // =====================================================================
64 // ---------------------------------------------------------------------
65 // ---------------------------------------------------------------------
66 // =====================================================================
67 
69 {
71  // This function is an implementation of inheritance, but has no sense in this context
72  Cerr("***** iEventNorm::GetAdditiveCorrections() -> This function should not be used ! Alternatives are:" << endl);
73  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
74  Exit(EXIT_FAILURE);
75  return -1.;
76 }
77 
78 // =====================================================================
79 // ---------------------------------------------------------------------
80 // ---------------------------------------------------------------------
81 // =====================================================================
82 
83 void iEventNorm::SetEventValue(int a_bin, FLTNBDATA a_value)
84 {
86  // This function is an implementation of inheritance, but has no sense in this context
87  Cerr("***** iEventNorm::GetAdditiveCorrections() -> This function should not be used ! Alternatives are:" << endl);
88  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
89  Exit(EXIT_FAILURE);
90 }
91 
92 // =====================================================================
93 // ---------------------------------------------------------------------
94 // ---------------------------------------------------------------------
95 // =====================================================================
96 
98 {
100  // This function is an implementation of inheritance, but has no sense in this context
101  Cerr("***** iEventNorm::GetNbValueBins() -> This function should not be used ! Alternatives are:" << endl);
102  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
103  Exit(EXIT_FAILURE);
104  return -1;
105 }
106 
107 // =====================================================================
108 // ---------------------------------------------------------------------
109 // ---------------------------------------------------------------------
110 // =====================================================================
111 
113 {
115  // This function is an implementation of inheritance, but has no sense in this context
116  Cerr("***** iEventNorm::MultiplyAdditiveCorrections() -> This function should not be used !" << endl);
117  Exit(EXIT_FAILURE);
118 }
119 
120 // =====================================================================
121 // ---------------------------------------------------------------------
122 // ---------------------------------------------------------------------
123 // =====================================================================
INTNB GetNbValueBins()
Not used, so throw an error and Exit.
#define MODE_NORMALIZATION
#define Cerr(MESSAGE)
FLTNB GetEventValue(int a_bin)
void Exit(int code)
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)
#define DEBUG_VERBOSE(IGNORED1, IGNORED2)
FLTNB GetAdditiveCorrections(int a_bin)
Mother class for the Event objects.
void MultiplyAdditiveCorrections(FLTNB a_factor)
~iEventNorm()
iEventNorm destructor
#define Cout(MESSAGE)