CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
iDataFileCT Class Reference

Inherit from vDataFile. Class that manages the reading of a CT input file (header + data). More...

#include <iDataFileCT.hh>

Inheritance diagram for iDataFileCT:
Inheritance graph
Collaboration diagram for iDataFileCT:
Collaboration graph

Public Member Functions

 iDataFileCT ()
 iDataFileCT constructor. Initialize the member variables to their default values. More...
 
 ~iDataFileCT ()
 iDataFileCT destructor. More...
 
int ReadSpecificInfoInHeader (bool a_affectQuantificationFlag)
 
int WriteHeader ()
 Generate a header file according to the data output information. More...
 
int ComputeSizeEvent ()
 Computation of the size of each event according to the mandatory/optional correction fields. More...
 
int PrepareDataFile ()
 Store different kind of information inside arrays (data relative to specific correction as well as basic raw data for the case data is loaded in RAM)
Use the flag provided by the user to determine how the data has to be sorted (preloaded or read on the fly) More...
 
int WriteEvent (vEvent *ap_Event, int a_th=0)
 
vEventGetEventSpecific (char *ap_buffer, int a_th)
 
int InitAngles (FLTNB *ap_angles)
 
void DescribeSpecific ()
 Implementation of the pure virtual eponym function that simply prints info about the datafile. More...
 
int PROJ_InitFile ()
 Initialize the fstream objets for output writing as well as some other variables specific to the Projection script (Event-based correction flags, Estimated size of data file) More...
 
int PROJ_GetScannerSpecificParameters ()
 Get SPECT specific parameters for projections from the scanner object, through the scannerManager. More...
 
uint16_t GetNbProjections ()
 
FLTNBGetAngles ()
 
void SetEventKindFlagOn ()
 set to true the flag indicating the presence of the kind of a list-mode event in the datafile More...
 
void SetNbProjections (uint16_t a_nbProjections)
 
int GetDetectorRotDirection ()
 Simply return m_detectorRotDirection. More...
 
void SetDetectorRotDirection (int a_direction)
 
bool GetEventKindFlag ()
 Simply return m_eventKindFlag. More...
 
bool GetScatCorrectionFlag ()
 Simply return m_scatCorrectionFlag. More...
 
bool GetBlankCorrectionFlag ()
 Simply return m_blankCorrectionFlag. More...
 
 iDataFileCT ()
 iDataFileCT constructor. Initialize the member variables to their default values. More...
 
 ~iDataFileCT ()
 iDataFileCT destructor. More...
 
int ReadSpecificInfoInHeader (bool a_affectQuantificationFlag)
 
int WriteHeader ()
 This function is implemented in child classes.
Generate a header file according to the data output information. More...
 
int ComputeSizeEvent ()
 This function is implemented in child classes
Computation of the size of each event according to the mandatory/optional correction fields. More...
 
int PrepareDataFile ()
 This function is implemented in child classes
Store different kind of information inside arrays (data relative to specific correction as well as basic raw data for the case data is loaded in RAM)
Use the flag provided by the user to determine how the data has to be sorted (preloaded or read on the fly) More...
 
int WriteEvent (vEvent *ap_Event, int a_th=0)
 
vEventGetEventSpecific (char *ap_buffer, int a_th)
 
int InitAngles (FLTNB *ap_angles)
 
void DescribeSpecific ()
 A pure virtual function used to describe the specific parts of the datafile. More...
 
int PROJ_InitFile ()
 This function is implemented in child classes
Initialize the fstream objets for output writing as well as some other variables specific to the Projection script. More...
 
int PROJ_GetScannerSpecificParameters ()
 This function is implemented in child classes
It is used to set several variables of the datafile when using the projection script.
Get modality specific parameters from the scanner object, through the scannerManager. More...
 
uint16_t GetNbProjections ()
 
FLTNBGetAngles ()
 
void SetEventKindFlagOn ()
 
void SetNbProjections (uint16_t a_nbProjections)
 
int GetDetectorRotDirection ()
 
