STIR  6.2.0
DetectionPositionPair.h
Go to the documentation of this file.
1 //
2 //
3 
11 /*
12  Copyright (C) 2002- 2009, Hammersmith Imanet Ltd
13  Copyright 2017, University College London
14  This file is part of STIR.
15 
16  SPDX-License-Identifier: Apache-2.0
17 
18  See STIR/LICENSE.txt for details
19 */
20 #ifndef __stir_DetectionPositionPair_H__
21 #define __stir_DetectionPositionPair_H__
22 
23 #include "stir/DetectionPosition.h"
24 
25 START_NAMESPACE_STIR
39 template <typename coordT = unsigned int>
41 {
42 public:
44 
45  inline DetectionPositionPair();
46 
47  inline DetectionPositionPair(const DetectionPosition<coordT>&, const DetectionPosition<coordT>&, const int timing_pos = 0);
48 
49  inline const DetectionPosition<coordT>& pos1() const;
50  inline const DetectionPosition<coordT>& pos2() const;
51  inline int timing_pos() const;
52  inline DetectionPosition<coordT>& pos1();
53  inline DetectionPosition<coordT>& pos2();
54  inline int& timing_pos();
56  inline bool operator==(const DetectionPositionPair&) const;
57  inline bool operator!=(const DetectionPositionPair&) const;
58 
59 private:
62  int _timing_pos;
63 };
64 
65 END_NAMESPACE_STIR
66 
68 
69 #endif //__DetectionPositionPairPair_H__
A class for storing coordinates of a detection.
Definition: DetectionPosition.h:58
Implementation of inline methods of class stir::DetectionPositionPair.
Declaration of class stir::DetectionPosition.
A class for storing 2 coordinates-sets of a detection, together with a timing-position index (for TOF...
Definition: DetectionPositionPair.h:40