#include <StorableHistoNDFunctor.h>
Public Types | |
typedef HistoND< Numeric, Axis > | Table |
Public Member Functions | |
unsigned | interpolationDegree () const |
unsigned | minDim () const override |
double | operator() (const double *point, unsigned dim) const override |
void | setConverter (const Converter &conv) |
void | setInterpolationDegree (const unsigned deg) |
template<class Num2 , class Conv2 > | |
StorableHistoNDFunctor (const StorableHistoNDFunctor< Num2, Axis, Conv2 > &tab) | |
~StorableHistoNDFunctor () override | |
template<class Num2 > | |
StorableHistoNDFunctor (const HistoND< Num2, Axis > &table, const unsigned degree=1) | |
template<class Num2 > | |
StorableHistoNDFunctor (const HistoND< Num2, Axis > &table, const unsigned degree, const std::string &descr) | |
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 StorableHistoNDFunctor * | 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 Member Functions | |
StorableHistoNDFunctor ()=delete | |
Static Private Member Functions | |
static void | validateInterDegree (unsigned deg, bool isUniform) |
Private Attributes | |
Converter | conv_ |
unsigned | deg_ |
Table | table_ |
Friends | |
template<typename Num2 , typename Axis2 , typename Conv2 > | |
class | StorableHistoNDFunctor |
This class adapts HistoND template together with various histogram interpolation functions to the StorableMultivariateFunctor interface
Definition at line 26 of file StorableHistoNDFunctor.h.
typedef HistoND<Numeric, Axis> npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::Table |
Definition at line 31 of file StorableHistoNDFunctor.h.
|
inline |
Constructor from a pre-existing histogram. The "degree" argument specifies the interpolation degree which can be 0, 1, or 3.
Definition at line 40 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::isUniformlyBinned(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::validateInterDegree().
|
inline |
Definition at line 46 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::isUniformlyBinned(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::validateInterDegree().
|
inline |
Converting copy constructor
Definition at line 54 of file StorableHistoNDFunctor.h.
|
inlineoverride |
Definition at line 59 of file StorableHistoNDFunctor.h.
|
privatedelete |
|
inlineoverridevirtual |
Method related to "geners" I/O
Implements npstat::StorableMultivariateFunctor.
Definition at line 89 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::classname(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::write().
|
inlinestatic |
Definition at line 132 of file StorableHistoNDFunctor.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::classId().
|
inline |
Retrieve interpolation degree
Definition at line 66 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::deg_, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::setInterpolationDegree().
|
inline |
Retrieve the underlying HistoND object
Definition at line 73 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_.
|
inline |
Definition at line 74 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< 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 99 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::deg_, npstat::StorableMultivariateFunctor::description(), trackingPlots::other, alignCSCRings::r, npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::StorableHistoNDFunctor(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_.
|
inlineoverridevirtual |
Minimum expected dimensionality
Implements npstat::AbsMultivariateFunctor.
Definition at line 61 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::dim(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::operator()(), point, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_.
|
overridevirtual |
Function value
Implements npstat::AbsMultivariateFunctor.
Definition at line 127 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::conv_, npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::deg_, npstat::interpolateHistoND(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::minDim().
|
static |
Definition at line 145 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::read(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::StorableHistoNDFunctor(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::version().
|
inline |
Change the coordinate converter
Definition at line 85 of file StorableHistoNDFunctor.h.
References conv, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::conv_.
|
inline |
Set interpolation degree (0, 1, or 3)
Definition at line 164 of file StorableHistoNDFunctor.h.
References npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::deg_, npstat::HistoND< Numeric, Axis >::isUniformlyBinned(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::validateInterDegree().
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::interpolationDegree().
|
inline |
Retrieve the tabulated data
Definition at line 79 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::binContents(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_.
|
inline |
Definition at line 81 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::binContents(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_.
|
inlinestaticprivate |
Definition at line 170 of file StorableHistoNDFunctor.h.
References convertSQLiteXML::ok.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::setInterpolationDegree(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::StorableHistoNDFunctor().
|
inlinestatic |
Definition at line 95 of file StorableHistoNDFunctor.h.
References recoMuon::in, and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::read().
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
|
overridevirtual |
Implements npstat::StorableMultivariateFunctor.
Definition at line 138 of file StorableHistoNDFunctor.h.
References npstat::HistoND< Numeric, Axis >::classId(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::deg_, npstat::StorableMultivariateFunctor::description(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table_, and npstat::HistoND< Numeric, Axis >::write().
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::classId().
|
friend |
Definition at line 28 of file StorableHistoNDFunctor.h.
|
private |
Definition at line 111 of file StorableHistoNDFunctor.h.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::operator()(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::setConverter().
|
private |
Definition at line 110 of file StorableHistoNDFunctor.h.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::interpolationDegree(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::isEqual(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::operator()(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::setInterpolationDegree(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::write().
|
private |
Definition at line 109 of file StorableHistoNDFunctor.h.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::interpolator(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::isEqual(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::minDim(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::operator()(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::setInterpolationDegree(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::table(), and npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::write().