void SetDetectorRotDirection (int a_direction)
 
bool GetEventKindFlag ()
 
bool GetScatCorrectionFlag ()
 
bool GetBlankCorrectionFlag ()
 
- Public Member Functions inherited from vDataFile
 vDataFile ()
 vDataFile constructor. More...
 
virtual ~vDataFile ()
 vDataFile destructor. More...
 
int ReadInfoInHeader (bool a_affectQuantificationFlag=true)
 
int SetParametersFrom (vDataFile *ap_DataFile)
 
int CheckParameters ()
 Check the initialization of member variables
Call the CheckSpecificParameters() function implemented in child classes. More...
 
int InitializeMappedFile ()
 Check the datafile existency, map it to memory and get the raw char* pointer.
. More...
 
int OpenFileForWriting (string a_suffix="")
 
int CloseFile ()
 Close as many binary file stream for writing. More...
 
vEventGetEvent (int64_t a_eventIndex, int a_th=0)
 
void GetEventIndexStartAndStop (int64_t *ap_indexStart, int64_t *ap_indexStop, int a_subsetNum=0, int a_NbSubsets=1)
 
int CheckConsistencyWithAnotherBedDataFile (vDataFile *ap_DataFile)
 
void Describe ()
 A function used to describe the generic parts of the datafile. More...
 
int PROJ_WriteData ()
 Write/Merge chunk of data in a general data file. More...
 
int PROJ_DeleteTmpDataFile ()
 Delete temporary datafile used for multithreaded output writing if needed. More...
 
vEventPROJ_GenerateEvent (int idx_elt1, int idx_elt2, int a_th)
 
int GetBedIndex ()
 
int GetDataMode ()
 
string GetDataModeToString ()
 
int GetDataType ()
 
string GetDataTypeToString ()
 
int GetDataSpec ()
 
string GetDataSpecToString ()
 
int64_t GetSize ()
 
int64_t GetEventSize ()
 
string GetHeaderDataFileName ()
 
string GetDataFileName ()
 
FLTNB GetStartTime ()
 
FLTNB GetDuration ()
 
FLTNB GetCalibrationFactor ()
 
FLTNBGetPOIResolution ()
 
bool * GetPOIDirectionFlag ()
 
bool GetPOIInfoFlag ()
 
bool GetIgnorePOIFlag ()
 
virtual int GetMaxRingDiff ()
 Return an error by default.
This function is surcharged by the PET (and CT) scanner daughter class. More...
 
void SetDataMode (int a_dataMode)
 
void SetDataType (int a_dataType)
 
void SetBedIndex (int a_bedIndex)
 
bool GetBedPositionFlag ()
 
FLTNB GetRelativeBedPosition ()
 
void SetVerbose (int a_verboseLevel)
 
int GetVerbose ()
 Get the verbose level. More...
 
void SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
 
void SetPOIResolution (FLTNB ap_value[3])
 
void SetIgnorePOIFlag (bool a_ignorePOIFlag)
 
void SetHeaderDataFileName (const string &a_headerFileName)
 
void SetBinaryDataFileName (const string &a_dataFileName)
 
void SetCalibrationFactor (FLTNB a_value)
 
void SetNbEvents (int64_t a_value)
 
void SetStartTime (FLTNB a_value)
 
void SetDuration (FLTNB a_value)
 
string GetScannerName ()
 
virtual int Shuffle (int64_t)
 !!!\ This function has been modified to be used specifically with a More...
 
 vDataFile ()
 vDataFile constructor. More...
 
virtual ~vDataFile ()
 vDataFile destructor. More...
 
int ReadInfoInHeader (bool a_affectQuantificationFlag=true)
 
int SetParametersFrom (vDataFile *ap_DataFile)
 
int CheckParameters ()
 
int InitializeMappedFile ()
 
int InitializeAdditionalData (const string &a_pathToAdditionalData)
 Memory allocation and initialization for the additional data matrices. More...
 
