#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 11 of file HcalPiecewiseLinearFunctor.cc.
Referenced by inverse().
HcalPiecewiseLinearFunctor::HcalPiecewiseLinearFunctor | ( | const std::vector< std::pair< double, double > > & | points, |
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) |
Definition at line 14 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, Exception, dqmdumpme::first, mps_fire::i, AbsHcalFunctor::isStrictlyIncreasing(), edm::second(), jetUpdater_cfi::sort, createJobs::tmp, and values_.
|
inlineoverride |
Definition at line 40 of file HcalPiecewiseLinearFunctor.h.
HcalPiecewiseLinearFunctor HcalPiecewiseLinearFunctor::inverse | ( | ) | const |
Definition at line 65 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, Exception, HcalPiecewiseLinearFunctor(), mps_fire::i, isStrictlyMonotonous(), MainPageGenerator::l, leftExtrapolationLinear_, alignCSCRings::r, rightExtrapolationLinear_, edm::swap(), and values_.
|
inlineoverrideprotectedvirtual |
Implements AbsHcalFunctor.
Definition at line 54 of file HcalPiecewiseLinearFunctor.h.
References abscissae_, leftExtrapolationLinear_, trackingPlots::other, alignCSCRings::r, rightExtrapolationLinear_, and values_.
bool HcalPiecewiseLinearFunctor::isStrictlyMonotonous | ( | ) | const |
Definition at line 61 of file HcalPiecewiseLinearFunctor.cc.
References AbsHcalFunctor::isStrictlyDecreasing(), AbsHcalFunctor::isStrictlyIncreasing(), and values_.
Referenced by inverse().
|
overridevirtual |
Implements AbsHcalFunctor.
Definition at line 35 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, interpolateSimple(), leftExtrapolationLinear_, mps_fire::result, rightExtrapolationLinear_, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, values_, and x.
|
inlineprivate |
Definition at line 70 of file HcalPiecewiseLinearFunctor.h.
References abscissae_, leftExtrapolationLinear_, rightExtrapolationLinear_, and values_.
|
overridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 89 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, and mps_fire::result.
Referenced by svgfig.XAxis::__repr__().
|
overridevirtual |
Reimplemented from AbsHcalFunctor.
Definition at line 82 of file HcalPiecewiseLinearFunctor.cc.
References abscissae_, and mps_fire::result.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), and svgfig.Axes::SVG().
|
friend |
Definition at line 67 of file HcalPiecewiseLinearFunctor.h.
|
private |
Definition at line 62 of file HcalPiecewiseLinearFunctor.h.
Referenced by HcalPiecewiseLinearFunctor(), inverse(), isEqual(), operator()(), serialize(), xmax(), and xmin().
|
private |
Definition at line 64 of file HcalPiecewiseLinearFunctor.h.
Referenced by inverse(), isEqual(), operator()(), and serialize().
|
private |
Definition at line 65 of file HcalPiecewiseLinearFunctor.h.
Referenced by inverse(), isEqual(), operator()(), and serialize().
|
private |
Definition at line 63 of file HcalPiecewiseLinearFunctor.h.
Referenced by HcalPiecewiseLinearFunctor(), inverse(), isEqual(), isStrictlyMonotonous(), operator()(), and serialize().