8 #ifndef IDATAFILEPET_HH 9 #define IDATAFILEPET_HH 1 11 #include "gVariables.hh" int WriteEvent(vEvent *ap_Event, int a_th)
bool m_randCorrectionFlag
bool GetAtnCorrectionFlag()
This class is designed to be a mother virtual class for DataFile.
FLTNB m_TOFMeasurementRangeInPs
void SetAtnCorrectionFlagOn()
Declaration of class vDataFile.
int PROJ_GetScannerSpecificParameters()
Get PET specific parameters for projections from the scanner object, through the scannerManager.
bool m_ignoreNormCorrectionFlag
void SetEventKindFlagOn()
void DescribeSpecific()
Implementation of the pure virtual eponym function that simply prints info about the datafile...
void SetPerEventTOFResolutionFlag(bool a_perEventTOFResolutionFlag)
Set a boolean indicating the presence of per event time-of-flight (ToF) resolution values in datafile...
void SetIsotope(string a_value)
int WriteNormEvent(iEventNorm *ap_Event, int a_th)
bool GetNormCorrectionFlag()
int CheckSpecificConsistencyWithAnotherDataFile(vDataFile *ap_DataFile)
iDataFilePET()
iDataFilePET constructor. Initialize the member variables to their default values.
int ReadSpecificInfoInHeader(bool a_affectQuantificationFlag)
int CheckSpecificParameters()
Check parameters specific to PET data.
void SetNormCorrectionFlagOn()
vEvent * GetEventSpecific(char *ap_buffer, int a_th)
void SetIgnoreRandCorrectionFlag(bool a_ignoreRandCorrectionFlag)
Set the boolean m_ignoreRandCorrectionFlag to a_ignoreRandCorrectionFlag.
bool m_ignoreScatCorrectionFlag
int ComputeSizeEvent()
Computation of the size of each event according to the mandatory/optional correction fields...
bool GetRandCorrectionFlag()
Inherit from iEventPET. Class for PET list-mode events.
void SetIgnoreAttnCorrectionFlag(bool a_ignoreAttnCorrectionFlag)
Set the boolean m_ignoreAttnCorrectionFlag to a_ignoreAttnCorrectionFlag.
Inherit from iEventPET. Class for PET histogram mode events.
void SetTOFMeasurementRangeInPs(FLTNB a_TOFMeasurementRangeInPs)
bool GetPerEventTOFResolutionFlag() const
Simply return m_perEventTOFResolutionFlag.
~iDataFilePET()
iDataFilePET destructor.
void SetMaxNumberOfLinesPerEvent(uint16_t a_value)
FLTNB GetTOFBinSizeInPs()
bool m_ignoreAttnCorrectionFlag
int SetSpecificParametersFrom(vDataFile *ap_DataFile)
bool m_perEventTOFResolutionFlag
void SetTOFResolutionInPs(FLTNB a_TOFResolutionInPs)
uint16_t GetMaxNumberOfLinesPerEvent()
int WriteHistoEvent(iEventHistoPET *ap_Event, int a_th)
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
void SetIgnoreScatCorrectionFlag(bool a_ignoreScatCorrectionFlag)
Set the boolean m_ignoreScatCorrectionFlag to a_ignoreScatCorrectionFlag.
FLTNB GetTOFMeasurementRangeInPs()
void SetRandomCorrectionFlagOn()
FLTNB m_TOFQuantizationBinSizeInPs
Inherit from vEvent. Used for normalization events for sensitivity computation.
FLTNB GetTOFQuantizationBinSizeInPs()
FLTNB GetTOFResolutionInPs()
int PrepareDataFile()
Store different kind of information inside arrays (data relative to specific correction as well as ba...
void SetScatterCorrectionFlagOn()
Mother class for the Event objects.
FLTNB GetMaxAxialDiffmm()
bool GetScatCorrectionFlag()
int CheckFileSizeConsistency()
This function is implemented in child classes Check if file size is consistent. ...
bool m_normCorrectionFlag
uint16_t m_maxNumberOfLinesPerEvent
Inherit from vDataFile. Class that manages the reading of a PET input file (header + data)...
bool m_scatCorrectionFlag
bool m_ignoreRandCorrectionFlag
int WriteListEvent(iEventListPET *ap_Event, int a_th=0)
void SetIgnoreNormCorrectionFlag(bool a_ignoreNormCorrectionFlag)
Set the boolean m_ignoreNormCorrectionFlag to a_ignoreNormCorrectionFlag.
void SetIgnoreTOFFlag(bool a_ignoreTOFFlag)