FLTNBGetNewAdditionalDataMatrix (INTNB a_nbDataPerEvent)
 Allocate the memory for this additional data matrix and return the pointer to the matrix. More...
 
int OpenFileForWriting (string a_suffix="")
 
int CloseFile ()
 
vEventGetEvent (int64_t a_eventIndex, int a_th=0)
 
void GetEventIndexStartAndStop (int64_t *ap_indexStart, int64_t *ap_indexStop, int a_subsetNum=0, int a_NbSubsets=1)
 
int CheckConsistencyWithAnotherBedDataFile (vDataFile *ap_DataFile)
 
void Describe ()
 
int PROJ_WriteData ()
 
int PROJ_DeleteTmpDataFile ()
 
vEventPROJ_GenerateEvent (int idx_elt1, int idx_elt2, int a_th)
 
int GetBedIndex ()
 
int GetDataMode ()
 
string GetDataModeToString ()
 
int GetDataType ()
 
string GetDataTypeToString ()
 
int GetDataSpec ()
 
string GetDataSpecToString ()
 
int64_t GetSize ()
 
int64_t GetEventSize ()
 
string GetHeaderDataFileName ()
 
string GetDataFileName ()
 
FLTNB GetStartTime ()
 
FLTNB GetDuration ()
 
FLTNB GetCalibrationFactor ()
 
FLTNBGetPOIResolution ()
 
bool * GetPOIDirectionFlag ()
 
bool GetPOIInfoFlag ()
 
bool GetIgnorePOIFlag ()
 
virtual int GetMaxRingDiff ()
 
void SetDataMode (int a_dataMode)
 
void SetDataType (int a_dataType)
 
void SetBedIndex (int a_bedIndex)
 
bool GetBedPositionFlag ()
 
FLTNB GetRelativeBedPosition ()
 
void SetVerbose (int a_verboseLevel)
 
int GetVerbose ()
 
void SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
 
void SetPOIResolution (FLTNB ap_value[3])
 
void SetIgnorePOIFlag (bool a_ignorePOIFlag)
 
void SetHeaderDataFileName (const string &a_headerFileName)
 
void SetBinaryDataFileName (const string &a_dataFileName)
 
void SetCalibrationFactor (FLTNB a_value)
 
int64_t GetNbEvents ()
 Get the total number of events in the datafile. More...
 
void SetNbEvents (int64_t a_value)
 
void SetStartTime (FLTNB a_value)
 
void SetDuration (FLTNB a_value)
 
string GetScannerName ()
 
int GetNbAdditionalData ()
 Get the number of additional data. More...
 
virtual int Shuffle (int64_t)
 

Private Member Functions

int SetSpecificParametersFrom (vDataFile *ap_DataFile)
 
int CheckSpecificParameters ()
 Check parameters specific to CT data. More...
 
int CheckFileSizeConsistency ()
 This function is implemented in child classes
Check if file size is consistent. More...
 
int WriteHistoEvent (iEventHistoCT *ap_Event, int a_th)
 
int WriteListEvent (iEventListCT *ap_Event, int a_th)
 
int CheckSpecificConsistencyWithAnotherDataFile (vDataFile *ap_DataFile)
 
int SetSpecificParametersFrom (vDataFile *ap_DataFile)
 
int CheckSpecificParameters ()
 This function is implemented in child classes
Check specific parameters of child classes. More...
 
int CheckFileSizeConsistency ()
 
int WriteHistoEvent (iEventHistoCT *ap_Event, int a_th)
 
int WriteListEvent (iEventListCT *ap_Event, int a_th)
 
int CheckSpecificConsistencyWithAnotherDataFile (vDataFile *ap_DataFile)
 

Private Attributes

bool m_eventKindFlag
 
bool m_blankCorrectionFlag
 
bool m_ignoreBlankCorrectionFlag
 
bool m_scatCorrectionFlag
 
bool m_ignoreScatCorrectionFlag
 
uint16_t m_nbOfProjections
 
FLTNBmp_angles
 
int m_detectorRotDirection
 

Additional Inherited Members

