00001
00002
00003 #ifndef REBINHIST_H
00004 #define REBINHIST_H
00005
00006 #include "analysis/Histogram.h"
00007
00008 #include <vector>
00009
00010 class RebinHist : public Histogram {
00011 public:
00012 RebinHist(const char * title="default", double from=0, double to=1, double step=0.1);
00013 void rebin(double from=0, double to=1, double step=0.1);
00014 void fill(double d);
00015 double percentile(double level);
00016 private:
00017 typedef std::vector<float> FloatList;
00018 FloatList m_data;
00019 };
00020
00021 #endif