CASToR
2.0
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) |
Set the timestamp of the Event. More... | |
virtual void | SetEventValue (int a_bin, FLTNBDATA a_value)=0 |
This function is implemented by child classes. More... | |
void | SetNbLines (uint16_t a_value) |
Set the number of lines of the Event. More... | |
void | SetID1 (int a_line, uint32_t a_value) |
Set the indice associated with the line index for the 1st ID of the Event. More... | |
void | SetID2 (int a_line, uint32_t a_value) |
Set the indice associated with the line index for the 2nd ID of the Event. More... | |
void | SetVerbose (int a_verbose) |
Set verbosity. More... | |
virtual FLTNB | GetEventValue (int a_bin)=0 |
Pure virtual function implemented in the child classes. More... | |
virtual FLTNB | GetAdditiveCorrections (int a_bin)=0 |
Pure virtual function implemented in the child classes. More... | |
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 |
Divide additive corrections by the provided factor. More... | |
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 |
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).
vEvent::vEvent | ( | ) |
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 69 of file 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, iEventNorm, iEventCT, iEventHistoPET, iEventPET, iEventSPECT, iEventHistoCT, iEventHistoSPECT, iEventListCT, and iEventListSPECT.
|
pure virtual |
This function can be used to get a description of the event printed out.
Implemented in iEventListPET, iEventNorm, iEventCT, iEventHistoCT, iEventHistoPET, iEventHistoSPECT, iEventListCT, iEventListSPECT, iEventPET, and iEventSPECT.
|
pure virtual |
Pure virtual function implemented in the child classes.
Implemented in iEventListPET, iEventPET, iEventHistoPET, iEventNorm, iEventCT, and iEventSPECT.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Pure virtual function implemented in the child classes.
a | bin |
Implemented in iEventListPET, iEventPET, iEventCT, iEventSPECT, iEventNorm, iEventListSPECT, iEventHistoPET, iEventListCT, iEventHistoCT, and iEventHistoSPECT.
|
inline |
a | line index (0 if the event contains one line, any number if the events contains several lines as in PET compression) |
Definition at line 101 of file vEvent.hh.
|
inline |
a | line index (0 if the event contains one line, any number if the events contains several lines as in PET compression) |
Definition at line 108 of file vEvent.hh.
|
pure virtual |
This is a pure virtual function implemented in the child classes.
Implemented in iEventPET, iEventCT, iEventSPECT, and iEventNorm.
|
inline |
|
pure virtual |
Get the number of event value bins.
Implemented in iEventListPET, iEventPET, iEventNorm, iEventCT, iEventSPECT, iEventListSPECT, iEventHistoPET, iEventListCT, iEventHistoCT, and iEventHistoSPECT.
|
inline |
|
pure virtual |
Divide additive corrections by the provided factor.
FLTNB | a_factor |
Implemented in iEventListPET, iEventNorm, iEventCT, iEventSPECT, and iEventHistoPET.
|
pure virtual |
This function is implemented by child classes.
a_bin | |
a_value |
Cast the FLTNBDATA value passed in parameters in FLTNB, and use it to set the event value of the specific TOF bin
Implemented in iEventListPET, iEventPET, iEventNorm, iEventCT, iEventSPECT, iEventListSPECT, iEventHistoPET, iEventListCT, iEventHistoCT, and iEventHistoSPECT.
Definition at line 140 of file vEvent.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |