STIR 6.4.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*/
18
19#include "stir/common.h"
20START_NAMESPACE_STIR
21
22inline double
23mm_to_tof_delta_time(const float dist)
24{
26}
27
28inline float
29tof_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
34END_NAMESPACE_STIR
basic configuration include file
constexpr double speed_of_light_in_mm_per_ps_div2
This ratio is used often.
Definition common.h:148