1 #ifndef CondFormats_PhysicsToolsObjects_Histogram2D_h
2 #define CondFormats_PhysicsToolsObjects_Histogram2D_h
10 namespace PhysicsTools {
13 template<
typename Value_t,
typename AxisX_t = Value_t,
14 typename AxisY_t = AxisX_t>
24 template<
typename OValue_t,
typename OAxisX_t,
typename OAxisY_t>
30 template<
typename OAxisX_t,
typename OAxisY_t>
34 template<
typename OAxisX_t,
typename OAxisY_t>
39 template<
typename OAxisX_t,
typename OAxisY_t>
44 template<
typename OAxisX_t,
typename OAxisY_t>
50 Histogram2D(
unsigned int nBinsX, AxisX_t minX, AxisX_t maxX,
51 unsigned int nBinsY, AxisY_t minY, AxisY_t maxY);
57 template<
typename OValue_t,
typename OAxisX_t,
typename OAxisY_t>
59 OAxisX_t, OAxisY_t> &orig);
66 inline int bin2D(
int binX,
int binY)
const
67 {
return binY *
stride + binX; }
102 inline const std::vector<Value_t> &
values()
const
107 template<
typename OValue_t>
115 std::pair<RangeX, RangeY>
binRange(
int binX,
int binY)
const
147 std::vector<PhysicsTools::Calibration::HistogramD2D>
vHist;
154 #include "CondFormats/PhysicsToolsObjects/interface/Histogram2D.icc"
156 #endif // CondFormats_PhysicsToolsObjects_Histogram2D_h