Variable Bins

I am new to root,
I have used a variable bins in my histogram but instead the bins it shifted my histogram to right.
‘’’
const Int_t NBINS = 42;
Double_t edges[NBINS + 1] =.
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,10,10,10,10,10,10,10,25,25,25,25,25,25};

TH1D* hist = new TH1D("hist", "",NBINS, 6, 250);

‘’’

The bin edges should be: {0., 1., 2., 3., ..., 200., 225., 250.}
Then: TH1D("hist", "", NBINS, edges)

It didn’t help constructed the variable bins.

{
  Double_t edges[] = {0., 1., 2., 3., 10., 20., 30., 200., 225., 250.};
  const Int_t NBINS = sizeof(edges) / sizeof(Double_t) - 1;
  TH1D *hist = new TH1D("hist", "", NBINS, edges);
  hist->FillRandom("pol0", 1000);
  hist->Draw();
}

It helped construct the variable bin size but still shift the histogram to left.

Thank You.
CurrentAnalysis.C (2.1 KB)

We do not have your data file to run your macro.

The file is larger than 3MB so could not upload it.