STIR
6.2.0
|
A single frame of singles information. More...
#include "stir/data/SinglesRates.h"
Public Types | |
typedef std::vector< float >::iterator | iterator |
typedef std::vector< float >::const_iterator | const_iterator |
Public Member Functions | |
FrameSinglesRates (std::vector< float > &avg_singles_rates, double start_time, double end_time, shared_ptr< Scanner > scanner) | |
Constructor taking all arguments. More... | |
FrameSinglesRates (double start_time, double end_time, shared_ptr< Scanner > scanner) | |
Constructor without singles rates. More... | |
float | get_singles_rate (int singles_bin_index) const |
Get singles rate for a particular singles bin index. | |
float | get_singles_rate (const DetectionPosition<> &det_pos) const |
Get singles rate for a detection position. | |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
double | get_start_time () const |
Get the start time of the frame whose rates are recorded. | |
double | get_end_time () const |
Get the end time of the frame whose rates are recorded. | |
const Scanner * | get_scanner_ptr () const |
Get the scanner information. | |
A single frame of singles information.
stir::FrameSinglesRates::FrameSinglesRates | ( | std::vector< float > & | avg_singles_rates, |
double | start_time, | ||
double | end_time, | ||
shared_ptr< Scanner > | scanner | ||
) |
Constructor taking all arguments.
assert
. stir::FrameSinglesRates::FrameSinglesRates | ( | double | start_time, |
double | end_time, | ||
shared_ptr< Scanner > | scanner | ||
) |
Constructor without singles rates.
Initialises the size of the internal object that stores the singles rates but does not initialise its values.