12 #ifndef __stir_common_H__ 13 #define __stir_common_H__ 68 #include "stir/config.h" 75 #include <boost/math/constants/constants.hpp> 78 #define START_NAMESPACE_STIR \ 81 #define END_NAMESPACE_STIR } 82 #define USING_NAMESPACE_STIR using namespace stir; 86 #if !defined(__OS_WIN__) && !defined(__OS_MAC__) && !defined(__OS_VAX__) && !defined(__OS_UNIX__) 92 # if macintosh && !defined(__dest_os) 93 # define __dest_os __mac_os 95 # if __dest_os == __mac_os 101 # elif defined(_WIN32) || defined(WIN32) || defined(_WINDOWS) || defined(_DOS) 115 # elif defined(__sun) 118 # elif defined(__linux__) 119 # define __OS_LINUX__ 120 # elif defined(__osf__) 124 # endif // __OS_UNIX_ case 126 #endif // !defined(__OS_xxx_) 134 # define _PI boost::math::constants::pi<double>() 144 template <
class NUMBER>
constexpr double speed_of_light_in_mm_per_ps
Define the speed of light in mm / ps.
Definition: common.h:138
constexpr double speed_of_light_in_mm_per_ps_div2
This ratio is used often.
Definition: common.h:140
NUMBER square(const NUMBER &x)
returns the square of a number, templated.
Definition: common.h:146