#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 11 of file HcalInterpolatedTableFunctor.cc.
HcalInterpolatedTableFunctor::HcalInterpolatedTableFunctor | ( | const std::vector< double > & | values, |
double | xmin, | ||
double | xmax, | ||
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) |
Definition at line 14 of file HcalInterpolatedTableFunctor.cc.
|
inlineoverride |
Definition at line 32 of file HcalInterpolatedTableFunctor.h.
HcalPiecewiseLinearFunctor HcalInterpolatedTableFunctor::inverse | ( | ) | const |
Definition at line 64 of file HcalInterpolatedTableFunctor.cc.
References Exception, mps_fire::i, isStrictlyMonotonous(), cmsLHEtoEOSManager::l, leftExtrapolationLinear_, HLT_FULL_cff::points, alignCSCRings::r, rightExtrapolationLinear_, std::swap(), values_, x, xmax_, and xmin_.
|
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 60 of file HcalInterpolatedTableFunctor.cc.
References AbsHcalFunctor::isStrictlyDecreasing(), AbsHcalFunctor::isStrictlyIncreasing(), and values_.
Referenced by inverse().
|
overridevirtual |
Implements AbsHcalFunctor.
Definition at line 34 of file HcalInterpolatedTableFunctor.cc.
References interpolateStep(), leftExtrapolationLinear_, mps_fire::result, rightExtrapolationLinear_, values_, x, xmax_, and xmin_.
|
inlineprivate |
Definition at line 63 of file HcalInterpolatedTableFunctor.h.
References leftExtrapolationLinear_, rightExtrapolationLinear_, values_, xmax_, and xmin_.
|
inlineoverridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 36 of file HcalInterpolatedTableFunctor.h.
References 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 60 of file HcalInterpolatedTableFunctor.h.
|
private |
Definition at line 57 of file HcalInterpolatedTableFunctor.h.
Referenced by inverse(), isEqual(), operator()(), and serialize().
|
private |
Definition at line 58 of file HcalInterpolatedTableFunctor.h.
Referenced by inverse(), isEqual(), operator()(), and serialize().
|
private |
Definition at line 54 of file HcalInterpolatedTableFunctor.h.
Referenced by HcalInterpolatedTableFunctor(), inverse(), isEqual(), isStrictlyMonotonous(), operator()(), and serialize().
|
private |
Definition at line 56 of file HcalInterpolatedTableFunctor.h.
Referenced by HcalInterpolatedTableFunctor(), inverse(), isEqual(), operator()(), serialize(), and xmax().
|
private |
Definition at line 55 of file HcalInterpolatedTableFunctor.h.
Referenced by HcalInterpolatedTableFunctor(), inverse(), isEqual(), operator()(), serialize(), and xmin().