CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Geometry/CSCGeometry/interface/nint.h File Reference

Go to the source code of this file.

Functions

int nint (float a)
 Return the nearest integer - analogous to the FORTRAN intrinsic NINT.
int nint (double a)

Function Documentation

int nint ( float  a) [inline]

Return the nearest integer - analogous to the FORTRAN intrinsic NINT.

Definition at line 8 of file nint.h.

Referenced by MuonTrackValidator::beginRun(), CSCSlantedWireGeometry::nearestWire(), CSCNonslantedWireGeometry::nearestWire(), and edm::PileUp::readPileUp().

{ return a>=0 ? int( a+0.5) : int( a-0.5);}
int nint ( double  a) [inline]

Definition at line 9 of file nint.h.

{ return a>=0 ? int( a+0.5) : int( a-0.5);}