Hi Yasuhiro, Your fixes to h2root to support under/overflows for 2d histograms are correct. I have made the corresponding mods in my development version. Thanks for reporting. Rene Brun Yasuhiro SHIRASAKI wrote: > > Hi, > > When I converted 2D hist in my hbook with h2root, u/overflow was > zero filled. The h2root was included in root 2.21/08. > > *** UTILS_h2root.cxx.orig Mon Mar 29 22:49:47 1999 > --- UTILS_h2root.cxx Mon Apr 5 21:08:02 1999 > *************** > *** 470,477 **** > Float_t offsety = 0.5*(ymax-ymin)/ncy; > > Float_t x,y; > ! for (Int_t j=1;j<=ncy;j++) { > ! for (Int_t i=1;i<=ncx;i++) { > hijxy(id,i,j,x,y); > h2->Fill(x+offsetx,y+offsety,hij(id,i,j)); > } > --- 470,477 ---- > Float_t offsety = 0.5*(ymax-ymin)/ncy; > > Float_t x,y; > ! for (Int_t j=0;j<=ncy+1;j++) { > ! for (Int_t i=0;i<=ncx+1;i++) { > hijxy(id,i,j,x,y); > h2->Fill(x+offsetx,y+offsety,hij(id,i,j)); > } > > -- > Yasuhiro SHIRASAKI : Experimental Particle Physics, JLC Team > Graduate School of Science, TOHOKU University 980-8578 Japan.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:31 MET