1 #ifndef CondFormats_PhysicsToolsObjects_Histogram2D_h
2 #define CondFormats_PhysicsToolsObjects_Histogram2D_h
4 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
13 namespace PhysicsTools {
16 template<
typename Value_t,
typename AxisX_t = Value_t,
17 typename AxisY_t = AxisX_t>
27 template<
typename OValue_t,
typename OAxisX_t,
typename OAxisY_t>
33 template<
typename OAxisX_t,
typename OAxisY_t>
37 template<
typename OAxisX_t,
typename OAxisY_t>
42 template<
typename OAxisX_t,
typename OAxisY_t>
47 template<
typename OAxisX_t,
typename OAxisY_t>
53 Histogram2D(
unsigned int nBinsX, AxisX_t minX, AxisX_t maxX,
54 unsigned int nBinsY, AxisY_t minY, AxisY_t maxY);
60 template<
typename OValue_t,
typename OAxisX_t,
typename OAxisY_t>
62 OAxisX_t, OAxisY_t> &orig);
69 inline int bin2D(
int binX,
int binY)
const
70 {
return binY *
stride + binX; }
105 inline const std::vector<Value_t> &
values()
const
110 template<
typename OValue_t>
118 std::pair<RangeX, RangeY>
binRange(
int binX,
int binY)
const
139 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
155 std::vector<PhysicsTools::Calibration::HistogramD2D>
vHist;
162 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
163 #include "CondFormats/PhysicsToolsObjects/interface/Histogram2D.icc"
166 #endif // CondFormats_PhysicsToolsObjects_Histogram2D_h