CMS 3D CMS Logo

Namespaces | Functions

/data/refman/pasoursint/CMSSW_6_1_1/src/JetMETCorrections/InterpolationTables/interface/interpolateHistoND.h File Reference

Interpolate histogram contents. More...

#include "JetMETCorrections/InterpolationTables/interface/HistoND.h"
#include <cassert>
#include "JetMETCorrections/InterpolationTables/interface/NpstatException.h"

Go to the source code of this file.

Namespaces

namespace  npstat
namespace  npstat::Private

Functions

template<typename Float , class Axis >
void npstat::Private::iHND_checkArgs (const HistoND< Float, Axis > &histo, const unsigned xDim, const unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, const double *coords, unsigned coordsDim, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8, unsigned interpolationDegree)
template<typename Float , class Axis >
Float npstat::interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8, double x9, unsigned interpolationDegree)

Detailed Description

Interpolate histogram contents.

Functions which interpolate histogram contents are not included into the HistoND template itself because we do not always want to create histograms using bin types which can be multiplied by doubles (also, results of such a multiplication have to be automatically converted back to the same type).

The implementations work by invoking "interpolate1" or "interpolate3" ArrayND methods on the histogram bin contents after an appropriate coordinate transformation.

Author: I. Volobouev

November 2011

Definition in file interpolateHistoND.h.