STIR  6.2.0
SinglesRatesFromGEHDF5.h
Go to the documentation of this file.
1 //
2 /*
3  Copyright (C) 2017-2019, University of Leeds
4  This file is part of STIR.
5 
6  SPDX-License-Identifier: Apache-2.0
7 
8  See STIR/LICENSE.txt for details
9 */
21 #ifndef __stir_data_SinglesRatesFromGEHDF5_H__
22 #define __stir_data_SinglesRatesFromGEHDF5_H__
23 
26 
27 START_NAMESPACE_STIR
28 namespace GE
29 {
30 namespace RDF_HDF5
31 {
32 
33 class GEHDF5Wrapper;
34 
45 class SinglesRatesFromGEHDF5 : public RegisteredParsingObject<SinglesRatesFromGEHDF5, SinglesRates, SinglesRatesForTimeSlices>
46 
47 {
48 public:
50  static const char* const registered_name;
51 
54 
56  explicit SinglesRatesFromGEHDF5(const std::string& rdf_filename) { read_from_file(rdf_filename); }
57 
58  void read_from_file(const std::string& rdf_filename);
59 
60 private:
61  shared_ptr<GEHDF5Wrapper> m_input_sptr;
62 
63  std::string _rdf_filename;
64 
65  void set_defaults() override;
66  void initialise_keymap() override;
67  bool post_processing() override;
68 };
69 
70 } // namespace RDF_HDF5
71 } // namespace GE
72 END_NAMESPACE_STIR
73 
74 #endif
A class for reading singles over the number of time samples from an GE HDF5 .BLF listmode file format...
Definition: SinglesRatesFromGEHDF5.h:45
unique_ptr< DataT > read_from_file(const FileSignature &signature, FileT file)
Function that reads data from file using the default InputFileFormatRegistry, using the provided File...
Definition: read_from_file.h:46
Declaration of class stir::SinglesRatesForTimeSlices.
static const char *const registered_name
Name which will be used when parsing a SinglesRatesFromGEHDF5 object.
Definition: SinglesRatesFromGEHDF5.h:50
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
SinglesRatesFromGEHDF5(const std::string &rdf_filename)
construct from filename
Definition: SinglesRatesFromGEHDF5.h:56
Declaration of class stir::RegisteredParsingObject.