STIR
6.2.0
home
sirfuser
devel
STIRdistrib
STIR
src
include
stir
TOF_conversions.h
Go to the documentation of this file.
1
//
2
//
3
/*
4
Copyright (C) 2017, University College London
5
This file is part of STIR.
6
7
SPDX-License-Identifier: Apache-2.0
8
See STIR/LICENSE.txt for details
9
*/
19
#include "
stir/common.h
"
20
START_NAMESPACE_STIR
21
22
inline
double
23
mm_to_tof_delta_time(
const
float
dist)
24
{
25
return
dist /
speed_of_light_in_mm_per_ps_div2
;
26
}
27
28
inline
float
29
tof_delta_time_to_mm(
const
double
delta_time)
30
{
31
return
static_cast<
float
>
(delta_time *
speed_of_light_in_mm_per_ps_div2
);
32
}
33
34
END_NAMESPACE_STIR
stir::speed_of_light_in_mm_per_ps_div2
constexpr double speed_of_light_in_mm_per_ps_div2
This ratio is used often.
Definition:
common.h:140
common.h
basic configuration include file
Generated on Tue Jul 23 2024 09:13:11 for STIR by
1.8.13