STIR 6.4.0
SinglesRatesFromECAT7.h
Go to the documentation of this file.
1//
2//
3/*
4 Copyright (C) 2000- 2007, Hammersmith Imanet Ltd
5 This file is part of STIR.
6
7 SPDX-License-Identifier: Apache-2.0
8
9 See STIR/LICENSE.txt for details
10*/
18
19#ifndef __stir_data_SinglesRatesFromECAT7_H__
20#define __stir_data_SinglesRatesFromECAT7_H__
21
24#include "stir/IO/stir_ecat7.h" // necessary for namespace macros
25START_NAMESPACE_STIR
26START_NAMESPACE_ECAT
27START_NAMESPACE_ECAT7
28
33class SinglesRatesFromECAT7 : public RegisteredParsingObject<SinglesRatesFromECAT7, SinglesRates, SinglesRatesForTimeFrames>
34{
35public:
37 static const char* const registered_name;
38
41
43
45 int read_singles_from_file(const std::string& ECAT7_filename, const std::ios::openmode open_mode = std::ios::in);
46
47private:
48 std::string ECAT7_filename;
49 virtual void set_defaults();
50 virtual void initialise_keymap();
51 virtual bool post_processing();
52};
53
54END_NAMESPACE_ECAT7
55END_NAMESPACE_ECAT
56END_NAMESPACE_STIR
57
58#endif
Declaration of class stir::RegisteredParsingObject.
Declaration of class stir::SinglesRatesForTimeFrames.
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files.
Definition RegisteredParsingObject.h:78
int read_singles_from_file(const std::string &ECAT7_filename, const std::ios::openmode open_mode=std::ios::in)
The function that reads singles from ECAT7 file.
Definition SinglesRatesFromECAT7.cxx:45
static const char *const registered_name
Name which will be used when parsing a SinglesRatesFromECAT7 object.
Definition SinglesRatesFromECAT7.h:37
SinglesRatesFromECAT7()
Default constructor.
Definition SinglesRatesFromECAT7.cxx:41
Declaration of routines which convert CTI things into our building blocks and vice versa.