- Public Attributes inherited from vDataFile
FLTNB ** m2p_additionalData
 
- Protected Attributes inherited from vDataFile
oImageDimensionsAndQuantificationmp_ID
 
int m_verbose
 
string m_headerFileName
 
string m_dataFileName
 
int64_t m_nbEvents
 
int m_dataMode
 
int m_dataType
 
int m_dataSpec
 
FLTNB m_startTimeInSec
 
FLTNB m_durationInSec
 
FLTNB m_calibrationFactor
 
int m_bedIndex
 
FLTNB m_relativeBedPosition
 
bool m_bedPositionFlag
 
string m_scannerName
 
bool m_POIInfoFlag
 
bool m_ignorePOIFlag
 
bool mp_POIDirectionFlag [3]
 
FLTNB mp_POIResolution [3]
 
int64_t m_sizeEvent
 
fstream ** m2p_dataFile
 
vEvent ** m2p_BufferEvent
 
int64_t m_mpi1stEvent
 
int64_t m_mpiLastEvent
 
int64_t m_mpiNbEvents
 
oMemoryMappedmp_MappedFile
 
char * mp_mappedMemory
 
int m_nbAdditionalData
 
INTNBmp_additionalDataSize
 
bool m_loadedAdditional
 
int m_nbCustomINTData
 
int m_nbCustomFLTData
 

Detailed Description

Inherit from vDataFile. Class that manages the reading of a CT input file (header + data).

It contains several arrays corresponding to the different kind of informations the data file could contain.
As many booleans as arrays say if the data are here or not. The data file can be either completely loaded, or read event by event during reconstruction.
MPI is coming here to cut the data file into peaces (also either can be loaded or read on-the-fly).

Definition at line 25 of file code/include/datafile/iDataFileCT.hh.

Constructor & Destructor Documentation

◆ iDataFileCT() [1/2]

iDataFileCT::iDataFileCT ( )

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

Definition at line 16 of file code/src/datafile/iDataFileCT.cc.

◆ ~iDataFileCT() [1/2]

iDataFileCT::~iDataFileCT ( )

iDataFileCT destructor.

Definition at line 36 of file code/src/datafile/iDataFileCT.cc.

◆ iDataFileCT() [2/2]

iDataFileCT::iDataFileCT ( )

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

◆ ~iDataFileCT() [2/2]

iDataFileCT::~iDataFileCT ( )

iDataFileCT destructor.

Member Function Documentation

◆ CheckFileSizeConsistency() [1/2]

int iDataFileCT::CheckFileSizeConsistency ( )
privatevirtual

This function is implemented in child classes
Check if file size is consistent.

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

Definition at line 380 of file code/src/datafile/iDataFileCT.cc.

Here is the caller graph for this function:

◆ CheckFileSizeConsistency() [2/2]

int iDataFileCT::CheckFileSizeConsistency ( )
privatevirtual

Implements vDataFile.

◆ CheckSpecificConsistencyWithAnotherDataFile() [1/2]

int iDataFileCT::CheckSpecificConsistencyWithAnotherDataFile ( vDataFile ap_DataFile)
privatevirtual

Implements vDataFile.

Definition at line 426 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckSpecificConsistencyWithAnotherDataFile() [2/2]

int iDataFileCT::CheckSpecificConsistencyWithAnotherDataFile ( vDataFile ap_DataFile)
privatevirtual

Implements vDataFile.

◆ CheckSpecificParameters() [1/2]

int iDataFileCT::CheckSpecificParameters ( )
privatevirtual

Check parameters specific to CT data.

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

Definition at line 350 of file code/src/datafile/iDataFileCT.cc.

Here is the caller graph for this function:

◆ CheckSpecificParameters() [2/2]

int iDataFileCT::CheckSpecificParameters ( )
privatevirtual

This function is implemented in child classes
Check specific parameters of child classes.

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

◆ ComputeSizeEvent() [1/2]

int iDataFileCT::ComputeSizeEvent ( )
virtual

