CASToR  3.0
Tomographic Reconstruction (PET/SPECT/CT)
iEventListCT.hh
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 
30 #ifndef IEVENTLISTCT_HH
31 #define IEVENTLISTCT_HH 1
32 
33 #include "iEventCT.hh"
34 
40 class iEventListCT : public iEventCT
41 {
42  // -------------------------------------------------------------------
43  // Constructor & Destructor
44  public:
49  iEventListCT();
53  ~iEventListCT();
54 
55  // -------------------------------------------------------------------
56  // Public member functions
57  public:
63  inline int AllocateSpecificData()
64  {return 0;}
69  void Describe();
70 
71  // -------------------------------------------------------------------
72  // Public Get & Set functions
73  public:
78  inline uint8_t GetKind()
79  {return m_kind;}
84  inline FLTNB GetEventValue(int a_bin)
85  {return 1.;}
91  inline void SetKind(uint8_t a_value)
92  {m_kind = a_value;}
99  void SetEventValue(int a_bin, FLTNBDATA a_value);
106  {return 1;}
107 
108  // -------------------------------------------------------------------
109  // Private member functions
110  private:
111 
112  // -------------------------------------------------------------------
113  // Data members
114  private:
115  uint8_t m_kind;
116 };
117 
118 #endif
#define FLTNB
Definition: gVariables.hh:81
iEventListCT()
iEventListCT constructor. Initialize the member variables to their default values.
Definition: iEventListCT.cc:40
uint8_t GetKind()
Definition: iEventListCT.hh:78
Inherit from vEvent. Main CT class for the Event objects.
Definition: iEventCT.hh:41
Inherit from iEventCT. Class for CT list-mode events.
Definition: iEventListCT.hh:40
FLTNB GetEventValue(int a_bin)
Definition: iEventListCT.hh:84
#define FLTNBDATA
Definition: gVariables.hh:87
void SetKind(uint8_t a_value)
Set the kind of event.
Definition: iEventListCT.hh:91
~iEventListCT()
iEventListCT destructor.
Definition: iEventListCT.cc:54
#define INTNB
Definition: gVariables.hh:92
int AllocateSpecificData()
Function allowing the allocation of specific data. Return 0 by default for iEventListCT.
Definition: iEventListCT.hh:63
INTNB GetNbValueBins()
Get the number of event value bins.
uint8_t m_kind
void Describe()
This function can be used to get a description of the event printed out.
Definition: iEventListCT.cc:73
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
Declaration of class iEventCT.