ATLAS Offline Software
Macros | Functions
GeoRegion.cxx File Reference
#include "ISF_FastCaloGpu/GeoRegion.h"
#include <iostream>
Include dependency graph for GeoRegion.cxx:

Go to the source code of this file.

Macros

#define M_PI   3.14159265358979323846
 
#define M_2PI   6.28318530717958647692
 

Functions

__HOSTDEV__ double Phi_mpi_pi (double x)
 

Macro Definition Documentation

◆ M_2PI

#define M_2PI   6.28318530717958647692

Definition at line 6 of file GeoRegion.cxx.

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 5 of file GeoRegion.cxx.

Function Documentation

◆ Phi_mpi_pi()

__HOSTDEV__ double Phi_mpi_pi ( double  x)

Definition at line 7 of file GeoRegion.cxx.

7  {
8  while ( x >= M_PI ) x -= M_2PI;
9  while ( x < -M_PI ) x += M_2PI;
10  return x;
11 }
x
#define x
M_PI
#define M_PI
Definition: GeoRegion.cxx:4
M_2PI
#define M_2PI
Definition: GeoRegion.cxx:5