src
Geometry
CSCGeometry
interface
nint.h
Go to the documentation of this file.
1
#ifndef GEOMETRY_CSCGeometry_NINT_H_
2
#define GEOMETRY_CSCGeometry_NINT_H_
3
4
// From CommonDet/Utilities
5
7
8
inline
int
nint
(
float
a
) {
return
a
>= 0 ?
int
(
a
+ 0.5) :
int
(
a
- 0.5); }
9
inline
int
nint
(
double
a
) {
return
a
>= 0 ?
int
(
a
+ 0.5) :
int
(
a
- 0.5); }
10
11
#endif
createfilelist.int
int
Definition:
createfilelist.py:10
nint
int nint(float a)
Return the nearest integer - analogous to the FORTRAN intrinsic NINT.
Definition:
nint.h:8
a
double a
Definition:
hdecay.h:121
Generated for CMSSW Reference Manual by
1.8.14