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.
Declaration of class vDataFile.
int InitAngles(FLTNB *ap_angles)
void SetDetectorRotDirection(int a_direction)
int SetSpecificParametersFrom(vDataFile *ap_DataFile)
bool m_blankCorrectionFlag
Declaration of class iEventHistoCT.
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)
bool GetScatCorrectionFlag()
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 GetDetectorRotDirection()
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...
void SetEventKindFlagOn()
int m_detectorRotDirection
int CheckSpecificConsistencyWithAnotherDataFile(vDataFile *ap_DataFile)
Declaration of class iEventListCT.
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)...
uint16_t GetNbProjections()
bool GetBlankCorrectionFlag()
~iDataFileCT()
iDataFileCT destructor.
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. ...