Dear All,
When comparing two different bin-edge arrays :
(constant)
double xBins_bjet_pt0[] = {150,200,250,300,350,400,450,500,550,600};
or
(variable)
double xBins_bjet_pt0[] = {150,200,250,300,350,400,450,500,600};
I get quite some strange results :
ppe.gla.ac.uk/~ngutierrez/te … et_pt0.png
ppe.gla.ac.uk/~ngutierrez/te … et_pt0.png
for some reason there is a change on the first two bins ... while I am only changing the last two ...
Any ideas what may be wrong here ?
Yours,
Nicolas
P.S. I create histograms by doing :
double xBins_bjet_pt0[] = {150,200,250,300,350,400,450,500,600};
int nBins_bjet_pt0 = sizeof(xBins_bjet_pt0)/sizeof(*xBins_bjet_pt0)-1;
which are passed as arguments to a function :
TH1F* MyPlotVLQ::InitHist(string histname, string thetype, int nbins, double xBins[] … ) {
and then :
TH1F *hist = new TH1F(fullname.c_str(), fullname.c_str(),nbins, xBins);
…
The bullet point is a plain TH1F, while the coloured histograms are a THStack.