Thanks Rene. I had heard of casting before. I guess I didn't understand the purpose of TH1I if it returns doubles from its bins. What you seem to be saying to me is that the GetBinContent might not be optimal in this case, but its generality demands use of Stat_t. Internally, TH1I does indeed use Int_t for the bins. Right? - John Rene Brun wrote: >TH1X::GetBinContent always return a Stat_t independently of X. >If you have a TH1I *h, you can do > Int_t c = (Int_t)h->GetBinContent(i); >or > Int_t c = h->fArray[i]; > >Rene Brun > >"Dr. John Krane" wrote: > > >>Hi, >> >>I suspect this is just a bug that has been overlooked all this time >>because I'm the first person in the world to use the class, but >>shouldn't TH1I::GetBinContent(Int_t bin) have type Int_t and not >>Stat_t? Am I missing something? >> >> - John >> >>-- >> >>Dr. John Krane >>jkrane@netzero.com >> >> > > > > -- Dr. John Krane jkrane@netzero.com
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET