7 WELCOME_LOG <<
"Good day from the HyperBinningPainter1D() Constructor";
16 std::vector<double> binEdges;
17 for (
int i = 0; i < nBins; i++){
19 binEdges.push_back(min);
23 std::sort(binEdges.begin(), binEdges.end());
25 double* aryBinEdges =
new double [binEdges.size()];
26 for (
unsigned i = 0; i < binEdges.size(); i++) {
28 aryBinEdges[i] = binEdges.at(i);
31 TH1D* tempHist =
new TH1D(histname, histname, nBins, aryBinEdges);
32 tempHist->GetXaxis()->SetTitle(
"Val");
33 tempHist->GetYaxis()->SetTitle(
"Frequency");
35 for (
int i = 0; i < nBins; i++){
46 tempHist->SetBinContent(i+1, val);
47 tempHist->SetBinError (i+1, err);
48 std::cout <<
"Bin " << i <<
": Content = " << val <<
" Error = " << err << std::endl;
64 plotter.
plot(path,
"E");
double getMax(int dimension) const
double getBinError(int bin) const
double getMin(int dimension) const
double getBinContent(int bin) const
virtual void draw(TString path="", TString option="")
virtual int getNumBins() const =0
HyperBinningPainter1D(HyperHistogram *histogram)
virtual ~HyperBinningPainter1D()
virtual int getBinNum(const HyperPoint &coords) const =0
TH1D * getHistogram(TString histname)
virtual void plot(TString plotDirectory, TString plotOptions="", TPad *pad=0, double scaleFactor=1.0)
HyperHistogram * _histogram
const BinningBase & getBinning() const
virtual HyperVolume getBinHyperVolume(int binNumber) const =0