30 #ifndef IDATAFILEPET_HH 31 #define IDATAFILEPET_HH 1 int WriteEvent(vEvent *ap_Event, int a_th)
Write event according to the chosen type of data.
bool m_randCorrectionFlag
This class is designed to be a mother virtual class for DataFile.
This header file is mainly used to declare some macro definitions and all includes needed from the st...
bool GetNormCorrectionFlag()
Simply return m_normCorrectionFlag.
FLTNB GetTOFMeasurementRangeInPs()
FLTNB m_TOFMeasurementRangeInPs
void SetAtnCorrectionFlagOn()
set to true the flag indicating the presence of attenuation correction factors in the datafile ...
int PROJ_GetScannerSpecificParameters()
Get PET specific parameters for projections from the scanner object, through the scannerManager.
bool m_ignoreNormCorrectionFlag
void DescribeSpecific()
Implementation of the pure virtual eponym function that simply prints info about the datafile...
void SetScatterCorrectionFlagOn()
set to true the flag indicating the presence of scatter correction factors in the datafile ...
int CheckSpecificConsistencyWithAnotherDataFile(vDataFile *ap_DataFile)
Check consistency between 'this' and the provided datafile, for specific characteristics.
iDataFilePET()
iDataFilePET constructor. Initialize the member variables to their default values.
int ReadSpecificInfoInHeader(bool a_affectQuantificationFlag)
Read through the header file and gather specific PET information.
void SetEventKindFlagOn()
set to true the flag indicating the presence of the kind of a list-mode event in the datafile TODO ch...
int CheckSpecificParameters()
Check parameters specific to PET data.
vEvent * GetEventSpecific(char *ap_buffer, int a_th)
Read an event from the position pointed by 'ap_buffer', parse the generic or modality-specific inform...
bool m_ignoreScatCorrectionFlag
int ComputeSizeEvent()
Computation of the size of each event according to the mandatory/optional correction fields...
void SetIsotope(string a_value)
initialize the isotope string value
Inherit from iEventPET. Class for PET list-mode events.
Inherit from iEventPET. Class for PET histogram mode events.
~iDataFilePET()
iDataFilePET destructor.
Declaration of class vDataFile.
bool m_ignoreAttnCorrectionFlag
FLTNB GetTOFQuantizationBinSizeInPs()
bool GetScatCorrectionFlag()
Simply return m_scatCorrectionFlag.
int SetSpecificParametersFrom(vDataFile *ap_DataFile)
Initialize all parameters specific to PET from the provided datafile.
void SetRandomCorrectionFlagOn()
set to true the flag indicating the presence of random correction factors in the datafile ...
uint16_t GetMaxNumberOfLinesPerEvent()
bool GetEventKindFlag()
Simply return m_eventKindFlag.
int WriteHistoEvent(iEventHistoPET *ap_Event, int a_th)
Write a PET histogram event.
int WriteHeader()
Generate a header file according to the data output information.
int PROJ_InitFile()
Initialize the fstream objets for output writing as well as some other variables specific to the Proj...
FLTNB m_TOFResolutionInPs
FLTNB m_TOFQuantizationBinSizeInPs
void SetIgnoreTOFFlag(bool a_ignoreTOFFlag)
Set a boolean that that if we ignore TOF information or not.
FLTNB GetTOFBinSizeInPs()
FLTNB GetTOFResolutionInPs()
int PrepareDataFile()
Store different kind of information inside arrays (data relative to specific correction as well as ba...
void SetTOFResolutionInPs(FLTNB a_TOFResolutionInPs)
FLTNB GetMaxAxialDiffmm()
Mother class for the Event objects.
bool GetRandCorrectionFlag()
Simply return m_randCorrectionFlag.
void SetNormCorrectionFlagOn()
set to true the flag indicating the presence of normalization correction factors in the datafile ...
int CheckFileSizeConsistency()
This function is implemented in child classes Check if file size is consistent. ...
void SetTOFInfoFlag()
Enable ToF flag in the datafile.
bool m_normCorrectionFlag
uint16_t m_maxNumberOfLinesPerEvent
bool GetAtnCorrectionFlag()
Simply return m_atnCorrectionFlag.
Inherit from vDataFile. Class that manages the reading of a PET input file (header + data)...
bool m_scatCorrectionFlag
void SetMaxNumberOfLinesPerEvent(uint16_t a_value)
set the max number of line per event in the datafile
void SetTOFMeasurementRangeInPs(FLTNB a_TOFMeasurementRangeInPs)
bool m_ignoreRandCorrectionFlag
int WriteListEvent(iEventListPET *ap_Event, int a_th=0)
Write a PET list-mode event.