23#ifndef __stir_data_SinglesRatesForTimeSlices_H__
24#define __stir_data_SinglesRatesForTimeSlices_H__
45 float get_singles(
const int singles_bin_index,
const double start_time,
const double end_time)
const override;
70 virtual int get_end_time_slice_index(
double t)
const;
93 virtual int get_start_time_slice_index(
double t)
const;
103 void set_singles(
int singles_bin_index,
int time_slice,
int new_singles);
108 int rebin(std::vector<double>& new_end_times);
133 int _num_time_slices;
defines the stir::Array class for multi-dimensional (numeric) arrays
Declaration of class stir::SinglesRates.
Declaration of class stir::TimeFrameDefinitions.
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
A single frame of singles information.
Definition SinglesRates.h:46
int get_num_time_slices() const
Return the number of time slices.
Definition SinglesRatesForTimeSlices.cxx:250
double _singles_time_interval
time interval in secs
Definition SinglesRatesForTimeSlices.h:140
int rebin(std::vector< double > &new_end_times)
Rebin the sgl slices into a different set of consecutive slices.
Definition SinglesRatesForTimeSlices.cxx:192
std::vector< double > get_times() const
Get the vector of time values for each time slice index.
Definition SinglesRatesForTimeSlices.cxx:244
FrameSinglesRates STIR_DEPRECATED get_rates_for_frame(double start_time, double end_time) const
Generate a FramesSinglesRate - containing the average rates.
Definition SinglesRatesForTimeSlices.cxx:42
float get_singles(const int singles_bin_index, const double start_time, const double end_time) const override
Get the number of singles for a particular singles unit and a frame with the specified start and end ...
Definition SinglesRatesForTimeSlices.cxx:262
double get_singles_time_interval() const
Return the time interval per slice of singles data.
Definition SinglesRatesForTimeSlices.cxx:256
void set_time_interval()
Calculate and set _singles_time_interval from _times.
Definition SinglesRatesForTimeSlices.cxx:330
void set_singles(int singles_bin_index, int time_slice, int new_singles)
Set a singles by singles bin index and time slice.
Definition SinglesRatesForTimeSlices.cxx:180
TimeFrameDefinitions get_time_frame_definitions() const
return time-intervals for every slice
Definition SinglesRatesForTimeSlices.cxx:387
Array< 2, int > _singles
total singles per time slice and singles-bin
Definition SinglesRatesForTimeSlices.h:127
double get_slice_start_time(int slice_index) const
get slice start time.
Definition SinglesRatesForTimeSlices.cxx:368
std::vector< double > _times
end times of each time slice (in secs)
Definition SinglesRatesForTimeSlices.h:131
SinglesRatesForTimeSlices()
Default constructor.
Definition SinglesRatesForTimeSlices.cxx:36
The base-class for using singles info.
Definition SinglesRates.h:113
virtual float get_singles_rate(const int singles_bin_index, const double start_time, const double end_time) const
Get the (average) singles rate for a particular singles unit and a frame with the specified start and...
Definition SinglesRates.cxx:69
Class used for storing time frame durations.
Definition TimeFrameDefinitions.h:39
#define STIR_DEPRECATED
Deprecation macro.
Definition deprecated.h:21