CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
Public Member Functions | Protected Attributes | List of all members
iEventPET Class Referenceabstract

Inherit from vEvent. Main PET class for the Event objects. More...

#include <iEventPET.hh>

Inheritance diagram for iEventPET:
Inheritance graph
Collaboration diagram for iEventPET:
Collaboration graph

Public Member Functions

 iEventPET ()
 iEventPET constructor. Initialize the member variables to their default values. More...
 
virtual ~iEventPET ()
 iEventPET destructor 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 ()
 This function can be used to get a description of the event printed out. More...
 
FLTNB GetEventRdmRate ()
 
FLTNB GetNormFactor ()
 
FLTNB GetAtnCorrFactor ()
 
void SetRandomRate (FLTNBDATA a_value)
 
void SetNormalizationFactor (FLTNBDATA a_value)
 
void SetAttenuationCorrectionFactor (FLTNBDATA a_value)
 
FLTNB GetMultiplicativeCorrections ()
 
virtual FLTNB GetEventValue (int a_bin)=0
 
virtual FLTNB GetAdditiveCorrections (int a_bin)=0
 
virtual void SetEventValue (int a_bin, FLTNBDATA a_value)=0
 
virtual void SetScatterRate (int a_bin, FLTNBDATA a_value)=0
 
virtual INTNB GetNbValueBins ()=0
 Get the number of event value bins. More...
 
 iEventPET ()
 iEventPET constructor. Initialize the member variables to their default values. More...
 
virtual ~iEventPET ()
 iEventPET destructor 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 ()
 This function can be used to get a description of the event printed out. More...
 
FLTNB GetEventRdmRate ()
 
FLTNB GetNormFactor ()
 
FLTNB GetAtnCorrFactor ()
 
void SetRandomRate (FLTNBDATA a_value)
 
void SetNormalizationFactor (FLTNBDATA a_value)
 
void SetAttenuationCorrectionFactor (FLTNBDATA a_value)
 
FLTNB GetMultiplicativeCorrections ()
 This is a pure virtual function implemented in the child classes. More...
 
virtual FLTNB GetEventValue (int a_bin)=0
 
virtual FLTNB GetAdditiveCorrections (int a_bin)=0
 
virtual void SetEventValue (int a_bin, FLTNBDATA a_value)=0
 
virtual void SetScatterRate (int a_bin, FLTNBDATA a_value)=0
 
virtual INTNB GetNbValueBins ()=0
 Get the number of event value bins. More...
 
- Public Member Functions inherited from vEvent
 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...
 
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)
 
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 GetBlankValue ()
 This is a pure virtual function implemented in the child classes. 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 ()
 
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)
 
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 GetBlankValue ()
 
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 EVTFLTDATAGetCustomFLTData ()
 
virtual EVTINTDATAGetCustomINTData ()
 
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

FLTNB m_eventRdmRate
 
FLTNB m_eventNormFactor
 
FLTNB m_atnCorrFactor
 
- Protected Attributes inherited from vEvent
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
 
EVTFLTDATAmp_customFLTData
 
EVTINTDATAmp_customINTData
 
int m_nbCustomFLTData
 
int m_nbCustomINTData
 

Detailed Description

Inherit from vEvent. Main PET class for the Event objects.

This class is designed to be an abstract class that should not be used on its own; only its children are used.
It manages data and functions common to both class decicated to histogram and list mode PET.

Definition at line 19 of file code/include/datafile/iEventPET.hh.

Constructor & Destructor Documentation

◆ iEventPET() [1/2]

iEventPET::iEventPET ( )

iEventPET constructor. Initialize the member variables to their default values.

Definition at line 18 of file code/src/datafile/iEventPET.cc.

◆ ~iEventPET() [1/2]

iEventPET::~iEventPET ( )
virtual

iEventPET destructor

Definition at line 33 of file code/src/datafile/iEventPET.cc.

◆ iEventPET() [2/2]

iEventPET::iEventPET ( )

iEventPET constructor. Initialize the member variables to their default values.

◆ ~iEventPET() [2/2]

virtual iEventPET::~iEventPET ( )
virtual

iEventPET destructor

Member Function Documentation

◆ AllocateSpecificData() [1/2]

int iEventPET::AllocateSpecificData ( )
pure virtual

Pure virtual function implemented in the child classes, dedicated to the allocation of specific data in the child classes.

Returns
0 is success, positive value otherwise

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ AllocateSpecificData() [2/2]

virtual int iEventPET::AllocateSpecificData ( )
pure virtual

Pure virtual function implemented in the child classes, dedicated to the allocation of specific data in the child classes.

Returns
0 is success, positive value otherwise

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ Describe() [1/2]

void iEventPET::Describe ( )
virtual

This function can be used to get a description of the event printed out.

Implements vEvent.

Reimplemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

Definition at line 40 of file code/src/datafile/iEventPET.cc.

◆ Describe() [2/2]

virtual void iEventPET::Describe ( )
virtual

This function can be used to get a description of the event printed out.

Implements vEvent.

Reimplemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ GetAdditiveCorrections() [1/2]

virtual FLTNB iEventPET::GetAdditiveCorrections ( int  a_bin)
pure virtual

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

Here is the caller graph for this function:

◆ GetAdditiveCorrections() [2/2]

virtual FLTNB iEventPET::GetAdditiveCorrections ( int  a_bin)
pure virtual

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ GetAtnCorrFactor() [1/2]

FLTNB iEventPET::GetAtnCorrFactor ( )
inline

