CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventNorm.cc
Go to the documentation of this file.
1 
2 /*
3  Implementation of class iEventNorm
4 
5  - separators: X
6  - doxygen: X
7  - default initialization: X
8  - CASTOR_DEBUG: none
9  - CASTOR_VERBOSE: none
10 */
11 
20 #include "iEventNorm.hh"
21 #include "vDataFile.hh"
22 #include "sOutputManager.hh"
23 
24 // =====================================================================
25 // ---------------------------------------------------------------------
26 // ---------------------------------------------------------------------
27 // =====================================================================
28 
30 {
34 }
35 
36 // =====================================================================
37 // ---------------------------------------------------------------------
38 // ---------------------------------------------------------------------
39 // =====================================================================
40 
42 
43 // =====================================================================
44 // ---------------------------------------------------------------------
45 // ---------------------------------------------------------------------
46 // =====================================================================
47 
49 {
50  Cout("---------------------- iEventNorm::Describe() --------------------------" << endl);
51  Cout("sizeof(FLTNB): " << sizeof(FLTNB) << endl);
52  Cout("Number of lines: " << m_nbLines << endl);
53  for (uint16_t l=0; l<m_nbLines; l++) Cout(" --> ID1: " << mp_ID1[l] << " | ID2: " << mp_ID2[l] << endl);
54  Cout("Attenuation correction factor: " << m_attenuationCorrectionFactor << endl);
55  Cout("Normalization factor: " << m_normalizationFactor << endl);
56  Cout("----------------------------------------------------------------------------" << endl);
57  Cout(flush);
58 }
59 
60 // =====================================================================
61 // ---------------------------------------------------------------------
62 // ---------------------------------------------------------------------
63 // =====================================================================
64 
66 {
67  // This function is an implementation of inheritance, but has no sense in this context
68  Cerr("***** iEventNorm::GetEventValue() -> This function should not be used ! Alternatives are:" << endl);
69  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
70  Exit(EXIT_FAILURE);
71  return -1.;
72 }
73 
74 // =====================================================================
75 // ---------------------------------------------------------------------
76 // ---------------------------------------------------------------------
77 // =====================================================================
78 
80 {
81  // This function is an implementation of inheritance, but has no sense in this context
82  Cerr("***** iEventNorm::GetAdditiveCorrections() -> This function should not be used ! Alternatives are:" << endl);
83  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
84  Exit(EXIT_FAILURE);
85  return -1.;
86 }
87 
88 // =====================================================================
89 // ---------------------------------------------------------------------
90 // ---------------------------------------------------------------------
91 // =====================================================================
92 
93 void iEventNorm::SetEventValue(int a_bin, FLTNBDATA a_value)
94 {
95  // This function is an implementation of inheritance, but has no sense in this context
96  Cerr("***** iEventNorm::GetAdditiveCorrections() -> This function should not be used ! Alternatives are:" << endl);
97  Cerr(" GetNormalizationFactor() and GetAttenuationCorrectionFactor" << endl);
98  Exit(EXIT_FAILURE);
99 }
#define FLTNB
Definition: gVariables.hh:55
#define MODE_NORMALIZATION
Definition: vDataFile.hh:38
uint32_t * mp_ID2
Definition: vEvent.hh:192
FLTNB GetEventValue(int a_bin)
Not used, so throw an error an Exit.
Definition: iEventNorm.cc:65
iEventNorm()
iEventNorm constructor. Initialize the member variables to their default values.
Definition: iEventNorm.cc:29
void Describe()
This function can be used to get a description of the event printed out.
Definition: iEventNorm.cc:48
void Exit(int code)
void SetEventValue(int a_bin, FLTNBDATA a_value)
Not used, so throw an error an Exit.
Definition: iEventNorm.cc:93
FLTNB m_attenuationCorrectionFactor
Definition: iEventNorm.hh:132
#define FLTNBDATA
Definition: gVariables.hh:59
#define Cerr(MESSAGE)
uint32_t * mp_ID1
Definition: vEvent.hh:191
FLTNB GetAdditiveCorrections(int a_bin)
Not used, so throw an error an Exit.
Definition: iEventNorm.cc:79
FLTNB m_normalizationFactor
Definition: iEventNorm.hh:131
Declaration of class vDataFile.
int m_dataMode
Definition: vEvent.hh:195
Declaration of class sOutputManager.
Mother class for the Event objects.
Definition: vEvent.hh:23
Declaration of class iEventNorm.
~iEventNorm()
iEventNorm destructor
Definition: iEventNorm.cc:41
#define Cout(MESSAGE)
uint16_t m_nbLines
Definition: vEvent.hh:190