CMS 3D CMS Logo

Functions
ConstantStepOdeSolver.cc File Reference
#include <cassert>
#include "CalibCalorimetry/HcalAlgos/interface/ConstantStepOdeSolver.h"

Go to the source code of this file.

Functions

static double interpolateLinear (const double x, const double f0, const double f1)
 

Function Documentation

static double interpolateLinear ( const double  x,
const double  f0,
const double  f1 
)
inlinestatic

Definition at line 5 of file ConstantStepOdeSolver.cc.

References x().

Referenced by ConstantStepOdeSolver::interpolateCoordinate(), and ConstantStepOdeSolver::interpolateIntegrated().

7 {
8  return f0*(1.0 - x) + f1*x;
9 }
T x() const
Cartesian x coordinate.