CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iEventListSPECT.cc
Go to the documentation of this file.
1 
2 /*
3  Implementation of class iEventListSPECT
4 
5  - separators: X
6  - doxygen: X
7  - default initialization: X
8  - CASTOR_DEBUG: none
9  - CASTOR_VERBOSE: none
10 */
11 
12 
21 #include "iEventListSPECT.hh"
22 #include "vDataFile.hh" // DATA_MODE/ DATA_TYPE macros
23 #include "sOutputManager.hh" // Cout()/Cerr()
24 
25 // =====================================================================
26 // ---------------------------------------------------------------------
27 // ---------------------------------------------------------------------
28 // =====================================================================
29 
31 {
34  mp_POI[0] = 0.;
35  mp_POI[1] = 0.;
36  mp_POI[2] = -1.;
38  m_eventValue = 1.;
39 }
40 
41 // =====================================================================
42 // ---------------------------------------------------------------------
43 // ---------------------------------------------------------------------
44 // =====================================================================
45 
47 
48 // =====================================================================
49 // ---------------------------------------------------------------------
50 // ---------------------------------------------------------------------
51 // =====================================================================
52 /*
53  \fn virtual void SetEventValue(int a_bin, FLTNBDATA a_value)
54  \param a_bin
55  \param a_value
56  \brief Throw a warning (depending of verbosity) as the event value of a list-mode Event should be equal to 1 and not modified
57 */
58 void iEventListSPECT::SetEventValue(int a_bin, FLTNBDATA a_value)
59 {
60  if (m_verbose>5)
61  Cout("!!!!! iEventListSPECT::SetEventValue() -> Trying to set the value of a list mode event, which is equal to 1 by default.");
62 }
63 
64 // =====================================================================
65 // ---------------------------------------------------------------------
66 // ---------------------------------------------------------------------
67 // =====================================================================
68 /*
69  \fn virtual void Describe()
70  \brief This function can be used to get a description of the event printed out
71 */
73 {
74  Cout("---------------------- iEventListSPECT::Describe() --------------------------" << endl);
75  Cout("sizeof(FLTNB): " << sizeof(FLTNB) << endl);
76  Cout("Time: " << m_timeInMs << " ms" << endl);
77  Cout("Number of lines: " << m_nbLines << endl);
78  for (uint16_t l=0; l<m_nbLines; l++) Cout(" --> ID1: " << mp_ID1[l] << " | ID2: " << mp_ID2[l] << endl);
79  Cout("Scatter rate: " << m_eventScatRate << endl);
80  Cout("Normalization factor: " << m_eventNormFactor << endl);
81  Cout("kind: " << m_kind << endl);
82  Cout("POI (x ; y ; z ) = " << mp_POI[0] <<" ; " << mp_POI[1] <<" ; " << mp_POI[2] <<" ; " << endl);
83  Cout("----------------------------------------------------------------------------" << endl);
84 }
#define MODE_LIST
Definition: vDataFile.hh:34
#define FLTNB
Definition: gVariables.hh:55
int m_verbose
Definition: vEvent.hh:196
uint32_t * mp_ID2
Definition: vEvent.hh:192
int m_dataType
Definition: vEvent.hh:194
#define TYPE_SPECT
Definition: vDataFile.hh:53
#define KIND_UNKNOWN
#define FLTNBDATA
Definition: gVariables.hh:59
~iEventListSPECT()
iEventListSPECT destructor.
iEventListSPECT()
iEventListSPECT constructor. Initialize the member variables to their default values.
uint32_t * mp_ID1
Definition: vEvent.hh:191
Declaration of class vDataFile.
FLTNB m_eventValue
Definition: vEvent.hh:193
Declaration of class iEventListSPECT.
FLTNB m_eventScatRate
Definition: iEventSPECT.hh:119
FLTNB m_eventNormFactor
Definition: iEventSPECT.hh:120
int m_dataMode
Definition: vEvent.hh:195
Declaration of class sOutputManager.
void Describe()
This function can be used to get a description of the event printed out.
Inherit from vEvent. Main SPECT class for the Event objects.
Definition: iEventSPECT.hh:21
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 Cout(MESSAGE)
uint16_t m_nbLines
Definition: vEvent.hh:190
uint32_t m_timeInMs
Definition: vEvent.hh:189