CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iEventHistoSPECT.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 IEVENTHISTOSPECT_HH
32 #define IEVENTHISTOSPECT_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:
80  inline FLTNB GetEventValue(int a_bin)
81  {return m_eventValue;}
88  inline void SetEventValue(int a_bin, FLTNBDATA a_value)
89  {m_eventValue = (FLTNB)a_value;}
96  {return 1;}
97 
98  // -------------------------------------------------------------------
99  // Private member functions
100  private:
101 
102  // -------------------------------------------------------------------
103  // Data members
104  private:
105 };
106 
107 #endif
int AllocateSpecificData()
Function allowing the allocation of specific data. Return 0 by default for iEventHistoSPECT.
#define FLTNB
Definition: gVariables.hh:81
iEventHistoSPECT()
iEventHistoSPECT constructor. Initialize the member variables to their default values.
FLTNB GetEventValue(int a_bin)
Inherit from iEventSPECT. Class for SPECT histogram mode events.
INTNB GetNbValueBins()
Get the number of event value bins.
Declaration of class iEventSPECT.
void Describe()
This function can be used to get a description of the event printed out.
#define FLTNBDATA
Definition: gVariables.hh:87
FLTNB m_eventValue
Definition: vEvent.hh:229
void SetEventValue(int a_bin, FLTNBDATA a_value)
Cast the FLTNBDATA value passed in parameters in FLTNB, and use it to set the event value (a_bin is d...
#define INTNB
Definition: gVariables.hh:92
Inherit from vEvent. Main SPECT class for the Event objects.
Definition: iEventSPECT.hh:42
~iEventHistoSPECT()
iEventHistoSPECT destructor.