STIR
6.2.0
|
Class for reading list mode data from the ECAT 966 scanner. More...
#include "stir/IO/ECAT966ListmodeInputFileFormat.h"
Public Member Functions | |
virtual const std::string | get_name () const |
virtual bool | can_read (const FileSignature &signature, std::istream &input) const |
Always return false as ECAT7 IO cannot read from stream. | |
virtual bool | can_read (const FileSignature &signature, const std::string &singles_filename) const |
Checks if it's an ECAT7 file by reading the main header and if the scanner is supported. */. | |
virtual unique_ptr< data_type > | read_from_file (std::istream &input) const |
read data from a stream More... | |
virtual unique_ptr< data_type > | read_from_file (const std::string &filename) const |
read the data via the .sgl file More... | |
Protected Member Functions | |
virtual bool | actual_can_read (const FileSignature &signature, std::istream &input) const |
Always return false as ECAT7 IO cannot read from stream. | |
Additional Inherited Members | |
Public Types inherited from stir::InputFileFormat< ListModeData > | |
typedef ListModeData | data_type |
Class for reading list mode data from the ECAT 966 scanner.
ECAT7 list mode data are recorded in the following files:
PREFIX_1.sgl
: contains an ECAT7 main header and the singles countsPREFIX_1.lm
: contains the coincidence events (max size is 2GB)PREFIX_1.sgl
: contains the next chunk of coincidence eventsThis class expects to be passed the name of the .sgl file.
|
inlinevirtual |
read data from a stream
This function should throw an exception if the read fails.
Implements stir::InputFileFormat< ListModeData >.
References stir::error().
|
inlinevirtual |
read the data via the .sgl file
We first remove the suffix (either .sgl or _1.sgl) and then call ecat::ecat7::CListModeDataECAT::CListModeDataECAT(const std::string&)
Reimplemented from stir::InputFileFormat< ListModeData >.
References stir::find_pos_of_extension(), and stir::info().