1 #ifndef CondFormats_PhysicsToolsObjects_Histogram_h 2 #define CondFormats_PhysicsToolsObjects_Histogram_h 6 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__) 14 namespace Calibration {
16 template<
typename Axis_t>
20 template<
typename OAxis_t>
35 template<
typename Value_t,
typename Axis_t = Value_t>
44 template<
typename OValue_t,
typename OAxis_t>
47 Histogram(
const std::vector<Axis_t> &binULimits);
49 template<
typename OAxis_t>
50 Histogram(
const std::vector<OAxis_t> &binULimits);
52 template<
typename OAxis_t>
62 template<
typename OValue_t,
typename OAxis_t>
67 const std::vector<Axis_t>
upperLimits()
const {
return binULimits; }
70 Value_t
value(Axis_t x)
const {
return binContent(findBin(x)); }
75 Value_t
error(Axis_t x)
const {
return binError(findBin(x)); }
79 void setBinContent(
int bin, Value_t
value);
82 bool empty()
const {
return binValues.empty(); }
86 inline const std::vector<Value_t> &
values()
const 89 void setValues(
const std::vector<Value_t> &
values);
91 template<
typename OValue_t>
92 void setValues(
const std::vector<OValue_t> &values);
94 inline Range
range()
const {
return limits; }
95 Range binRange(
int bin)
const;
97 int findBin(Axis_t x)
const;
100 Value_t
integral(Axis_t hBound, Axis_t lBound = 0.0,
int mode = 1)
const;
111 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__) 126 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__) 127 #include "CondFormats/PhysicsToolsObjects/interface/Histogram.icc" 130 #endif // CondFormats_PhysicsToolsObjects_Histogram_h
Integral< F, X >::type integral(const F &f)
bin
set the eta bin as selection string.
#define COND_SERIALIZABLE
void reset(double vett[256])