STIR  6.2.0
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 {
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
constexpr double speed_of_light_in_mm_per_ps_div2
This ratio is used often.
Definition: common.h:140
basic configuration include file