Hi John, On Tue, 1 Jul 2003, Frankland John wrote: > Hi Avi > > > > > TH2F *Track_Banch=new TH2F("Track_Banch","Track Numbers vs. BanchNumbers - 5.9 GeV/c" , 1000 , 0 , 50 , 1000 , 0 , 20); > > > > > 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); Best regards Avi. > > > > > I got this error: > > > > Warning in <TH2F::Fill(Axis_t, Stat_t)>: may not use this method > > > > > But what was the TH2F::Fill command which provoked this error ? > Can you send the(excerpt from the) script ? > Cheers > 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