CASToR  3.0
Tomographic Reconstruction (PET/SPECT/CT)
iEventListCT.cc
Go to the documentation of this file.
1 /*
2 This file is part of CASToR.
3 
4  CASToR is free software: you can redistribute it and/or modify it under the
5  terms of the GNU General Public License as published by the Free Software
6  Foundation, either version 3 of the License, or (at your option) any later
7  version.
8 
9  CASToR is distributed in the hope that it will be useful, but WITHOUT ANY
10  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12  details.
13 
14  You should have received a copy of the GNU General Public License along with
15  CASToR (in file GNU_GPL.TXT). If not, see <http://www.gnu.org/licenses/>.
16 
17 Copyright 2017-2019 all CASToR contributors listed below:
18 
19  --> Didier BENOIT, Claude COMTAT, Marina FILIPOVIC, Thibaut MERLIN, Mael MILLARDET, Simon STUTE, Valentin VIELZEUF
20 
21 This is CASToR version 3.0.
22 */
23 
31 #include "iEventListCT.hh"
32 #include "vDataFile.hh"
33 #include "sOutputManager.hh"
34 
35 // =====================================================================
36 // ---------------------------------------------------------------------
37 // ---------------------------------------------------------------------
38 // =====================================================================
39 
41 {
46  m_eventValue = 1.;
47 }
48 
49 // =====================================================================
50 // ---------------------------------------------------------------------
51 // ---------------------------------------------------------------------
52 // =====================================================================
53 
55 
56 // =====================================================================
57 // ---------------------------------------------------------------------
58 // ---------------------------------------------------------------------
59 // =====================================================================
60 
61 void iEventListCT::SetEventValue(int a_bin, FLTNBDATA a_value)
62 {
64  Cout("***** iEventListCT::SetEventValue() -> Trying to set the value of a list mode event !");
65  Exit(EXIT_FAILURE);
66 }
67 
68 // =====================================================================
69 // ---------------------------------------------------------------------
70 // ---------------------------------------------------------------------
71 // =====================================================================
72 
74 {
76  Cout("iEventListCT::Describe() -> Display contents" << endl);
77  Cout("Time: " << m_timeInMs << " ms" << endl);
78  Cout("Number of lines: " << m_nbLines << endl);
79  for (uint16_t l=0; l<m_nbLines; l++) Cout(" --> ID1: " << mp_ID1[l] << " | ID2: " << mp_ID2[l] << endl);
80  Cout("Scatter rate: " << m_eventScatRate << endl);
81  Cout("Blank value: " << m_eventBlankValue << endl);
82  Cout("kind: " << m_kind << endl);
83  Cout(flush);
84 }
85 
86 // =====================================================================
87 // ---------------------------------------------------------------------
88 // ---------------------------------------------------------------------
89 // =====================================================================
#define MODE_LIST
Definition: vDataFile.hh:56
iEventListCT()
iEventListCT constructor. Initialize the member variables to their default values.
Definition: iEventListCT.cc:40
int m_verbose
Definition: vEvent.hh:232
uint32_t * mp_ID2
Definition: vEvent.hh:227
Inherit from vEvent. Main CT class for the Event objects.
Definition: iEventCT.hh:41
int m_dataType
Definition: vEvent.hh:229
#define TYPE_CT
Definition: vDataFile.hh:77
#define KIND_UNKNOWN
void Exit(int code)
#define FLTNBDATA
Definition: gVariables.hh:87
#define VERBOSE_DEBUG_LIGHT
uint32_t * mp_ID1
Definition: vEvent.hh:226
Declaration of class vDataFile.
FLTNB m_eventScatRate
Definition: iEventCT.hh:152
Declaration of class iEventListCT.
FLTNB m_eventValue
Definition: vEvent.hh:228
FLTNB m_eventBlankValue
Definition: iEventCT.hh:153
~iEventListCT()
iEventListCT destructor.
Definition: iEventListCT.cc:54
#define SPEC_TRANSMISSION
Definition: vDataFile.hh:92
int m_dataMode
Definition: vEvent.hh:230
Declaration of class sOutputManager.
#define DEBUG_VERBOSE(IGNORED1, IGNORED2)
#define Cout(MESSAGE)
uint16_t m_nbLines
Definition: vEvent.hh:225
uint8_t m_kind
void Describe()
This function can be used to get a description of the event printed out.
Definition: iEventListCT.cc:73
uint32_t m_timeInMs
Definition: vEvent.hh:224
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...
Definition: iEventListCT.cc:61
int m_dataSpec
Definition: vEvent.hh:231