STIR
6.2.0
|
Class for reading binary listmode files from the PENNPet Explorer scanner. More...
#include "stir/IO/InputStreamWithRecordsFromUPENNbin.h"
Public Member Functions | |
virtual Succeeded | create_output_file (const std::string ofilename) |
virtual Succeeded | set_up () |
Must be called before calling for the first event. | |
virtual std::string | method_info () const |
gives method information | |
virtual Succeeded | get_next_record (CListRecordPENN &record) |
virtual Succeeded | reset () |
go back to starting position | |
virtual SavedPosition | save_get_position () |
virtual Succeeded | set_get_position (const SavedPosition &) |
std::streambuf & | get_stream () |
const PET::ListFileHeader * | get_file_header () const |
virtual void | set_current_record () |
virtual void | set_new_record (const bool &d, const short int &_dt, const unsigned short int &_xa, const unsigned short int &_xb, const unsigned short int &_za, const unsigned short int &_zb, const unsigned short int &_ea, const unsigned short int &_eb) |
Public Member Functions inherited from stir::RegisteredParsingObject< InputStreamWithRecordsFromUPENNbin, InputStreamWithRecordsFromUPENN, InputStreamWithRecordsFromUPENN > | |
std::string | get_registered_name () const override |
Returns Derived::registered_name. | |
std::string | parameter_info () override |
Returns a string with all parameters and their values, in a form suitable for parsing again. | |
Public Member Functions inherited from stir::InputStreamWithRecordsFromUPENN | |
unsigned long int | get_total_number_of_events (CListRecordPENN &record) |
std::vector< std::streampos > | get_saved_get_positions () const |
void | set_saved_get_positions (const std::vector< std::streampos > &) |
std::streambuf & | get_stream () |
Public Member Functions inherited from stir::ParsingObject | |
ParsingObject (const ParsingObject &) | |
ParsingObject & | operator= (const ParsingObject &) |
void | ask_parameters () |
bool | parse (std::istream &f) |
bool | parse (const char *const filename) |
Static Public Attributes | |
static const char *const | registered_name = "UPENN_binary_listmode" |
Protected Member Functions | |
virtual void | set_defaults () |
Set defaults before parsing. | |
virtual void | initialise_keymap () |
Initialise all keywords. | |
virtual bool | post_processing () |
This will be called at the end of the parsing. More... | |
Protected Member Functions inherited from stir::ParsingObject | |
virtual void | set_key_values () |
This will be called before parsing or parameter_info is called. More... | |
Additional Inherited Members | |
Public Types inherited from stir::InputStreamWithRecordsFromUPENN | |
typedef std::vector< long long int >::size_type | SavedPosition |
Static Public Member Functions inherited from stir::RegisteredParsingObject< InputStreamWithRecordsFromUPENNbin, InputStreamWithRecordsFromUPENN, InputStreamWithRecordsFromUPENN > | |
static InputStreamWithRecordsFromUPENN * | read_from_stream (std::istream *) |
Construct a new object (of type Derived) by parsing the istream. More... | |
Static Public Member Functions inherited from stir::RegisteredObject< InputStreamWithRecordsFromUPENN > | |
static InputStreamWithRecordsFromUPENN * | read_registered_object (std::istream *in, const std::string ®istered_name) |
Construct a new object (of a type derived from Root, its actual type determined by the registered_name parameter) by parsing the istream. More... | |
static InputStreamWithRecordsFromUPENN * | ask_type_and_parameters () |
ask the user for the type, and then calls read_registered_object(0, type) More... | |
static void | list_registered_names (std::ostream &stream) |
List all possible registered names to the stream. More... | |
Protected Types inherited from stir::RegisteredObject< InputStreamWithRecordsFromUPENN > | |
typedef InputStreamWithRecordsFromUPENN *(* | RootFactory) (std::istream *) |
The type of a root factory is a function, taking an istream* as argument, and returning a Root*. | |
typedef FactoryRegistry< std::string, RootFactory, interfile_less > | RegistryType |
The type of the registry. | |
Static Protected Member Functions inherited from stir::RegisteredObject< InputStreamWithRecordsFromUPENN > | |
static RegistryType & | registry () |
Static function returning the registry. More... | |
Protected Attributes inherited from stir::InputStreamWithRecordsFromUPENN | |
std::string | filename |
std::streampos | starting_stream_position |
std::vector< std::streampos > | saved_get_positions |
const uint8_t * | current_record |
int | eventSize = 0 |
int | low_energy_window = 0 |
int | up_energy_window = 1000 |
int | timeout = 0 |
long unsigned int | N |
Total number of events. | |
long unsigned int | abrupt_counter |
Stop after a predefined number of records, regardless of their type. | |
bool | has_output = false |
This is a flag about a low lever function that replicates a listmode file preserving control records that are skipped in normal operations. | |
bool | abrupt_stop |
This is a lower counter to abruptly stop the listmode file. | |
int | minE_chan |
Minimum energy channel. | |
int | maxE_chan |
Maximum energy channel. | |
bool | keep_prompt |
In some processes it might be better to filter prompts and delayeds early. | |
bool | keep_delayed |
In some processes it might be better to filter prompts and delayeds early. | |
Protected Attributes inherited from stir::ParsingObject | |
KeyParser | parser |
Class for reading binary listmode files from the PENNPet Explorer scanner.
|
protectedvirtual |
This will be called at the end of the parsing.
Reimplemented from stir::InputStreamWithRecordsFromUPENN.