CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventListPET.cc
Go to the documentation of this file.
1 
2 /*
3  Implementation of class iEventListPET
4 
5  - separators: X
6  - doxygen: X
7  - default initialization: X
8  - CASTOR_DEBUG: none
9  - CASTOR_VERBOSE: none
10 */
11 
12 
21 #include "iEventListPET.hh"
22 #include "vDataFile.hh" // DATA_MODE/ DATA_TYPE macros
23 #include "sOutputManager.hh" // Cout()/Cerr()
24 
25 
26 // =====================================================================
27 // ---------------------------------------------------------------------
28 // ---------------------------------------------------------------------
29 // =====================================================================
30 /*
31  Constructor()
32 */
33 
35 {
38  mp_POI1[0] = 0.;
39  mp_POI1[1] = 0.;
40  mp_POI1[2] = -1.;
41  mp_POI2[0] = 0.;
42  mp_POI2[1] = 0.;
43  mp_POI2[2] = -1.;
44 
46  m_eventScatRate = 0.;
47  m_TOFMeasurement = 0.;
48  m_eventValue = 1.;
49  m_nbLines = 1;
50 }
51 
52 
53 
54 // =====================================================================
55 // ---------------------------------------------------------------------
56 // ---------------------------------------------------------------------
57 // =====================================================================
58 /*
59  Destructor()
60 */
62 
63 
64 
65 
66 // =====================================================================
67 // ---------------------------------------------------------------------
68 // ---------------------------------------------------------------------
69 // =====================================================================
70 /*
71  \fn virtual void SetEventValue(int a_bin, FLTNBDATA a_value)
72  \param a_bin (0 if only one line)
73  \param a_value
74  \brief Just throw a warning in case this function is called for iEventListPET.
75  This should never be the case as event value is equal to 1 by default.
76 */
77 void iEventListPET::SetEventValue(int a_bin, FLTNBDATA a_value)
78 {
79  Cout("WARNING : iEventListPET::SetEventValue()->Trying to set the value of a list mode event, which is equal to 1 by default.");
80 }
81 
82 
83 // =====================================================================
84 // ---------------------------------------------------------------------
85 // ---------------------------------------------------------------------
86 // =====================================================================
87 /*
88  \fn virtual void Describe()
89  \brief This function can be used to get a description of the event printed out
90 */
92 {
93  Cout("---------------------- iEventListPET::Describe() --------------------------" << endl);
94  Cout("sizeof(FLTNB): " << sizeof(FLTNB) << endl);
95  Cout("Time: " << m_timeInMs << " ms" << endl);
96  Cout("Number of lines: " << m_nbLines << endl);
97  for (uint16_t l=0; l<m_nbLines; l++) Cout(" --> ID1: " << mp_ID1[l] << " | ID2: " << mp_ID2[l] << endl);
98  Cout("Random rate: " << m_eventRdmRate << endl);
99  Cout("Normalization factor: " << m_eventNormFactor << endl);
100  Cout("ACF: " << m_atnCorrFactor << endl);
101  Cout("kind: " << m_kind << endl);
102  Cout("Scat rate: " << m_eventScatRate << endl);
103  Cout("TOF measurement: " << m_TOFMeasurement << " ps" << endl);
104  Cout("POI1 (x ; y ; z ) = " << mp_POI1[0] <<" ; " << mp_POI1[1] <<" ; " << mp_POI1[2] <<" ; " << endl);
105  Cout("POI2 (x ; y ; z ) = " << mp_POI2[0] <<" ; " << mp_POI2[1] <<" ; " << mp_POI2[2] <<" ; " << endl);
106  Cout("----------------------------------------------------------------------------" << endl);
107  Cout(flush);
108 }
void SetEventValue(int a_bin, FLTNBDATA a_value)
Throw a warning (depending of verbosity) as the event value of a list-mode Event should be equal to 1...
#define TYPE_PET
Definition: vDataFile.hh:51
#define MODE_LIST
Definition: vDataFile.hh:34
#define FLTNB
Definition: gVariables.hh:55
iEventListPET()
iEventListPET constructor. Initialize the member variables to their default values.
uint32_t * mp_ID2
Definition: vEvent.hh:192
FLTNB m_eventRdmRate
Definition: iEventPET.hh:139
~iEventListPET()
iEventListPET destructor.
FLTNB m_eventNormFactor
Definition: iEventPET.hh:140
int m_dataType
Definition: vEvent.hh:194
FLTNB mp_POI1[3]
#define KIND_UNKNOWN
#define FLTNBDATA
Definition: gVariables.hh:59
uint32_t * mp_ID1
Definition: vEvent.hh:191
Declaration of class vDataFile.
FLTNB m_atnCorrFactor
Definition: iEventPET.hh:141
FLTNB m_eventValue
Definition: vEvent.hh:193
void Describe()
This function can be used to get a description of the event printed out.
Inherit from vEvent. Main PET class for the Event objects.
Definition: iEventPET.hh:22
Declaration of class iEventListPET.
int m_dataMode
Definition: vEvent.hh:195
Declaration of class sOutputManager.
FLTNB m_TOFMeasurement
#define Cout(MESSAGE)
FLTNB mp_POI2[3]
uint16_t m_nbLines
Definition: vEvent.hh:190
uint32_t m_timeInMs
Definition: vEvent.hh:189