Computation of the size of each event according to the mandatory/optional correction fields.

Returns
0 is success, positive value otherwise

Implements vDataFile.

Definition at line 118 of file code/src/datafile/iDataFileCT.cc.

◆ ComputeSizeEvent() [2/2]

int iDataFileCT::ComputeSizeEvent ( )
virtual

This function is implemented in child classes
Computation of the size of each event according to the mandatory/optional correction fields.

Returns
0 is success, positive value otherwise

Implements vDataFile.

◆ DescribeSpecific() [1/2]

void iDataFileCT::DescribeSpecific ( )
virtual

A pure virtual function used to describe the specific parts of the datafile.

Implements vDataFile.

◆ DescribeSpecific() [2/2]

void iDataFileCT::DescribeSpecific ( )
virtual

Implementation of the pure virtual eponym function that simply prints info about the datafile.

Implements vDataFile.

Definition at line 329 of file code/src/datafile/iDataFileCT.cc.

◆ GetAngles() [1/2]

FLTNB* iDataFileCT::GetAngles ( )
inline

Definition at line 130 of file include/datafile/iDataFileCT.hh.

◆ GetAngles() [2/2]

iDataFileCT::GetAngles ( )
inline
Returns
Angles for each projection of the acquisition

Definition at line 130 of file code/include/datafile/iDataFileCT.hh.

Here is the caller graph for this function:

◆ GetBlankCorrectionFlag() [1/2]

iDataFileCT::GetBlankCorrectionFlag ( )
inline

Simply return m_blankCorrectionFlag.

Returns
m_blankCorrectionFlag

Definition at line 179 of file code/include/datafile/iDataFileCT.hh.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBlankCorrectionFlag() [2/2]

bool iDataFileCT::GetBlankCorrectionFlag ( )
inline

Definition at line 179 of file include/datafile/iDataFileCT.hh.

Here is the call graph for this function:

◆ GetDetectorRotDirection() [1/2]

int iDataFileCT::GetDetectorRotDirection ( )
inline

Definition at line 151 of file include/datafile/iDataFileCT.hh.

◆ GetDetectorRotDirection() [2/2]

iDataFileCT::GetDetectorRotDirection ( )
inline

Simply return m_detectorRotDirection.

Returns
m_detectorRotDirection

Definition at line 151 of file code/include/datafile/iDataFileCT.hh.

Here is the caller graph for this function:

◆ GetEventKindFlag() [1/2]

iDataFileCT::GetEventKindFlag ( )
inline

Simply return m_eventKindFlag.

Returns
m_eventKindFlag

Definition at line 165 of file code/include/datafile/iDataFileCT.hh.

Here is the caller graph for this function:

◆ GetEventKindFlag() [2/2]

bool iDataFileCT::GetEventKindFlag ( )
inline

Definition at line 165 of file include/datafile/iDataFileCT.hh.

◆ GetEventSpecific() [1/2]

vEvent * iDataFileCT::GetEventSpecific ( char *  ap_buffer,
int  a_th 
)
virtual

Implements vDataFile.

Definition at line 248 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ GetEventSpecific() [2/2]

vEvent* iDataFileCT::GetEventSpecific ( char *  ap_buffer,
int  a_th 
)
virtual

Implements vDataFile.

◆ GetNbProjections() [1/2]

uint16_t iDataFileCT::GetNbProjections ( )
inline

Definition at line 124 of file include/datafile/iDataFileCT.hh.

◆ GetNbProjections() [2/2]

iDataFileCT::GetNbProjections ( )
inline
Returns
total number of projections in the CT acquisition

Definition at line 124 of file code/include/datafile/iDataFileCT.hh.

Here is the caller graph for this function:

◆ GetScatCorrectionFlag() [1/2]

iDataFileCT::GetScatCorrectionFlag ( )
inline

Simply return m_scatCorrectionFlag.

Returns
m_scatCorrectionFlag

Definition at line 172 of file code/include/datafile/iDataFileCT.hh.

Here is the caller graph for this function:

