CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iEventListSPECT.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 IEVENTLISTSPECT_HH
32 #define IEVENTLISTSPECT_HH 1
33 
34 #include "iEventSPECT.hh"
35 
42 {
43  // -------------------------------------------------------------------
44  // Constructor & Destructor
45  public:
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* GetPOI()
86  {return mp_POI;}
92  inline FLTNB GetPOI(int a_axis)
93  {return mp_POI[a_axis];}
98  inline FLTNB GetEventValue(int a_bin)
99  {return 1.;}
105  inline void SetKind(uint8_t a_value)
106  {m_kind = a_value;}
113  inline void SetPOI(int a_axis, FLTNBDATA a_value)
114  {mp_POI[a_axis] = (FLTNB)a_value;}
121  void SetEventValue(int a_bin, FLTNBDATA a_value);
128  {return 1;}
129 
130  // -------------------------------------------------------------------
131  // Private member functions
132  private:
133 
134  // -------------------------------------------------------------------
135  // Data members
136  private:
137  uint8_t m_kind;
139 };
140 
141 #endif
#define FLTNB
Definition: gVariables.hh:81
Declaration of class iEventSPECT.
INTNB GetNbValueBins()
Get the number of event value bins.
void SetPOI(int a_axis, FLTNBDATA a_value)
Initialize the POI of the crystal with a value for the specific axis.
#define FLTNBDATA
Definition: gVariables.hh:87
~iEventListSPECT()
iEventListSPECT destructor.
int AllocateSpecificData()
Function allowing the allocation of specific data. Return 0 by default for iEventListSPECT.
iEventListSPECT()
iEventListSPECT constructor. Initialize the member variables to their default values.
FLTNB GetEventValue(int a_bin)
#define INTNB
Definition: gVariables.hh:92
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:42
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...
FLTNB GetPOI(int a_axis)
void SetKind(uint8_t a_value)
Set the kind of coincidence.
Inherit from iEventSPECT. Class for SPECT list-mode events.