9 #define IDATAFILECT_HH 1 11 #include "gVariables.hh" 13 #include "vScanner.hh" This class is designed to be a mother virtual class for DataFile.
bool GetScatCorrectionFlag()
Simply return m_scatCorrectionFlag.
int GetDetectorRotDirection()
Simply return m_detectorRotDirection.
int InitAngles(FLTNB *ap_angles)
void SetDetectorRotDirection(int a_direction)
int SetSpecificParametersFrom(vDataFile *ap_DataFile)
void SetEventKindFlagOn()
set to true the flag indicating the presence of the kind of a list-mode event in the datafile ...
bool m_blankCorrectionFlag
Inherit from iEventCT. Class for CT list-mode events.
iDataFileCT()
iDataFileCT constructor. Initialize the member variables to their default values. ...
bool m_ignoreScatCorrectionFlag
uint16_t m_nbOfProjections
int ReadSpecificInfoInHeader(bool a_affectQuantificationFlag)
bool m_ignoreBlankCorrectionFlag
bool m_scatCorrectionFlag
int WriteHeader()
Generate a header file according to the data output information.
int WriteListEvent(iEventListCT *ap_Event, int a_th)
int ComputeSizeEvent()
Computation of the size of each event according to the mandatory/optional correction fields...
vEvent * GetEventSpecific(char *ap_buffer, int a_th)
void SetNbProjections(uint16_t a_nbProjections)
int PROJ_GetScannerSpecificParameters()
Get SPECT specific parameters for projections from the scanner object, through the scannerManager...
int CheckSpecificParameters()
Check parameters specific to CT data.
void DescribeSpecific()
Implementation of the pure virtual eponym function that simply prints info about the datafile...
Inherit from iEventCT. Class for CT histogram mode events.
int PROJ_InitFile()
Initialize the fstream objets for output writing as well as some other variables specific to the Proj...
bool GetBlankCorrectionFlag()
Simply return m_blankCorrectionFlag.
bool GetEventKindFlag()
Simply return m_eventKindFlag.
int m_detectorRotDirection
int CheckSpecificConsistencyWithAnotherDataFile(vDataFile *ap_DataFile)
uint16_t GetNbProjections()
int WriteEvent(vEvent *ap_Event, int a_th=0)
Mother class for the Event objects.
Inherit from vDataFile. Class that manages the reading of a CT input file (header + data)...
Declaration of class iEventHistoCT.
Declaration of class iEventListCT.
~iDataFileCT()
iDataFileCT destructor.
Declaration of class vDataFile.
int WriteHistoEvent(iEventHistoCT *ap_Event, int a_th)
int PrepareDataFile()
Store different kind of information inside arrays (data relative to specific correction as well as ba...
int CheckFileSizeConsistency()
This function is implemented in child classes Check if file size is consistent. ...