22 #ifndef __stir_data_SinglesRates_H__ 23 #define __stir_data_SinglesRates_H__ 35 class TimeFrameDefinitions;
49 typedef std::vector<float>::iterator iterator;
50 typedef std::vector<float>::const_iterator const_iterator;
55 FrameSinglesRates(std::vector<float>& avg_singles_rates,
double start_time,
double end_time, shared_ptr<Scanner> scanner);
60 FrameSinglesRates(
double start_time,
double end_time, shared_ptr<Scanner> scanner);
66 float get_singles_rate(
int singles_bin_index)
const;
74 const_iterator begin()
const {
return this->_singles.begin(); }
76 iterator begin() {
return this->_singles.begin(); }
78 const_iterator end()
const {
return this->_singles.end(); }
80 iterator end() {
return this->_singles.end(); }
83 double get_start_time()
const;
86 double get_end_time()
const;
89 inline const Scanner* get_scanner_ptr()
const;
94 std::vector<float> _singles;
97 shared_ptr<Scanner> _scanner_sptr;
123 virtual float get_singles_rate(
const int singles_bin_index,
const double start_time,
const double end_time)
const;
130 virtual float get_singles(
const int singles_bin_index,
const double start_time,
const double end_time)
const = 0;
139 virtual float get_singles_rate(
const DetectionPosition<>& det_pos,
const double start_time,
const double end_time)
const;
149 virtual float get_singles(
const DetectionPosition<>& det_pos,
const double start_time,
const double end_time)
const;
152 inline const Scanner* get_scanner_ptr()
const;
162 get_time_frame_definitions()
const = 0;
Class used for storing time frame durations.
Definition: TimeFrameDefinitions.h:38
shared_ptr< Scanner > scanner_sptr
Generate a FramesSinglesRate - containing the average rates.
Definition: SinglesRates.h:166
This file declares a deprecation macro.
A single frame of singles information.
Definition: SinglesRates.h:45
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
Implementation of class stir::SinglesRates.
A class for storing some info on the scanner.
Definition: Scanner.h:107
Declaration of class stir::Scanner.
Declaration of class stir::DetectionPosition.
Declaration of class stiir::RegisteredObject.
Helper class to provide registry mechanisms to a Base classSuppose you have a hierarchy of classes wi...
Definition: RegisteredObject.h:95
The base-class for using singles info.
Definition: SinglesRates.h:112