Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
DDCMS
interface
DDUnits.h
Go to the documentation of this file.
1
#ifndef DETECTOR_DESCRIPTION_DD_UNITS_H
2
#define DETECTOR_DESCRIPTION_DD_UNITS_H
3
4
#include <cmath>
5
6
#define ConvertTo(_x, _y) (_x)/(1.0_##_y)
7
8
constexpr
long
double
_pi
(
M_PI
);
9
10
constexpr
long
double
operator
""
_deg(
long
double
deg )
11
{
12
return
deg*
_pi
/180;
13
}
14
15
constexpr
long
double
operator
""
_deg(
unsigned
long
long
int
deg )
16
{
17
return
deg*
_pi
/180;
18
}
19
20
constexpr
long
double
operator
""
_mm(
long
double
length )
21
{
22
return
length*1.;
23
}
24
25
constexpr
long
double
operator
""
_pi
(
long
double
x
)
26
{
return
x *
_pi
; }
27
28
constexpr
long
double
operator
""
_pi
(
unsigned
long
long
int
x
)
29
{
return
x *
_pi
; }
30
31
#endif
_pi
constexpr long double _pi(M_PI)
constexpr
#define constexpr
vertices_cff.x
x
Definition:
vertices_cff.py:29
M_PI
#define M_PI
Definition:
BXVectorInputProducer.cc:51
Generated for CMSSW Reference Manual by
1.8.11