Hi Mariusz, I do not understand what you want to do: - create a new profile? -make a projection of a 2-d histogram into a profile? To create a new TProfile, see tutorial hsimple.C To make a projection of a 2-d histogram into a profile, do,eg: TH2F *yShape04 = new TH2F("yShape04","yShape04",nbin3, minbin3y,maxbin3y, 200, 0, 30); TProfile *yShp04 = yShape04->ProfileX("yShp04",0,200); Rene Brun On Thu, 24 Jul 2003, Mariusz Sapinski wrote: > > Hello, > I would like to have a profile of histogram with a given number of bins > Nbin. > > If i do just: > TProfile *yShp04 = yShape04->ProfileX("yShp04",0,200); > > then i get 35 bins (how this default is calculated?) > (while > TH2F *yShape04 = new TH2F("yShape04","yShape04",nbin3, minbin3y,maxbin3y, 200, 0, 30); > ) > > I tried to do: > > TProfile *yShp04 = new TProfile("yShp04","yShp04",50,-35.,0.,""); > yShp04 = yShape04->ProfileX("yShp04",0,200); > > but this doesn't work as i want. What is wrong? > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET