Re: [ROOT] TH1D

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 13 2003 - 11:24:00 MEST


Well, in this case, you have to
  -create a new histogram with the right limits in X_t
  - loop on the original histogram bins
    - getting the bin content
    - computing the new bin in the new histogram
    - call SetBinContent(newbin,bincontent)

You must be careful with bin edge effects. A reason to start from the
original data (Tree or..) instead of the above procedure.

Rene Brun

Anufriev Sergey Valentinovich wrote:
> 
> But, in fact E_t is the XAxis. And I need XAxis will be X_t. I  need not
> to normalize my histogram.
> 
> > Hi Sergey,
> >
> > Having TH1D* h, do
> >   h->Scale(2/sqrt(s));
> >
> > see also TH1::DrawNormalized
> >
> > Rene Brun
> >
> > Anufriev Sergey Valentinovich wrote:
> > >
> > > Dear ROOTers!
> > >
> > > I have the next problem: I can draw TH1D which shows dependense CROSS
> > > SECTION (E_transeverse), but in fact I need histogram  CROSS
> > > SECTION(X_transeverse), where X_transeverse=2*E_transeverse/SQRT(s) (just
> > > one can say X_t=f(E_t)). Question is: how can I get it?
> > >
> > > Thank you in advance, Sergey.
> >



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET