CASToR  3.0
Tomographic Reconstruction (PET/SPECT/CT)
iEventHistoCT.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 IEVENTHISTOCT_HH
31 #define IEVENTHISTOCT_HH 1
32 
33 #include "iEventCT.hh"
34 
40 class iEventHistoCT : public iEventCT
41 {
42  // -------------------------------------------------------------------
43  // Constructor & Destructor
44  public:
49  iEventHistoCT();
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:
79  inline FLTNB GetEventValue(int a_bin)
80  {
81  (void)a_bin; // avoid 'unused parameter' compil. warnings
82  return m_eventValue;
83  }
90  inline void SetEventValue(int a_bin, FLTNBDATA a_value)
91  {
92  (void)a_bin; // avoid 'unused parameter' compil. warnings
93  m_eventValue = (FLTNB)a_value;
94  }
101  {return 1;}
102 
103  // -------------------------------------------------------------------
104  // Private member functions
105  private:
106 
107  // -------------------------------------------------------------------
108  // Data members
109  private:
110 };
111 
112 #endif
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 FLTNB
Definition: gVariables.hh:81
Inherit from vEvent. Main CT class for the Event objects.
Definition: iEventCT.hh:41
INTNB GetNbValueBins()
Get the number of event value bins.
int AllocateSpecificData()
Function allowing the allocation of specific data. Return 0 by default for iEventHistoCT.
iEventHistoCT()
iEventHistoCT constructor. Initialize the member variables to their default values.
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:228
Inherit from iEventCT. Class for CT histogram mode events.
#define INTNB
Definition: gVariables.hh:92
~iEventHistoCT()
iEventHistoCT destructor.
Declaration of class iEventCT.
FLTNB GetEventValue(int a_bin)