STIR
6.2.0
home
sirfuser
devel
STIRdistrib
STIR
src
include
stir
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
>
40
class
DetectionPositionPair
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
:
60
DetectionPosition<coordT>
p1;
61
DetectionPosition<coordT>
p2;
62
int
_timing_pos;
63
};
64
65
END_NAMESPACE_STIR
66
67
#include "
stir/DetectionPositionPair.inl
"
68
69
#endif //__DetectionPositionPairPair_H__
stir::DetectionPosition
A class for storing coordinates of a detection.
Definition:
DetectionPosition.h:58
DetectionPositionPair.inl
Implementation of inline methods of class stir::DetectionPositionPair.
DetectionPosition.h
Declaration of class stir::DetectionPosition.
stir::DetectionPositionPair
A class for storing 2 coordinates-sets of a detection, together with a timing-position index (for TOF...
Definition:
DetectionPositionPair.h:40
Generated on Tue Jul 23 2024 09:13:10 for STIR by
1.8.13