#include <HcalPiecewiseLinearFunctor.h>
Public Member Functions | |
HcalPiecewiseLinearFunctor () | |
HcalPiecewiseLinearFunctor (const std::vector< std::pair< double, double > > &points, bool leftExtrapolationLinear, bool rightExtrapolationLinear) | |
HcalPiecewiseLinearFunctor | inverse () const |
bool | isStrictlyMonotonous () const |
double | operator() (double x) const override |
double | xmax () const override |
double | xmin () const override |
~HcalPiecewiseLinearFunctor () 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 | |
std::vector< double > | abscissae_ |
bool | leftExtrapolationLinear_ |
bool | rightExtrapolationLinear_ |
std::vector< double > | values_ |
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 17 of file HcalPiecewiseLinearFunctor.h.
HcalPiecewiseLinearFunctor::HcalPiecewiseLinearFunctor | ( | ) |
Definition at line 14 of file HcalPiecewiseLinearFunctor.cc.
Referenced by inverse().
HcalPiecewiseLinearFunctor::HcalPiecewiseLinearFunctor | ( | const std::vector< std::pair< double, double > > & | points, |
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) |
Definition at line 19 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, Exception, plotBeamSpotDB::first, mps_fire::i, AbsHcalFunctor::isStrictlyIncreasing(), hiPixelPairStep_cff::points, edm::second(), tmp, and values_.
|
inlineoverride |
Definition at line 41 of file HcalPiecewiseLinearFunctor.h.
References inverse(), isStrictlyMonotonous(), operator()(), x, xmax(), and xmin().
HcalPiecewiseLinearFunctor HcalPiecewiseLinearFunctor::inverse | ( | ) | const |
Definition at line 89 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, Exception, HcalPiecewiseLinearFunctor(), mps_fire::i, isStrictlyMonotonous(), checklumidiff::l, leftExtrapolationLinear_, hiPixelPairStep_cff::points, alignCSCRings::r, rightExtrapolationLinear_, std::swap(), and values_.
Referenced by ~HcalPiecewiseLinearFunctor().
|
inlineoverrideprotectedvirtual |
Implements AbsHcalFunctor.
Definition at line 55 of file HcalPiecewiseLinearFunctor.h.
References abscissae_, leftExtrapolationLinear_, trackingPlots::other, alignCSCRings::r, rightExtrapolationLinear_, and values_.
bool HcalPiecewiseLinearFunctor::isStrictlyMonotonous | ( | ) | const |
Definition at line 83 of file HcalPiecewiseLinearFunctor.cc.
References AbsHcalFunctor::isStrictlyDecreasing(), AbsHcalFunctor::isStrictlyIncreasing(), and values_.
Referenced by inverse(), and ~HcalPiecewiseLinearFunctor().
|
overridevirtual |
Implements AbsHcalFunctor.
Definition at line 44 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, interpolateSimple(), leftExtrapolationLinear_, mps_fire::result, rightExtrapolationLinear_, values_, and x.
Referenced by ~HcalPiecewiseLinearFunctor().
|
inlineprivate |
Definition at line 74 of file HcalPiecewiseLinearFunctor.h.
References rightExtrapolationLinear_.
|
overridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 114 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, and mps_fire::result.
Referenced by svgfig.XAxis::__repr__(), and ~HcalPiecewiseLinearFunctor().
|
overridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 106 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, and mps_fire::result.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), svgfig.Axes::SVG(), and ~HcalPiecewiseLinearFunctor().
|
friend |
Definition at line 71 of file HcalPiecewiseLinearFunctor.h.
|
private |
Definition at line 66 of file HcalPiecewiseLinearFunctor.h.
Referenced by HcalPiecewiseLinearFunctor(), inverse(), isEqual(), operator()(), xmax(), and xmin().
|
private |
Definition at line 68 of file HcalPiecewiseLinearFunctor.h.
Referenced by inverse(), isEqual(), and operator()().
|
private |
Definition at line 69 of file HcalPiecewiseLinearFunctor.h.
Referenced by inverse(), isEqual(), operator()(), and serialize().
|
private |
Definition at line 67 of file HcalPiecewiseLinearFunctor.h.
Referenced by HcalPiecewiseLinearFunctor(), inverse(), isEqual(), isStrictlyMonotonous(), and operator()().