Woon-Seng Choong wrote: > > I looked through the documentation for TH1,TH3 but could not find any > member functions that would allow me to set/get the cell content, error, > bins for 3-dim histogram. These member functions seems to exist for > 1-dim,2-dim histograms. Are the corresponding 3-dim functions left out for > a reason? > > Seng I did not implement a TH3::SetBinContent(binx,biny,binz). Use TH1::SetBinContent(bin) where Int_t bin = hist->GetBin(binx,biny) for a TH2 object Int_t bin = hist->GetBin(binx,biny,binz) for a TH3 object Int_t bin = hist->GetBin(binx) for a TH1 object if you like! Once you have bin, you can use all the Get/Set bin methods, eg hist3->GetBinContent(bin) Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:30 MET