Re: [ROOT] Problem with TH1F::Divide

From: Roland Kuhn (rkuhn@e18.physik.tu-muenchen.de)
Date: Sun Dec 19 2004 - 10:29:02 MET


Hi Rene!

On Dec 17, 2004, at 8:42 AM, Rene Brun wrote:

> Hi Dmitry,
>
> You see a side-effect of using teh CINT short-cut of a pointer
> automatically created when giving the object name.
> You should do, eg:
>
>     ff1=new
> TFile("/home/botov/work/snd2k/R002-003/work/rootntuple/ 
> eeElastic_10deg.$
>     TH1F *h1 = (TH1F*)ff1->Get("h1");

I've seen "h1=h1" doing the same thing with much less typing. Is this  
intentional/supported/recommended?

>     h1->Draw("Simth[0]>>htmp");
>     TH1F *htmp = (TH1F*)ff1->Get("htmp");
>     h1->Draw("Simth[0]>>htmp1","Simth[1]>20");
>     TH1F *htmp1 = (TH1F*)ff1->Get("htmp1");
>     htmp1->Divide(htmp);
>     htmp1->Divide(htmp);
>
> Rene Brun

Ciao,
					Roland

--
TU Muenchen, Physik-Department E18, James-Franck-Str. 85747 Garching
Telefon 089/289-12592; Telefax 089/289-12570
--
A mouse is a device used to point at
the xterm you want to type in.
Kim Alm on a.s.r.





This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET