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);
‘’’