Binning of a histogram, read from a root file

Hello,
I have one root file, variables are saved as histograms. I plot one histogram from that root file. But I could not modify the bin size.
Can anyone please help me?
Thanks!!
aco.root (7.0 KB)


TCanvas* c = new TCanvas();
TFile* f = new TFile(“aco.root”);
TH1D* h1 =(TH1D* )f->Get(“dilepton_acoplanarity_all_Data”);
h1->GetYaxis()->SetTitle(“Entries”);
c->SetLogy();
h1->Draw(“E1”);
h1->GetXaxis()->SetLimits(0,1);

Bin sizes are defined when the histogram is created.
Afterward, you can only “merge” groups of bins, e.g.: h1->Rebin(10);

Thanks @Wile_E_Coyote ! I got it now.Thanks!