STIR
6.4.0
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
*/
18
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
common.h
basic configuration include file
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:148
Generated on Wed May 27 2026 17:04:05 for STIR by
1.13.2