CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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-2018 all CASToR contributors listed below:
18 
19  --> current contributors: Thibaut MERLIN, Simon STUTE, Didier BENOIT, Claude COMTAT, Marina FILIPOVIC, Mael MILLARDET
20  --> past contributors: Valentin VIELZEUF
21 
22 This is CASToR version 2.0.
23 */
24 
31 #ifndef IEVENTLISTCT_HH
32 #define IEVENTLISTCT_HH 1
33 
34 #include "iEventCT.hh"
35 
41 class iEventListCT : public iEventCT
42 {
43  // -------------------------------------------------------------------
44  // Constructor & Destructor
45  public:
50  iEventListCT();
54  ~iEventListCT();
55 
56  // -------------------------------------------------------------------
57  // Public member functions
58  public:
64  inline int AllocateSpecificData()
65  {return 0;}
70  void Describe();
71 
72  // -------------------------------------------------------------------
73  // Public Get & Set functions
74  public:
79  inline uint8_t GetKind()
80  {return m_kind;}
85  inline FLTNB GetEventValue(int a_bin)
86  {return 1.;}
92  inline void SetKind(uint8_t a_value)
93  {m_kind = a_value;}
100  void SetEventValue(int a_bin, FLTNBDATA a_value);
107  {return 1;}
108 
109  // -------------------------------------------------------------------
110  // Private member functions
111  private:
112 
113  // -------------------------------------------------------------------
114  // Data members
115  private:
116  uint8_t m_kind;
117 };
118 
119 #endif
#define FLTNB
Definition: gVariables.hh:81
iEventListCT()
iEventListCT constructor. Initialize the member variables to their default values.
Definition: iEventListCT.cc:41
uint8_t GetKind()
Definition: iEventListCT.hh:79
Inherit from vEvent. Main CT class for the Event objects.
Definition: iEventCT.hh:42
Inherit from iEventCT. Class for CT list-mode events.
Definition: iEventListCT.hh:41
FLTNB GetEventValue(int a_bin)
Definition: iEventListCT.hh:85
#define FLTNBDATA
Definition: gVariables.hh:87
void SetKind(uint8_t a_value)
Set the kind of event.
Definition: iEventListCT.hh:92
~iEventListCT()
iEventListCT destructor.
Definition: iEventListCT.cc:55
#define INTNB
Definition: gVariables.hh:92
int AllocateSpecificData()
Function allowing the allocation of specific data. Return 0 by default for iEventListCT.
Definition: iEventListCT.hh:64
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:74
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:62
Declaration of class iEventCT.