BinnedHistogram.hh
// -*- C++ -*-
#ifndef RIVET_BINNEDHISTOGRAM_HH
#define RIVET_BINNEDHISTOGRAM_HH
#include "Rivet/Rivet.hh"
namespace Rivet {
class Analysis;
template<typename T>
class BinnedHistogram {
public:
BinnedHistogram() {
return;
}
const BinnedHistogram<T>& addHistogram(const T& binMin,
const T& binMax,
AIDA::IHistogram1D* histo);
AIDA::IHistogram1D* fill(const T& bin,
const T& val,
double weight);
void scale(const T& scale, Analysis* ana);
const vector<AIDA::IHistogram1D*>& getHistograms() const { return _histos; }
vector<AIDA::IHistogram1D*>& getHistograms() { return _histos; }
private:
map<T, AIDA::IHistogram1D*> _histosByUpperBound;
map<T, AIDA::IHistogram1D*> _histosByLowerBound;
vector<AIDA::IHistogram1D*> _histos;
map<AIDA::IHistogram1D*, T> _binWidths;
};
}
#endif
Rivet::BinnedHistogram::scale
void scale(const T &scale, Analysis *ana)
Definition: BinnedHistogram.cc:74
Rivet::Analysis
This is the base class of all analysis classes in Rivet.
Definition: Analysis.hh:51
Rivet::BinnedHistogram::fill
AIDA::IHistogram1D * fill(const T &bin, const T &val, double weight)
Definition: BinnedHistogram.cc:39
Rivet::BinnedHistogram::addHistogram
const BinnedHistogram< T > & addHistogram(const T &binMin, const T &binMax, AIDA::IHistogram1D *histo)
Definition: BinnedHistogram.cc:11
Rivet::BinnedHistogram
Definition: BinnedHistogram.hh:18
Rivet::BinnedHistogram::BinnedHistogram
BinnedHistogram()
Create a new empty BinnedHistogram.
Definition: BinnedHistogram.hh:22