◆ GetScatCorrectionFlag() [2/2]

bool iDataFileCT::GetScatCorrectionFlag ( )
inline

Definition at line 172 of file include/datafile/iDataFileCT.hh.

◆ InitAngles() [1/2]

int iDataFileCT::InitAngles ( FLTNB ap_angles)

◆ InitAngles() [2/2]

int iDataFileCT::InitAngles ( FLTNB ap_angles)

Definition at line 464 of file code/src/datafile/iDataFileCT.cc.

◆ PrepareDataFile() [1/2]

int iDataFileCT::PrepareDataFile ( )
virtual

Store different kind of information inside arrays (data relative to specific correction as well as basic raw data for the case data is loaded in RAM)
Use the flag provided by the user to determine how the data has to be sorted (preloaded or read on the fly)

Returns
0 is success, positive value otherwise

Implements vDataFile.

Definition at line 169 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ PrepareDataFile() [2/2]

int iDataFileCT::PrepareDataFile ( )
virtual

This function is implemented in child classes
Store different kind of information inside arrays (data relative to specific correction as well as basic raw data for the case data is loaded in RAM)
Use the flag provided by the user to determine how the data has to be sorted (preloaded or read on the fly)

Returns
0 is success, positive value otherwise

Implements vDataFile.

◆ PROJ_GetScannerSpecificParameters() [1/2]

int iDataFileCT::PROJ_GetScannerSpecificParameters ( )
virtual

This function is implemented in child classes
It is used to set several variables of the datafile when using the projection script.
Get modality specific parameters from the scanner object, through the scannerManager.

Returns
0 if success, positive value otherwise

Implements vDataFile.

◆ PROJ_GetScannerSpecificParameters() [2/2]

int iDataFileCT::PROJ_GetScannerSpecificParameters ( )
virtual

Get SPECT specific parameters for projections from the scanner object, through the scannerManager.

Returns
0 if success, positive value otherwise

Implements vDataFile.

Definition at line 701 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ PROJ_InitFile() [1/2]

int iDataFileCT::PROJ_InitFile ( )
virtual

Initialize the fstream objets for output writing as well as some other variables specific to the Projection script (Event-based correction flags, Estimated size of data file)

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

Definition at line 486 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ PROJ_InitFile() [2/2]

int iDataFileCT::PROJ_InitFile ( )
virtual

This function is implemented in child classes
Initialize the fstream objets for output writing as well as some other variables specific to the Projection script.

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

◆ ReadSpecificInfoInHeader() [1/2]

int iDataFileCT::ReadSpecificInfoInHeader ( bool  a_affectQuantificationFlag)
virtual

Implements vDataFile.

Definition at line 46 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ ReadSpecificInfoInHeader() [2/2]

int iDataFileCT::ReadSpecificInfoInHeader ( bool  a_affectQuantificationFlag)
virtual

Implements vDataFile.

◆ SetDetectorRotDirection() [1/2]

void iDataFileCT::SetDetectorRotDirection ( int  a_direction)
inline

Definition at line 158 of file code/include/datafile/iDataFileCT.hh.

◆ SetDetectorRotDirection() [2/2]

void iDataFileCT::SetDetectorRotDirection ( int  a_direction)
inline

Definition at line 158 of file include/datafile/iDataFileCT.hh.

◆ SetEventKindFlagOn() [1/2]

void iDataFileCT::SetEventKindFlagOn ( )
inline

Definition at line 137 of file include/datafile/iDataFileCT.hh.

◆ SetEventKindFlagOn() [2/2]

iDataFileCT::SetEventKindFlagOn ( )
inline

set to true the flag indicating the presence of the kind of a list-mode event in the datafile

This function is dedicated to datafile conversion scripts

Definition at line 137 of file code/include/datafile/iDataFileCT.hh.

◆ SetNbProjections() [1/2]

void iDataFileCT::SetNbProjections ( uint16_t  a_nbProjections)
inline

Definition at line 144 of file include/datafile/iDataFileCT.hh.

