STIR 6.4.0
stir::DetectionPositionPair< coordT > Class Template Reference

A class for storing 2 coordinates-sets of a detection, together with a timing-position index (for TOF), as suitable for PET. More...

#include "stir/DetectionPositionPair.h"

Public Member Functions

 DetectionPositionPair ()
 default constructor
 
 DetectionPositionPair (const DetectionPosition< coordT > &, const DetectionPosition< coordT > &, const int timing_pos=0)
 
const DetectionPosition< coordT > & pos1 () const
 
const DetectionPosition< coordT > & pos2 () const
 
int timing_pos () const
 
DetectionPosition< coordT > & pos1 ()
 
DetectionPosition< coordT > & pos2 ()
 
int & timing_pos ()
 
bool operator== (const DetectionPositionPair &) const
 comparison operators
 
bool operator!= (const DetectionPositionPair &) const
 

Detailed Description

template<typename coordT = unsigned int>
class stir::DetectionPositionPair< coordT >

A class for storing 2 coordinates-sets of a detection, together with a timing-position index (for TOF), as suitable for PET.

Note: all parameters are w.r.t. to the original scanner object. In particular, the timing_pos is an index in "unmashed" TOF bins (normally determined by the ADC of the scanner), which could have much higher resolution than what is used in the projection data from the scanner.

See also
DetectionPosition for details on what we mean with a Detector Position

Constructor & Destructor Documentation

◆ DetectionPositionPair()

template<typename coordT>
stir::DetectionPositionPair< coordT >::DetectionPositionPair ( )
inline

default constructor

sets TOF bin to 0, but leaves others coordinates undefined

References DetectionPositionPair().

Referenced by DetectionPositionPair(), and operator==().


The documentation for this class was generated from the following files: