CMS 3D CMS Logo

Functions
jetcorrextractor Namespace Reference

Functions

double sign (double x)
 

Function Documentation

◆ sign()

double jetcorrextractor::sign ( double  x)
inline

Definition at line 31 of file JetCorrExtractorT.h.

References x.

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

31  {
32  if (x > 0.)
33  return +1.;
34  else if (x < 0.)
35  return -1.;
36  else
37  return 0.;
38  }
float x