Hello All
I am trying to draw a 1D histogram defined as shown below. I am getting a histogram with negitive frequency (y-axis) bins. How is this possible? What am I doing wrong?
(Stripped out) code is as shown below:
[code]TH1F *TestHist;
float binrange = 2000. ;
int lowrange = -binrange;
int highrange = binrange;
if (SetAutoRange) lowrange=highrange+1; // if low > high, root does autoranging.
TestHist = new TH1F(“TestHist”,“TestHist”,noofbins,lowrange,highrange);
while (!feof(ListModeIn)){
getmdata(ListModeIn,&histdata);
TestHist->Fill(histdata);
}
gStyle->SetOptFit(1011);
gStyle->SetStatStyle(0); // transparent
TestHist->Draw(); [/code]
Thanks
Karthik