Definition at line 68 of file include/datafile/iEventPET.hh.

◆ GetAtnCorrFactor() [2/2]

FLTNB iEventPET::GetAtnCorrFactor ( )
inline
Returns
the correction term for attenuation

Definition at line 68 of file code/include/datafile/iEventPET.hh.

Here is the caller graph for this function:

◆ GetEventRdmRate() [1/2]

FLTNB iEventPET::GetEventRdmRate ( )
inline

Definition at line 56 of file include/datafile/iEventPET.hh.

◆ GetEventRdmRate() [2/2]

FLTNB iEventPET::GetEventRdmRate ( )
inline
Returns
the correction term for randoms given as a rate in 1/s

Definition at line 56 of file code/include/datafile/iEventPET.hh.

Here is the caller graph for this function:

◆ GetEventValue() [1/2]

virtual FLTNB iEventPET::GetEventValue ( int  a_bin)
pure virtual

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

Here is the caller graph for this function:

◆ GetEventValue() [2/2]

virtual FLTNB iEventPET::GetEventValue ( int  a_bin)
pure virtual

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ GetMultiplicativeCorrections() [1/2]

FLTNB iEventPET::GetMultiplicativeCorrections ( )
inlinevirtual
Returns
the product of the multiplicative corrections terms for this event

Implements vEvent.

Definition at line 95 of file code/include/datafile/iEventPET.hh.

Here is the call graph for this function:

◆ GetMultiplicativeCorrections() [2/2]

FLTNB iEventPET::GetMultiplicativeCorrections ( )
inlinevirtual

This is a pure virtual function implemented in the child classes.

Returns
the product of the multiplicative corrections terms for this event

Implements vEvent.

Definition at line 95 of file include/datafile/iEventPET.hh.

Here is the call graph for this function:

◆ GetNbValueBins() [1/2]

virtual INTNB iEventPET::GetNbValueBins ( )
pure virtual

Get the number of event value bins.

Returns
the number of value bins

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ GetNbValueBins() [2/2]

virtual INTNB iEventPET::GetNbValueBins ( )
pure virtual

Get the number of event value bins.

Returns
the number of value bins

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

Here is the caller graph for this function:

◆ GetNormFactor() [1/2]

FLTNB iEventPET::GetNormFactor ( )
inline
Returns
the normalization term

Definition at line 62 of file code/include/datafile/iEventPET.hh.

Here is the caller graph for this function:

◆ GetNormFactor() [2/2]

FLTNB iEventPET::GetNormFactor ( )
inline

Definition at line 62 of file include/datafile/iEventPET.hh.

◆ SetAttenuationCorrectionFactor() [1/2]

void iEventPET::SetAttenuationCorrectionFactor ( FLTNBDATA  a_value)
inline

Definition at line 89 of file include/datafile/iEventPET.hh.

◆ SetAttenuationCorrectionFactor() [2/2]

void iEventPET::SetAttenuationCorrectionFactor ( FLTNBDATA  a_value)
inline

Definition at line 89 of file code/include/datafile/iEventPET.hh.

Here is the caller graph for this function:

◆ SetEventValue() [1/2]

virtual void iEventPET::SetEventValue ( int  a_bin,
FLTNBDATA  a_value 
)
pure virtual

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

Here is the caller graph for this function:

◆ SetEventValue() [2/2]

virtual void iEventPET::SetEventValue ( int  a_bin,
FLTNBDATA  a_value 
)
pure virtual

Implements vEvent.

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

◆ SetNormalizationFactor() [1/2]

void iEventPET::SetNormalizationFactor ( FLTNBDATA  a_value)
inline

Definition at line 82 of file include/datafile/iEventPET.hh.

◆ SetNormalizationFactor() [2/2]

void iEventPET::SetNormalizationFactor ( FLTNBDATA  a_value)
inline

Definition at line 82 of file code/include/datafile/iEventPET.hh.

Here is the caller graph for this function:

◆ SetRandomRate() [1/2]

void iEventPET::SetRandomRate ( FLTNBDATA  a_value)
inline

Definition at line 75 of file include/datafile/iEventPET.hh.

◆ SetRandomRate() [2/2]

void iEventPET::SetRandomRate ( FLTNBDATA  a_value)
inline

Definition at line 75 of file code/include/datafile/iEventPET.hh.

Here is the caller graph for this function:

◆ SetScatterRate() [1/2]

virtual void iEventPET::SetScatterRate ( int  a_bin,
FLTNBDATA  a_value 
)
pure virtual

Implemented in iEventListPET, iEventListPET, iEventHistoPET, and iEventHistoPET.

Here is the caller graph for this function:

◆ SetScatterRate() [2/2]

virtual void iEventPET::SetScatterRate ( int  a_bin,
FLTNBDATA  a_value 
)
pure virtual

Member Data Documentation

◆ m_atnCorrFactor

FLTNB iEventPET::m_atnCorrFactor
protected

Correction term for attenuation. Default value =1.0

Definition at line 141 of file code/include/datafile/iEventPET.hh.

◆ m_eventNormFactor

FLTNB iEventPET::m_eventNormFactor
protected

Normalization term. Default value =1.0

Definition at line 140 of file code/include/datafile/iEventPET.hh.

◆ m_eventRdmRate

FLTNB iEventPET::m_eventRdmRate
protected

Correction term for randoms rate (unit: s-1). Default value =0.0

Definition at line 139 of file code/include/datafile/iEventPET.hh.


The documentation for this class was generated from the following files: