#include <HcalInterpolatedTableFunctor.h>
Public Member Functions | |
HcalInterpolatedTableFunctor () | |
HcalInterpolatedTableFunctor (const std::vector< double > &values, double xmin, double xmax, bool leftExtrapolationLinear, bool rightExtrapolationLinear) | |
HcalPiecewiseLinearFunctor | inverse () const |
bool | isStrictlyMonotonous () const |
double | operator() (double x) const override |
double | xmax () const override |
double | xmin () const override |
~HcalInterpolatedTableFunctor () override | |
Public Member Functions inherited from AbsHcalFunctor | |
bool | operator!= (const AbsHcalFunctor &r) const |
bool | operator== (const AbsHcalFunctor &r) const |
virtual | ~AbsHcalFunctor () |
Protected Member Functions | |
bool | isEqual (const AbsHcalFunctor &other) const override |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, unsigned) |
Private Attributes | |
bool | leftExtrapolationLinear_ |
bool | rightExtrapolationLinear_ |
std::vector< double > | values_ |
double | xmax_ |
double | xmin_ |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Static Protected Member Functions inherited from AbsHcalFunctor | |
template<class Iter > | |
static bool | isStrictlyDecreasing (Iter begin, Iter const end) |
template<class Iter > | |
static bool | isStrictlyIncreasing (Iter begin, Iter const end) |
Definition at line 10 of file HcalInterpolatedTableFunctor.h.
HcalInterpolatedTableFunctor::HcalInterpolatedTableFunctor | ( | ) |
Definition at line 14 of file HcalInterpolatedTableFunctor.cc.
HcalInterpolatedTableFunctor::HcalInterpolatedTableFunctor | ( | const std::vector< double > & | values, |
double | xmin, | ||
double | xmax, | ||
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) |
Definition at line 20 of file HcalInterpolatedTableFunctor.cc.
References Exception, values_, xmax_, and xmin_.
|
inlineoverride |
HcalPiecewiseLinearFunctor HcalInterpolatedTableFunctor::inverse | ( | ) | const |
Definition at line 79 of file HcalInterpolatedTableFunctor.cc.
References Exception, mps_fire::i, isStrictlyMonotonous(), checklumidiff::l, leftExtrapolationLinear_, hiPixelPairStep_cff::points, alignCSCRings::r, rightExtrapolationLinear_, std::swap(), values_, x, xmax_, and xmin_.
Referenced by xmax().
|
inlineoverrideprotectedvirtual |
Implements AbsHcalFunctor.
Definition at line 46 of file HcalInterpolatedTableFunctor.h.
References leftExtrapolationLinear_, trackingPlots::other, alignCSCRings::r, rightExtrapolationLinear_, values_, xmax_, and xmin_.
bool HcalInterpolatedTableFunctor::isStrictlyMonotonous | ( | ) | const |
Definition at line 73 of file HcalInterpolatedTableFunctor.cc.
References AbsHcalFunctor::isStrictlyDecreasing(), AbsHcalFunctor::isStrictlyIncreasing(), and values_.
Referenced by inverse(), and xmax().
|
overridevirtual |
Implements AbsHcalFunctor.
Definition at line 39 of file HcalInterpolatedTableFunctor.cc.
References interpolateStep(), leftExtrapolationLinear_, mps_fire::result, rightExtrapolationLinear_, values_, xmax_, and xmin_.
Referenced by ~HcalInterpolatedTableFunctor().
|
inlineprivate |
Definition at line 66 of file HcalInterpolatedTableFunctor.h.
References rightExtrapolationLinear_.
|
inlineoverridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 36 of file HcalInterpolatedTableFunctor.h.
References inverse(), isStrictlyMonotonous(), and xmax_.
Referenced by svgfig.XAxis::__repr__().
|
inlineoverridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 35 of file HcalInterpolatedTableFunctor.h.
References xmin_.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), and svgfig.Axes::SVG().
|
friend |
Definition at line 63 of file HcalInterpolatedTableFunctor.h.
|
private |
Definition at line 60 of file HcalInterpolatedTableFunctor.h.
Referenced by inverse(), isEqual(), and operator()().
|
private |
Definition at line 61 of file HcalInterpolatedTableFunctor.h.
Referenced by inverse(), isEqual(), operator()(), and serialize().
|
private |
Definition at line 57 of file HcalInterpolatedTableFunctor.h.
Referenced by HcalInterpolatedTableFunctor(), inverse(), isEqual(), isStrictlyMonotonous(), and operator()().
|
private |
Definition at line 59 of file HcalInterpolatedTableFunctor.h.
Referenced by HcalInterpolatedTableFunctor(), inverse(), isEqual(), operator()(), and xmax().
|
private |
Definition at line 58 of file HcalInterpolatedTableFunctor.h.
Referenced by HcalInterpolatedTableFunctor(), inverse(), isEqual(), operator()(), and xmin().