CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

static double interpolateSimple (const double x0, const double x1, const double y0, const double y1, const double x)
 

Function Documentation

◆ interpolateSimple()

static double interpolateSimple ( const double  x0,
const double  x1,
const double  y0,
const double  y1,
const double  x 
)
inlinestatic

Definition at line 6 of file HcalPiecewiseLinearFunctor.cc.

7  {
8  return y0 + (y1 - y0) * ((x - x0) / (x1 - x0));
9 }

References genVertex_cff::x, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::y1.

Referenced by HcalPiecewiseLinearFunctor::operator()().

testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
testProducerWithPsetDescEmpty_cfi.y1
y1
Definition: testProducerWithPsetDescEmpty_cfi.py:29
genVertex_cff.x
x
Definition: genVertex_cff.py:12