STIR  6.2.0
Namespaces | Macros | Functions | Variables
common.h File Reference

basic configuration include file More...

#include "stir/config.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cassert>
#include <boost/math/constants/constants.hpp>

Go to the source code of this file.

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Macros

#define START_NAMESPACE_STIR
 
#define END_NAMESPACE_STIR   }
 
#define USING_NAMESPACE_STIR   using namespace stir;
 
#define __OS_UNIX__
 
#define _PI   boost::math::constants::pi<double>()
 The constant pi to high precision. More...
 

Functions

template<class NUMBER >
NUMBER stir::square (const NUMBER &x)
 returns the square of a number, templated. More...
 

Variables

constexpr double stir::speed_of_light_in_mm_per_ps = 0.299792458
 Define the speed of light in mm / ps.
 
constexpr double stir::speed_of_light_in_mm_per_ps_div2 = speed_of_light_in_mm_per_ps * 0.5
 This ratio is used often.
 

Detailed Description

basic configuration include file

Author
Kris Thielemans
Alexey Zverovich
Darren Hague
PARAPET project

This include file defines some commonly used macros, templates and functions in an attempt to smooth out some system dependencies. It also defines some functions which are used very often.

Macros and system dependencies:

stir namespace members declared here

stir include files included here

Macro Definition Documentation

◆ START_NAMESPACE_STIR

#define START_NAMESPACE_STIR
Value:
namespace stir \
{
Namespace for the STIR library (and some/most of its applications)
Definition: General_Reconstruction.cxx:6