CMS 3D CMS Logo

Functions
jetcorrextractor Namespace Reference

Functions

double sign (double x)
 

Function Documentation

double jetcorrextractor::sign ( double  x)
inline

Definition at line 32 of file JetCorrExtractorT.h.

Referenced by JetCorrExtractorT< T >::operator()().

33  {
34  if ( x > 0. ) return +1.;
35  else if ( x < 0. ) return -1.;
36  else return 0.;
37  }
T x() const
Cartesian x coordinate.