CMS 3D CMS Logo

Functions
HcalInterpolatedTableFunctor.cc File Reference
#include <algorithm>
#include "FWCore/Utilities/interface/Exception.h"
#include "CondFormats/HcalObjects/interface/HcalInterpolatedTableFunctor.h"

Go to the source code of this file.

Functions

static double interpolateStep (const double x0, const double step, const double y0, const double y1, const double x)
 

Function Documentation

◆ interpolateStep()

static double interpolateStep ( const double  x0,
const double  step,
const double  y0,
const double  y1,
const double  x 
)
inlinestatic

Definition at line 6 of file HcalInterpolatedTableFunctor.cc.

References x, and testProducerWithPsetDescEmpty_cfi::y1.

Referenced by HcalInterpolatedTableFunctor::operator()().

7  {
8  return y0 + (y1 - y0) * ((x - x0) / step);
9 }
float x
step
Definition: StallMonitor.cc:98