> > >>Why do you need such precision (1000 bins) for integer numbers ? >>Surely "new TH2F("...","...",50,0,50,20,0,20)" or >>"...51,-0.5,50.5,21,-0.5,20.5)" >>would be more reasonable ? >> >> > > What i notice is that if you dont put large bins in two dimensional >histogram the point doesn't sit in the right position. > > this what i do in my program: > > TH2F *Track_Banch=new TH2F("Track_Banch","Track Numbers vs. Banch Numbers - 5.9 GeV/c" , 1000 , 0 , 50 , 1000 , 0 , 20); > > Int_t banch_num , total_track_num ; > > Track_Banch->Fill(banch_num,total_track_num); > > > I still don't understand your problem, but if you use the 0.5 bin offsets in your TH2F definition you will not have any binning problems: TH2F *Track_Banch=new TH2F("Track_Banch","Track Numbers vs. Banch Numbers - 5.9 GeV/c" , 51 , -0.5 , 50.5 , 21 , -0.5 , 20.5); The only thing I can think of is that the 1000*1000 bins filled your available memory causing ROOT to go insane.... Hope this helps !! John -- John D. Frankland Beam Coordinator GANIL B.P. 55027 14076 CAEN Cedex 05 tel: +33 (0)231454628 fax: +33 (0)231454665
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET