![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
Mother class for the Event objects. More...
#include <vEvent.hh>
Public Member Functions | |
vEvent () | |
vEvent constructor. Initialize the member variables to their default values. More... | |
virtual | ~vEvent () |
vEvent destructor More... | |
int | AllocateID () |
Instantiate the mp_ID1 and mp_ID2 indices arrays. More... | |
virtual int | AllocateSpecificData ()=0 |
Pure virtual function implemented in the child classes, dedicated to the allocation of specific data in the child classes. More... | |
virtual void | Describe ()=0 |
This function can be used to get a description of the event printed out. More... | |
uint32_t | GetTimeInMs () |
uint16_t | GetNbLines () |
uint32_t | GetID1 (int a_line) |
uint32_t | GetID2 (int a_line) |
uint32_t * | GetEventID1 () |
uint32_t * | GetEventID2 () |
int | GetDataType () |
int | GetDataMode () |
void | SetTimeInMs (uint32_t a_value) |
virtual void | SetEventValue (int a_bin, FLTNBDATA a_value)=0 |
void | SetNbLines (uint16_t a_value) |
void | SetID1 (int a_line, uint32_t a_value) |
void | SetID2 (int a_line, uint32_t a_value) |
void | SetVerbose (int a_verbose) |
virtual FLTNB | GetEventValue (int a_bin)=0 |
virtual FLTNB | GetAdditiveCorrections (int a_bin)=0 |
virtual FLTNB | GetBlankValue () |
This is a pure virtual function implemented in the child classes. More... | |
virtual FLTNB | GetMultiplicativeCorrections ()=0 |
This is a pure virtual function implemented in the child classes. More... | |
virtual INTNB | GetNbValueBins ()=0 |
Get the number of event value bins. More... | |
virtual void | MultiplyAdditiveCorrections (FLTNB a_factor)=0 |
vEvent () | |
vEvent constructor. Initialize the member variables to their default values. More... | |
virtual | ~vEvent () |
vEvent destructor More... | |
int | AllocateID () |
virtual int | AllocateSpecificData ()=0 |
virtual void | Describe ()=0 |
int | AllocateCustomINTData () |
Instantiate the m_nbCustomINTData array. More... | |
int | AllocateCustomFLTData () |
Instantiate the m_nbCustomFLTData array. More... | |
uint32_t | GetTimeInMs () |
uint16_t | GetNbLines () |
uint32_t | GetID1 (int a_line) |
uint32_t | GetID2 (int a_line) |
uint32_t * | GetEventID1 () |
uint32_t * | GetEventID2 () |
int | GetDataType () |
int | GetDataMode () |
void | SetTimeInMs (uint32_t a_value) |
virtual void | SetEventValue (int a_bin, FLTNBDATA a_value)=0 |
void | SetNbLines (uint16_t a_value) |
void | SetID1 (int a_line, uint32_t a_value) |
void | SetID2 (int a_line, uint32_t a_value) |
void | SetVerbose (int a_verbose) |
virtual FLTNB | GetEventValue (int a_bin)=0 |
virtual FLTNB | GetAdditiveCorrections (int a_bin)=0 |
virtual FLTNB | GetBlankValue () |
virtual FLTNB | GetMultiplicativeCorrections ()=0 |
virtual INTNB | GetNbValueBins ()=0 |
virtual void | MultiplyAdditiveCorrections (FLTNB a_factor)=0 |
void | SetEventIndex (int a_eventIndex) |
Set current index associated to the event. More... | |
int64_t | GetEventIndex () |
Get current index associated to the event. More... | |
virtual int | GetNbCustomFLTData () |
virtual int | GetNbCustomINTData () |
virtual void | SetNbCustomFLTData (int a_value) |
initialize the number of custom INT data with a_value More... | |
virtual void | SetNbCustomINTData (int a_value) |
initialize the number of custom INT data with a_value More... | |
virtual EVTFLTDATA * | GetCustomFLTData () |
virtual EVTINTDATA * | GetCustomINTData () |
virtual EVTFLTDATA | GetCustomFLTData (int a_idx) |
virtual EVTINTDATA | GetCustomINTData (int a_idx) |
virtual int | SetCustomFLTData (int a_idx, EVTFLTDATA a_value) |
virtual int | SetCustomINTData (int a_idx, EVTINTDATA a_value) |
Protected Attributes | |
uint32_t | m_timeInMs |
uint16_t | m_nbLines |
uint32_t * | mp_ID1 |
uint32_t * | mp_ID2 |
FLTNB | m_eventValue |
int | m_dataType |
int | m_dataMode |
int | m_dataSpec |
int | m_verbose |
int64_t | m_eventIndex |
EVTFLTDATA * | mp_customFLTData |
EVTINTDATA * | mp_customINTData |
int | m_nbCustomFLTData |
int | m_nbCustomINTData |
Mother class for the Event objects.
This class is designed to be a mother virtual class that should not be used on its own; only its children are used.
The pure virtual GetEventIndices method is implemented in each children in order to get the number of lines included
in the event and the associated indices (two crystal indices for PET, one crystal index and one view index for SPECT, etc).
Definition at line 20 of file code/include/datafile/vEvent.hh.
vEvent::vEvent | ( | ) |
vEvent constructor. Initialize the member variables to their default values.
Definition at line 18 of file code/src/datafile/vEvent.cc.
|
virtual |
vEvent destructor
Definition at line 35 of file code/src/datafile/vEvent.cc.
vEvent::vEvent | ( | ) |
vEvent constructor. Initialize the member variables to their default values.
|
virtual |
vEvent destructor
int vEvent::AllocateCustomFLTData | ( | ) |
Instantiate the m_nbCustomFLTData array.
This function instantiate them_nbCustomFLTData arrays using the m_nbCustomINTData variable (assuming it has been initialized before)
Definition at line 101 of file src/datafile/vEvent.cc.
int vEvent::AllocateCustomINTData | ( | ) |
Instantiate the m_nbCustomINTData array.
This function instantiate them_nbCustomINTData arrays using the m_nbCustomINTData variable (assuming it has been initialized before)
Definition at line 84 of file src/datafile/vEvent.cc.
int vEvent::AllocateID | ( | ) |
int vEvent::AllocateID | ( | ) |
Instantiate the mp_ID1 and mp_ID2 indices arrays.
This function instantiate the mp_ID1 and mp_ID2 indices arrays using the m_nbLines filled (assuming it has been initialized before),
and call the AllocateSpecificData() function implemented in child classes
Definition at line 46 of file code/src/datafile/vEvent.cc.
|
pure virtual |
Pure virtual function implemented in the child classes, dedicated to the allocation of specific data in the child classes.
Implemented in iEventListPET, iEventListPET, iEventNorm, iEventNorm, iEventCT, iEventHistoPET, iEventPET, iEventSPECT, iEventCT, iEventHistoPET, iEventPET, iEventSPECT, iEventHistoCT, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventHistoCT, iEventHistoSPECT, iEventListCT, and iEventListSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventNorm, iEventNorm, iEventCT, iEventHistoPET, iEventPET, iEventSPECT, iEventCT, iEventHistoPET, iEventPET, iEventSPECT, iEventHistoCT, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventHistoCT, iEventHistoSPECT, iEventListCT, and iEventListSPECT.
|
pure virtual |
This function can be used to get a description of the event printed out.
Implemented in iEventListPET, iEventListPET, iEventNorm, iEventNorm, iEventCT, iEventHistoCT, iEventHistoPET, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventPET, iEventSPECT, iEventCT, iEventHistoCT, iEventHistoPET, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventPET, and iEventSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventNorm, iEventNorm, iEventCT, iEventHistoCT, iEventHistoPET, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventPET, iEventSPECT, iEventCT, iEventHistoCT, iEventHistoPET, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventPET, and iEventSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventHistoPET, iEventHistoPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, and iEventSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventHistoPET, iEventHistoPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, and iEventSPECT.
|
inlinevirtual |
This is a pure virtual function implemented in the child classes.
Reimplemented in iEventCT, and iEventCT.
Definition at line 174 of file code/include/datafile/vEvent.hh.
|
inlinevirtual |
Reimplemented in iEventCT, and iEventCT.
Definition at line 189 of file include/datafile/vEvent.hh.
|
inlinevirtual |
Definition at line 256 of file include/datafile/vEvent.hh.
|
virtual |
Definition at line 118 of file src/datafile/vEvent.cc.
|
inlinevirtual |
Definition at line 263 of file include/datafile/vEvent.hh.
|
virtual |
Definition at line 138 of file src/datafile/vEvent.cc.
|
inline |
Definition at line 109 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 124 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 103 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 118 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 91 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 106 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 97 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 112 of file include/datafile/vEvent.hh.
|
inline |
Get current index associated to the event.
Definition at line 219 of file include/datafile/vEvent.hh.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventNorm, iEventNorm, iEventListSPECT, iEventListSPECT, iEventHistoPET, iEventHistoPET, iEventListCT, iEventListCT, iEventHistoCT, iEventHistoSPECT, iEventHistoCT, and iEventHistoSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventNorm, iEventNorm, iEventListSPECT, iEventListSPECT, iEventHistoPET, iEventHistoPET, iEventListCT, iEventListCT, iEventHistoCT, iEventHistoSPECT, iEventHistoCT, and iEventHistoSPECT.
|
inline |
Definition at line 78 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 93 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 85 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 100 of file include/datafile/vEvent.hh.
|
pure virtual |
This is a pure virtual function implemented in the child classes.
Implemented in iEventPET, iEventPET, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventNorm, and iEventNorm.
|
pure virtual |
Implemented in iEventPET, iEventPET, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventNorm, and iEventNorm.
|
inlinevirtual |
Definition at line 226 of file include/datafile/vEvent.hh.
|
inlinevirtual |
Definition at line 233 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 71 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 86 of file include/datafile/vEvent.hh.
|
pure virtual |
Get the number of event value bins.
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventListSPECT, iEventListSPECT, iEventHistoPET, iEventHistoPET, iEventListCT, iEventListCT, iEventHistoCT, iEventHistoCT, iEventHistoSPECT, and iEventHistoSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventListSPECT, iEventListSPECT, iEventHistoPET, iEventHistoPET, iEventListCT, iEventListCT, iEventHistoCT, iEventHistoCT, iEventHistoSPECT, and iEventHistoSPECT.
|
inline |
Definition at line 65 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 80 of file include/datafile/vEvent.hh.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventHistoPET, and iEventHistoPET.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventHistoPET, and iEventHistoPET.
|
virtual |
|
virtual |
|
inline |
Set current index associated to the event.
a_eventIndex |
Definition at line 213 of file include/datafile/vEvent.hh.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventListSPECT, iEventListSPECT, iEventHistoPET, iEventHistoPET, iEventListCT, iEventListCT, iEventHistoCT, iEventHistoCT, iEventHistoSPECT, and iEventHistoSPECT.
|
pure virtual |
Implemented in iEventListPET, iEventListPET, iEventPET, iEventPET, iEventNorm, iEventNorm, iEventCT, iEventCT, iEventSPECT, iEventSPECT, iEventListSPECT, iEventListSPECT, iEventHistoPET, iEventHistoPET, iEventListCT, iEventListCT, iEventHistoCT, iEventHistoCT, iEventHistoSPECT, and iEventHistoSPECT.
|
inline |
Definition at line 139 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 154 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 147 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 162 of file include/datafile/vEvent.hh.
|
inlinevirtual |
initialize the number of custom INT data with a_value
a_value |
Definition at line 241 of file include/datafile/vEvent.hh.
|
inlinevirtual |
initialize the number of custom INT data with a_value
a_value |
Definition at line 249 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 131 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 146 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 116 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 131 of file include/datafile/vEvent.hh.
|
inline |
Definition at line 154 of file code/include/datafile/vEvent.hh.
|
inline |
Definition at line 169 of file include/datafile/vEvent.hh.
|
protected |
This integer is used to specify the mode of the event as in the vDataFile; LIST or HISTO. Default value =Unknown
Definition at line 208 of file code/include/datafile/vEvent.hh.
|
protected |
Flag indicating the physical specificity of the data: SPEC_EMISSION or SPEC_TRANSMISSION
Definition at line 209 of file code/include/datafile/vEvent.hh.
|
protected |
This integer is used to specify the type of the event as in the vDataFile; PET, SPECT or CT. Default value =Unknown
Definition at line 207 of file code/include/datafile/vEvent.hh.
|
protected |
Current index associated to the event
Definition at line 315 of file include/datafile/vEvent.hh.
|
protected |
Amount of data in the bin. Default value =0.0 (or 1. for list-mode event)
Definition at line 206 of file code/include/datafile/vEvent.hh.
|
protected |
Nb of customizable EVTFLTDATA variables in the event
Definition at line 318 of file include/datafile/vEvent.hh.
|
protected |
Nb of customizable EVTINTDATA variables in the event
Definition at line 319 of file include/datafile/vEvent.hh.
|
protected |
Number of lines in the event. Default value =0
Definition at line 203 of file code/include/datafile/vEvent.hh.
|
protected |
Timestamp of the event in ms. Default value =0
Definition at line 202 of file code/include/datafile/vEvent.hh.
|
protected |
Verbosity. Default value =-1
Definition at line 210 of file code/include/datafile/vEvent.hh.
|
protected |
Customizable data EVTFLTDATA type
Definition at line 316 of file include/datafile/vEvent.hh.
|
protected |
Customizable data EVTINTDATA type
Definition at line 317 of file include/datafile/vEvent.hh.
|
protected |
Pointer containing the indice(s) of the 1st ID of the Event. Default value =NULL
Definition at line 204 of file code/include/datafile/vEvent.hh.
|
protected |
Pointer containing the indice(s) of the 2nd ID of the Event. Default value =0
Definition at line 205 of file code/include/datafile/vEvent.hh.