CASToR
1.1
Tomographic Reconstruction (PET/SPECT)
|
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 | GetMultiplicativeCorrections ()=0 |
This is a pure virtual function implemented in the child classes. 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_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 71 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, iEventPET, iEventHistoPET, iEventHistoSPECT, iEventListSPECT, iEventSPECT, and iEventTransmission.
|
pure virtual |
This function can be used to get a description of the event printed out.
Implemented in iEventListPET, iEventNorm, iEventHistoSPECT, iEventListSPECT, iEventPET, iEventHistoPET, iEventSPECT, and iEventTransmission.
|
pure virtual |
Pure virtual function implemented in the child classes.
Implemented in iEventListPET, iEventPET, iEventNorm, iEventHistoPET, iEventSPECT, and iEventTransmission.
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Pure virtual function implemented in the child classes.
a | bin |
Implemented in iEventListPET, iEventPET, iEventNorm, iEventSPECT, iEventListSPECT, iEventHistoPET, iEventHistoSPECT, and iEventTransmission.
|
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 81 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 88 of file vEvent.hh.
|
pure virtual |
This is a pure virtual function implemented in the child classes.
Implemented in iEventPET, iEventSPECT, iEventNorm, and iEventTransmission.
|
inline |
|
inline |
|
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, iEventSPECT, iEventListSPECT, iEventHistoPET, iEventHistoSPECT, and iEventTransmission.
Definition at line 120 of file vEvent.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |