18#ifndef __stir_data_SinglesRatesFromJSON_H__
19#define __stir_data_SinglesRatesFromJSON_H__
59 SinglesRatesFromJSON() { set_defaults(); }
68 float get_singles_rate(
const DetectionPosition<>& det_pos,
const double start_time,
const double end_time)
const override;
72 void set_defaults()
override;
73 void initialise_keymap()
override;
74 bool post_processing()
override;
76 std::string _filename;
77 int _num_axial_buckets = 0;
78 int _num_transaxial_buckets = 0;
80 int _num_detectors_per_ring = 0;
Declaration of class stir::RegisteredParsingObject.
Declaration of class stir::SinglesRatesForTimeFrames.
A class for storing coordinates of a detection.
Definition DetectionPosition.h:61
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files.
Definition RegisteredParsingObject.h:78
static constexpr const char *const registered_name
Name which will be used when parsing a SinglesRatesFromJSON object.
Definition SinglesRatesFromJSON.h:57
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