19 TH1F *h =
new TH1F(
"h",
"test rebin",100,-3,3);
20 Int_t nentries = 1000;
25 for (
Int_t i=1;i<=100;i++) {
31 xbins[k] = xmin +j*dx;
38 TH1F *hnew =
new TH1F(
"hnew",
"rebinned",k,xbins);
44 for (
Int_t j=0;j<k;j+=2) {
45 xbins2[kk] = xbins[j];
48 xbins2[kk] = xbins[k];
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
1-D histogram with a float per channel (see TH1 documentation)}
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
Class to manage histogram axis.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual TH1 * Rebin(Int_t ngroup=2, const char *newname="", const Double_t *xbins=0)
Rebin this histogram.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.