#include <StorableInterpolationFunctor.h>
Public Types | |
typedef LinInterpolatedTableND< Numeric, Axis > | Table |
Public Member Functions | |
unsigned | minDim () const override |
double | operator() (const double *point, unsigned dim) const override |
void | setConverter (const Converter &conv) |
template<class Num2 , class Conv2 > | |
StorableInterpolationFunctor (const StorableInterpolationFunctor< Num2, Axis, Conv2 > &tab) | |
StorableInterpolationFunctor ()=delete | |
~StorableInterpolationFunctor () override | |
template<class Num2 > | |
StorableInterpolationFunctor (const LinInterpolatedTableND< Num2, Axis > &table) | |
template<class Num2 > | |
StorableInterpolationFunctor (const LinInterpolatedTableND< Num2, Axis > &table, const std::string &descr) | |
StorableInterpolationFunctor (const std::vector< Axis > &axes, const std::vector< std::pair< bool, bool > > &interpolationType, const char *functionLabel=nullptr) | |
StorableInterpolationFunctor (const Axis &xAxis, bool leftX, bool rightX, const char *functionLabel=nullptr) | |
StorableInterpolationFunctor (const Axis &xAxis, bool leftX, bool rightX, const Axis &yAxis, bool leftY, bool rightY, const char *functionLabel=nullptr) | |
StorableInterpolationFunctor (const Axis &xAxis, bool leftX, bool rightX, const Axis &yAxis, bool leftY, bool rightY, const Axis &zAxis, bool leftZ, bool rightZ, const char *functionLabel=nullptr) | |
StorableInterpolationFunctor (const Axis &xAxis, bool leftX, bool rightX, const Axis &yAxis, bool leftY, bool rightY, const Axis &zAxis, bool leftZ, bool rightZ, const Axis &tAxis, bool leftT, bool rightT, const char *functionLabel=nullptr) | |
StorableInterpolationFunctor (const Axis &xAxis, bool leftX, bool rightX, const Axis &yAxis, bool leftY, bool rightY, const Axis &zAxis, bool leftZ, bool rightZ, const Axis &tAxis, bool leftT, bool rightT, const Axis &vAxis, bool leftV, bool rightV, const char *functionLabel=nullptr) | |
Table & | interpolator () |
const Table & | interpolator () const |
ArrayND< Numeric > & | table () |
const ArrayND< Numeric > & | table () const |
gs::ClassId | classId () const override |
bool | write (std::ostream &of) const override |
Public Member Functions inherited from npstat::StorableMultivariateFunctor | |
const std::string & | description () const |
void | setDescription (const std::string &newDescription) |
StorableMultivariateFunctor () | |
StorableMultivariateFunctor (const std::string &descr) | |
void | validateDescription (const std::string &description) const |
~StorableMultivariateFunctor () override | |
bool | operator== (const StorableMultivariateFunctor &r) const |
bool | operator!= (const StorableMultivariateFunctor &r) const |
Public Member Functions inherited from npstat::AbsMultivariateFunctor | |
virtual unsigned | maxDim () const |
virtual | ~AbsMultivariateFunctor () |
Static Public Member Functions | |
static const char * | classname () |
static StorableInterpolationFunctor * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Static Public Member Functions inherited from npstat::StorableMultivariateFunctor | |
static const char * | classname () |
static StorableMultivariateFunctor * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Protected Member Functions | |
bool | isEqual (const StorableMultivariateFunctor &other) const override |
Private Attributes | |
Converter | conv_ |
Table | table_ |
Friends | |
template<typename Num2 , typename Axis2 , typename Conv2 > | |
class | StorableInterpolationFunctor |
This class adapts LinInterpolatedTableND template to the StorableMultivariateFunctor interface
Definition at line 25 of file StorableInterpolationFunctor.h.
typedef LinInterpolatedTableND<Numeric, Axis> npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::Table |
Definition at line 30 of file StorableInterpolationFunctor.h.
|
inline |
Constructor from a pre-existing table
Definition at line 35 of file StorableInterpolationFunctor.h.
|
inline |
Definition at line 39 of file StorableInterpolationFunctor.h.
|
inline |
Converting copy constructor
Definition at line 45 of file StorableInterpolationFunctor.h.
|
inline |
Constructor which builds the table in place. It basically passses its arguments to the corresponding constructor of LinInterpolatedTableND.
Definition at line 54 of file StorableInterpolationFunctor.h.
|
inline |
Definition at line 59 of file StorableInterpolationFunctor.h.
|
inline |
Definition at line 62 of file StorableInterpolationFunctor.h.
|
inline |
Definition at line 71 of file StorableInterpolationFunctor.h.
|
inline |
Definition at line 84 of file StorableInterpolationFunctor.h.
|
inline |
Definition at line 101 of file StorableInterpolationFunctor.h.
|
delete |
Default constructor not implemented
|
inlineoverride |
Definition at line 139 of file StorableInterpolationFunctor.h.
|
inlineoverridevirtual |
Method related to "geners" I/O
Implements npstat::StorableMultivariateFunctor.
Definition at line 162 of file StorableInterpolationFunctor.h.
|
inlinestatic |
Definition at line 191 of file StorableInterpolationFunctor.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Retrieve the underlying LinInterpolatedTableND object
Definition at line 147 of file StorableInterpolationFunctor.h.
References npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
inline |
Definition at line 148 of file StorableInterpolationFunctor.h.
References npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
inlineoverrideprotectedvirtual |
Method needed to compare objects for equality. Must be overriden by derived classes. It is left up to the derived classes to decide whether they should compare description strings in order to establish equality.
Implements npstat::StorableMultivariateFunctor.
Definition at line 172 of file StorableInterpolationFunctor.h.
References npstat::StorableMultivariateFunctor::description(), trackingPlots::other, alignCSCRings::r, and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
inlineoverridevirtual |
Minimum expected dimensionality
Implements npstat::AbsMultivariateFunctor.
Definition at line 141 of file StorableInterpolationFunctor.h.
References npstat::LinInterpolatedTableND< Numeric, Axis >::dim(), and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
inlineoverridevirtual |
Function value
Implements npstat::AbsMultivariateFunctor.
Definition at line 143 of file StorableInterpolationFunctor.h.
References npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::conv_, point, and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
static |
Definition at line 203 of file StorableInterpolationFunctor.h.
References recoMuon::in, fileinputsource_cfi::read, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get().
|
inline |
Change the coordinate converter
Definition at line 158 of file StorableInterpolationFunctor.h.
References conv, and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::conv_.
|
inline |
Retrieve the tabulated data
Definition at line 153 of file StorableInterpolationFunctor.h.
References npstat::LinInterpolatedTableND< Numeric, Axis >::table(), and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
inline |
Definition at line 154 of file StorableInterpolationFunctor.h.
References npstat::LinInterpolatedTableND< Numeric, Axis >::table(), and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table_.
|
inlinestatic |
Definition at line 168 of file StorableInterpolationFunctor.h.
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
|
overridevirtual |
Implements npstat::StorableMultivariateFunctor.
Definition at line 197 of file StorableInterpolationFunctor.h.
References edmLumisInFiles::description, haddnano::of, and table_.
|
friend |
Definition at line 27 of file StorableInterpolationFunctor.h.
|
private |
Definition at line 181 of file StorableInterpolationFunctor.h.
Referenced by npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::operator()(), and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::setConverter().
|
private |
Definition at line 180 of file StorableInterpolationFunctor.h.
Referenced by npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::interpolator(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::isEqual(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::minDim(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::operator()(), and npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >::table().