STIR  6.2.0
Public Member Functions | Protected Member Functions | List of all members

Class for reading list mode data from the ECAT 966 scanner. More...

#include "stir/IO/ECAT966ListmodeInputFileFormat.h"

Inheritance diagram for stir::ecat::ecat7::ECAT966ListmodeInputFileFormat:
Inheritance graph
[legend]

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_typeread_from_file (std::istream &input) const
 read data from a stream More...
 
virtual unique_ptr< data_typeread_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
 

Detailed Description

Class for reading list mode data from the ECAT 966 scanner.

ECAT7 list mode data are recorded in the following files:

This class expects to be passed the name of the .sgl file.

Member Function Documentation

◆ read_from_file() [1/2]

virtual unique_ptr<data_type> stir::ecat::ecat7::ECAT966ListmodeInputFileFormat::read_from_file ( std::istream &  input) const
inlinevirtual

read data from a stream

This function should throw an exception if the read fails.

Warning
This member throws for most implementations. Use a filename instead.

Implements stir::InputFileFormat< ListModeData >.

References stir::error().

◆ read_from_file() [2/2]

virtual unique_ptr<data_type> stir::ecat::ecat7::ECAT966ListmodeInputFileFormat::read_from_file ( const std::string &  filename) const
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().


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