24#ifndef __stir_IO_stir_ecat_common_H__
25#define __stir_IO_stir_ecat_common_H__
32#define START_NAMESPACE_ECAT \
35#define END_NAMESPACE_ECAT }
36#define USING_NAMESPACE_ECAT using namespace ecat;
38#define START_NAMESPACE_ECAT6 \
41#define END_NAMESPACE_ECAT6 }
42#define USING_NAMESPACE_ECAT6 using namespace ecat6;
44#define START_NAMESPACE_ECAT7 \
47#define END_NAMESPACE_ECAT7 }
48#define USING_NAMESPACE_ECAT7 using namespace ecat7;
68 ECAT_unknown_data_type = 0,
69 ECAT_Byte_data_type = 1,
70 ECAT_I2_little_endian_data_type = 2,
71 ECAT_I4_little_endian_data_type = 3,
72 ECAT_R4_VAX_data_type = 4,
73 ECAT_R4_IEEE_big_endian_data_type = 5,
74 ECAT_I2_big_endian_data_type = 6,
75 ECAT_I4_big_endian_data_type = 7
This class provides member functions to find out what byte-order your machine is and to swap numbers.
Definition ByteOrder.h:100
provides names for some numeric types and methods for finding their properties.
Definition NumericType.h:55
An (abstract base) class that contains information on the projection data.
Definition ProjDataInfo.h:70
A class for storing some info on the scanner.
Definition Scanner.h:108
basic configuration include file
short find_ECAT_data_type(const NumericType &type, const ByteOrder &byte_order)
Find out which ECAT data type corresponds to a certain NumericType and ByteOrder.
Definition stir_ecat_common.cxx:76
ECATDataType
Possible values for the data_type field in ECAT headers.
Definition stir_ecat_common.h:67
std::vector< int > find_timing_poss_sequence(const ProjDataInfo &pdi)
Return the sequence of how Siemens stores TOF bins.
Definition stir_ecat_common.cxx:202
short find_ECAT_system_type(const Scanner &scanner)
Find the value used in the ECAT Main header for a given scanner.
Definition stir_ecat_common.cxx:115
void find_type_from_ECAT_data_type(NumericType &type, ByteOrder &byte_order, const short data_type)
Find out which NumericType and ByteOrder corresponds to a ECAT data type.
Definition stir_ecat_common.cxx:36
Scanner * find_scanner_from_ECAT_system_type(const short system_type)
Find the scanner corresponding to the system type in the main header.
Definition stir_ecat_common.cxx:155
std::vector< int > find_segment_sequence(const ProjDataInfo &pdi)
Return the sequence of how Siemens stores segments.
Definition stir_ecat_common.cxx:186