◆ SetNbProjections() [2/2]

void iDataFileCT::SetNbProjections ( uint16_t  a_nbProjections)
inline

Definition at line 144 of file code/include/datafile/iDataFileCT.hh.

◆ SetSpecificParametersFrom() [1/2]

int iDataFileCT::SetSpecificParametersFrom ( vDataFile ap_DataFile)
privatevirtual

Implements vDataFile.

◆ SetSpecificParametersFrom() [2/2]

int iDataFileCT::SetSpecificParametersFrom ( vDataFile ap_DataFile)
privatevirtual

Implements vDataFile.

Definition at line 100 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteEvent() [1/2]

int iDataFileCT::WriteEvent ( vEvent ap_Event,
int  a_th = 0 
)
virtual

Implements vDataFile.

◆ WriteEvent() [2/2]

int iDataFileCT::WriteEvent ( vEvent ap_Event,
int  a_th = 0 
)
virtual

Implements vDataFile.

Definition at line 538 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ WriteHeader() [1/2]

int iDataFileCT::WriteHeader ( )
virtual

Generate a header file according to the data output information.

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

Definition at line 648 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:

◆ WriteHeader() [2/2]

int iDataFileCT::WriteHeader ( )
virtual

This function is implemented in child classes.
Generate a header file according to the data output information.

Returns
0 if success, and positive value otherwise.

Implements vDataFile.

◆ WriteHistoEvent() [1/2]

int iDataFileCT::WriteHistoEvent ( iEventHistoCT ap_Event,
int  a_th 
)
private

◆ WriteHistoEvent() [2/2]

int iDataFileCT::WriteHistoEvent ( iEventHistoCT ap_Event,
int  a_th 
)
private

Definition at line 569 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteListEvent() [1/2]

int iDataFileCT::WriteListEvent ( iEventListCT ap_Event,
int  a_th 
)
private

◆ WriteListEvent() [2/2]

int iDataFileCT::WriteListEvent ( iEventListCT ap_Event,
int  a_th 
)
private

Definition at line 607 of file code/src/datafile/iDataFileCT.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_blankCorrectionFlag

bool iDataFileCT::m_blankCorrectionFlag
private

Flag that says if normalization correction terms are included in the data. Default = false

Definition at line 233 of file code/include/datafile/iDataFileCT.hh.

◆ m_detectorRotDirection

int iDataFileCT::m_detectorRotDirection
private

Head rotation direction (0=clockwise, 1=counterclockwise)

Definition at line 239 of file code/include/datafile/iDataFileCT.hh.

◆ m_eventKindFlag

bool iDataFileCT::m_eventKindFlag
private

Flag for informations about the event nature (true, scatter) in the data. Default value = false

Definition at line 232 of file code/include/datafile/iDataFileCT.hh.

◆ m_ignoreBlankCorrectionFlag

bool iDataFileCT::m_ignoreBlankCorrectionFlag
private

Flag to say if we ignore the normalization correction even if present. Default = false

Definition at line 234 of file code/include/datafile/iDataFileCT.hh.

◆ m_ignoreScatCorrectionFlag

bool iDataFileCT::m_ignoreScatCorrectionFlag
private

Flag to say if we ignore the scatter correction even if present. Default = false

Definition at line 236 of file code/include/datafile/iDataFileCT.hh.

◆ m_nbOfProjections

uint16_t iDataFileCT::m_nbOfProjections
private

Total number of projections during the acquisition(for all the heads). No Default

Definition at line 237 of file code/include/datafile/iDataFileCT.hh.

◆ m_scatCorrectionFlag

bool iDataFileCT::m_scatCorrectionFlag
private

Flag that says if scatter correction terms are included in the data. Default = false

Definition at line 235 of file code/include/datafile/iDataFileCT.hh.

◆ mp_angles

FLTNB * iDataFileCT::mp_angles
private

Angle [for each projection] in degrees. No Default

Definition at line 238 of file code/include/datafile/iDataFileCT.hh.


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